2025-11-20 02:22:11,842 - INFO - Domain Default found not creating 2025-11-20 02:22:12,009 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-93431883 not found, creating it 2025-11-20 02:22:12,546 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-93431883, ID : 36649fe8-f9dd-4728-bcba-b03de326c25b 2025-11-20 02:22:14,076 - INFO - ================================================================================ 2025-11-20 02:22:14,079 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-11-20 02:22:15,355 - DEBUG - Nothing to compare xmpp stats {'10.0.0.131': {'10.20.0.201': '0', '10.20.0.129': '0'}, '10.0.0.48': {'10.20.0.201': '0', '10.20.0.129': '0'}} with 2025-11-20 02:22:15,355 - INFO - Initial checks done. Running the testcase now 2025-11-20 02:22:15,356 - INFO - 2025-11-20 02:22:15,356 - INFO - ================================================================================ 2025-11-20 02:22:15,356 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-11-20 02:22:15,356 - INFO - TEST DESCRIPTION : This tests the following scenarios. 1. Test to validate that policy removal will fail when it referenced with VN. 2. validate vn_policy data in api-s against quantum-vn data, when created and unbind policy from VN thru quantum APIs. 3. validate policy data in api-s against quantum-policy data, when created and deleted thru quantum APIs. 2025-11-20 02:22:16,625 - DEBUG - Nothing to compare xmpp stats {'10.0.0.131': {'10.20.0.201': '0', '10.20.0.129': '0'}, '10.0.0.48': {'10.20.0.201': '0', '10.20.0.129': '0'}} with 2025-11-20 02:22:16,625 - INFO - Initial checks done. Running the testcase now 2025-11-20 02:22:16,626 - INFO - 2025-11-20 02:22:17,010 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-93431883:ctest-vn4-02455501, security_group = None, network_policy = None, subnet_list = []], src_ports = [start_port = -1, end_port = -1], application = [], dst_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-93431883:ctest-vn4-02455501, security_group = None, network_policy = None, subnet_list = []], dst_ports = [start_port = -1, end_port = -1], action_list = simple_action = pass, gateway_name = None, apply_service = [], service_properties = None, mirror_to = None, assign_routing_instance = None, log = False, alert = False, qos_action = None, host_based_service = False, ethertype = None, created = None, last_modified = None, description = None, rule_sequence = None, rule_uuid = None, direction = <>, protocol = 58, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-93431883:ctest-vn4-02455501, security_group = None, network_policy = None, subnet_list = []], src_ports = [start_port = -1, end_port = -1], application = [], dst_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-93431883:ctest-vn4-02455501, security_group = None, network_policy = None, subnet_list = []], dst_ports = [start_port = -1, end_port = -1], action_list = simple_action = pass, gateway_name = None, apply_service = [], service_properties = None, mirror_to = None, assign_routing_instance = None, log = False, alert = False, qos_action = None, host_based_service = False, ethertype = None, created = None, last_modified = None, description = None] 2025-11-20 02:22:17,601 - DEBUG - Response for create_network : {'network': {'id': '98fac980-bcc3-4839-a3f5-a41af76f529b', 'name': 'ctest-vn4-02455501', 'tenant_id': '36649fe8f9dd4728bcbab03de326c25b', 'project_id': '36649fe8f9dd4728bcbab03de326c25b', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-93431883', 'ctest-vn4-02455501'], 'port_security_enabled': True, 'description': ''}} 2025-11-20 02:22:17,888 - DEBUG - Response for create_subnet : {'subnet': {'id': '697b836d-4ec1-4188-8724-6d028176ecde', 'name': '', 'tenant_id': '36649fe8f9dd4728bcbab03de326c25b', 'network_id': '98fac980-bcc3-4839-a3f5-a41af76f529b', 'ip_version': 4, 'cidr': '195.125.130.0/26', 'allocation_pools': [{'start': '195.125.130.2', 'end': '195.125.130.62'}], 'gateway_ip': '195.125.130.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '195.125.130.2', 'tags': [], 'project_id': '36649fe8f9dd4728bcbab03de326c25b'}} 2025-11-20 02:22:18,135 - DEBUG - Response for create_subnet : {'subnet': {'id': '8634898c-47bb-4bb3-bf93-087553bd03fd', 'name': '', 'tenant_id': '36649fe8f9dd4728bcbab03de326c25b', 'network_id': '98fac980-bcc3-4839-a3f5-a41af76f529b', 'ip_version': 6, 'cidr': '2771:f680:9862:2755:788f:e368::/96', 'allocation_pools': [{'start': '2771:f680:9862:2755:788f:e368:0:2', 'end': '2771:f680:9862:2755:788f:e368:ffff:fffe'}], 'gateway_ip': '2771:f680:9862:2755:788f:e368:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '2771:f680:9862:2755:788f:e368:0:2', 'tags': [], 'project_id': '36649fe8f9dd4728bcbab03de326c25b'}} 2025-11-20 02:22:18,164 - INFO - Created VN ctest-vn4-02455501 2025-11-20 02:22:18,176 - DEBUG - VN ctest-vn4-02455501 UUID is 98fac980-bcc3-4839-a3f5-a41af76f529b 2025-11-20 02:22:18,410 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '98fac980-bcc3-4839-a3f5-a41af76f529b', 'name': 'ctest-vn4-02455501', 'tenant_id': '36649fe8f9dd4728bcbab03de326c25b', 'project_id': '36649fe8f9dd4728bcbab03de326c25b', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['697b836d-4ec1-4188-8724-6d028176ecde', '8634898c-47bb-4bb3-bf93-087553bd03fd'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-93431883', 'ctest-vn4-02455501'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-93431883', 'ctest-policy1-93297861']], 'subnet_ipam': [{'subnet_cidr': '195.125.130.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '2771:f680:9862:2755:788f:e368::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-11-20 02:22:18,516 - DEBUG - Requesting: http://10.0.0.23:8082/domains 2025-11-20 02:22:18,834 - DEBUG - Requesting: http://10.0.0.23:8082/domains 2025-11-20 02:22:18,865 - DEBUG - Requesting: http://10.0.0.23:8082/domain/785d7fdc-4b61-45a1-9add-76a6d523389b 2025-11-20 02:22:18,882 - DEBUG - Requesting: http://10.0.0.23:8082/project/36649fe8-f9dd-4728-bcba-b03de326c25b 2025-11-20 02:22:18,974 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-network/98fac980-bcc3-4839-a3f5-a41af76f529b 2025-11-20 02:22:18,986 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-network/98fac980-bcc3-4839-a3f5-a41af76f529b 2025-11-20 02:22:18,999 - DEBUG - Requesting: http://10.0.0.23:8082/routing-instance/da9b7889-562e-4df4-9d5f-2f4a4abf6153 2025-11-20 02:22:19,006 - DEBUG - Requesting: http://10.0.0.23:8082/routing-instance/da9b7889-562e-4df4-9d5f-2f4a4abf6153 2025-11-20 02:22:19,014 - DEBUG - Requesting: http://10.0.0.23:8082/route-target/e20b1aa2-59a1-4488-89b5-0c15cb76a145 2025-11-20 02:22:19,020 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-11-20 02:22:19,020 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-network/98fac980-bcc3-4839-a3f5-a41af76f529b 2025-11-20 02:22:19,029 - DEBUG - Requesting: http://10.0.0.23:8082/routing-instance/da9b7889-562e-4df4-9d5f-2f4a4abf6153 2025-11-20 02:22:19,044 - INFO - Verified VN network id 15 for VN 98fac980-bcc3-4839-a3f5-a41af76f529b 2025-11-20 02:22:19,044 - INFO - Verifications in API Server for VN ctest-vn4-02455501 passed 2025-11-20 02:22:19,044 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-network/98fac980-bcc3-4839-a3f5-a41af76f529b 2025-11-20 02:22:19,053 - DEBUG - Requesting: http://10.0.0.23:8082/routing-instance/da9b7889-562e-4df4-9d5f-2f4a4abf6153 2025-11-20 02:22:19,060 - DEBUG - Requesting: http://10.0.0.23:8082/routing-instance/da9b7889-562e-4df4-9d5f-2f4a4abf6153 2025-11-20 02:22:19,068 - DEBUG - Requesting: http://10.0.0.23:8082/route-target/e20b1aa2-59a1-4488-89b5-0c15cb76a145 2025-11-20 02:22:19,080 - DEBUG - Control-node 10.0.0.23 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-93431883:ctest-vn4-02455501', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-93431883', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '11023344592702621753', 'uuid-lslong': '11814529633203737243'}, 'enable': 'true', 'created': '2025-11-20T02:22:17', 'last-modified': '2025-11-20T02:22:18', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.735431'} 2025-11-20 02:22:19,086 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-11-20 02:22:19,091 - DEBUG - Control-node 10.0.0.50 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-93431883:ctest-vn4-02455501', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-93431883', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '11023344592702621753', 'uuid-lslong': '11814529633203737243'}, 'enable': 'true', 'created': '2025-11-20T02:22:17', 'last-modified': '2025-11-20T02:22:18', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.752495'} 2025-11-20 02:22:19,097 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-11-20 02:22:19,102 - DEBUG - Control-node 10.0.0.22 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-93431883:ctest-vn4-02455501', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-93431883', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '11023344592702621753', 'uuid-lslong': '11814529633203737243'}, 'enable': 'true', 'created': '2025-11-20T02:22:17', 'last-modified': '2025-11-20T02:22:18', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.755736'} 2025-11-20 02:22:19,107 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-11-20 02:22:19,108 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-02455501 passed 2025-11-20 02:22:19,108 - DEBUG - ====Verifying policy data for ctest-vn4-02455501 in API_Server ====== 2025-11-20 02:22:19,108 - DEBUG - Requesting: http://10.0.0.23:8082/domains 2025-11-20 02:22:19,114 - DEBUG - Requesting: http://10.0.0.23:8082/domain/785d7fdc-4b61-45a1-9add-76a6d523389b 2025-11-20 02:22:19,126 - DEBUG - Requesting: http://10.0.0.23:8082/project/36649fe8-f9dd-4728-bcba-b03de326c25b 2025-11-20 02:22:19,228 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-network/98fac980-bcc3-4839-a3f5-a41af76f529b 2025-11-20 02:22:19,239 - DEBUG - ==>Verifying data for policy with id: 762b2820-e52b-4c17-87a6-afa2902e66af, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-93431883', 'ctest-policy1-93297861'] 2025-11-20 02:22:19,239 - INFO - VN ctest-vn4-02455501 Policy verification: verify_vn_policy_in_api_server, status: True 2025-11-20 02:22:19,239 - DEBUG - Verifying the vn in opserver 2025-11-20 02:22:19,239 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-93431883:ctest-vn4-02455501 virtual network link through opserver 10.0.0.23 2025-11-20 02:22:19,239 - DEBUG - Requesting: http://10.0.0.23:8081/analytics/uves/virtual-networks 2025-11-20 02:22:19,555 - DEBUG - Requesting: http://10.0.0.23:8081/analytics/uves/virtual-networks 2025-11-20 02:22:19,637 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-93431883:ctest-vn4-02455501', 'href': 'http://10.0.0.23:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-93431883:ctest-vn4-02455501?flat'} 2025-11-20 02:22:19,637 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-93431883:ctest-vn4-02455501 virtual network link through opserver 10.0.0.50 2025-11-20 02:22:19,637 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks 2025-11-20 02:22:19,942 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks 2025-11-20 02:22:20,013 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-93431883:ctest-vn4-02455501', 'href': 'http://10.0.0.50:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-93431883:ctest-vn4-02455501?flat'} 2025-11-20 02:22:20,013 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-93431883:ctest-vn4-02455501 virtual network link through opserver 10.0.0.22 2025-11-20 02:22:20,013 - DEBUG - Requesting: http://10.0.0.22:8081/analytics/uves/virtual-networks 2025-11-20 02:22:20,319 - DEBUG - Requesting: http://10.0.0.22:8081/analytics/uves/virtual-networks 2025-11-20 02:22:20,380 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-93431883:ctest-vn4-02455501', 'href': 'http://10.0.0.22:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-93431883:ctest-vn4-02455501?flat'} 2025-11-20 02:22:20,380 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-93431883:ctest-vn4-02455501 is found in opserver 2025-11-20 02:22:20,401 - DEBUG - Do not have enough data to verify VN in agent 2025-11-20 02:22:20,410 - DEBUG - VRF ids for VN ctest-vn4-02455501: {} 2025-11-20 02:22:20,410 - DEBUG - ====Verifying data for ctest-policy1-93297861 in API_Server ====== 2025-11-20 02:22:20,410 - DEBUG - Requesting: http://10.0.0.23:8082/domains 2025-11-20 02:22:20,415 - DEBUG - Requesting: http://10.0.0.23:8082/domain/785d7fdc-4b61-45a1-9add-76a6d523389b 2025-11-20 02:22:20,427 - DEBUG - Requesting: http://10.0.0.23:8082/project/36649fe8-f9dd-4728-bcba-b03de326c25b 2025-11-20 02:22:20,531 - DEBUG - Requesting: http://10.0.0.23:8082/network-policy/762b2820-e52b-4c17-87a6-afa2902e66af 2025-11-20 02:22:20,542 - INFO - Verified policy ctest-policy1-93297861 in API Server, Result: True 2025-11-20 02:22:20,542 - INFO - Done with setup and verification, moving onto test .. 2025-11-20 02:22:20,553 - INFO - Deleting VN ctest-vn4-02455501 2025-11-20 02:22:20,744 - DEBUG - Response for deleting network () 2025-11-20 02:22:20,744 - DEBUG - Requesting: http://10.0.0.23:8082/routing-instance/da9b7889-562e-4df4-9d5f-2f4a4abf6153 2025-11-20 02:22:20,760 - DEBUG - Response Code: 404 2025-11-20 02:22:20,760 - DEBUG - Requesting: http://10.0.0.23:8082/domains 2025-11-20 02:22:20,765 - DEBUG - Requesting: http://10.0.0.23:8082/domain/785d7fdc-4b61-45a1-9add-76a6d523389b 2025-11-20 02:22:20,822 - DEBUG - Requesting: http://10.0.0.23:8082/project/36649fe8-f9dd-4728-bcba-b03de326c25b 2025-11-20 02:22:20,914 - INFO - Validated that VN ctest-vn4-02455501 is not found in API Server 2025-11-20 02:22:20,926 - DEBUG - VN ctest-vn4-02455501 is not present in Agent 10.0.0.131 2025-11-20 02:22:20,938 - DEBUG - VN ctest-vn4-02455501 is not present in Agent 10.0.0.48 2025-11-20 02:22:20,938 - INFO - Validated that VN ctest-vn4-02455501 is not in any agent 2025-11-20 02:22:20,970 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-02455501 info 2025-11-20 02:22:21,007 - INFO - Deleted policy ctest-policy1-93297861 2025-11-20 02:22:21,201 - DEBUG - policy ctest-policy1-93297861 is not found in API Server 2025-11-20 02:22:22,480 - DEBUG - No XMPP flaps were noticed during the test 2025-11-20 02:22:22,480 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:07] 2025-11-20 02:22:22,481 - INFO - -------------------------------------------------------------------------------- 2025-11-20 02:22:23,744 - DEBUG - No XMPP flaps were noticed during the test 2025-11-20 02:22:23,744 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:09] 2025-11-20 02:22:23,744 - INFO - -------------------------------------------------------------------------------- 2025-11-20 02:22:24,475 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-93431883, ID : 36649fe8-f9dd-4728-bcba-b03de326c25b