2026-06-18 15:54:13,036 - INFO - Domain Default found not creating 2026-06-18 15:54:13,172 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-60077787 not found, creating it 2026-06-18 15:54:13,693 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-60077787, ID : b30af9c8-0fdf-49db-bacc-51094d2d7318 2026-06-18 15:54:15,214 - INFO - ================================================================================ 2026-06-18 15:54:15,214 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-06-18 15:54:16,498 - DEBUG - Nothing to compare xmpp stats {'10.0.0.19': {'10.20.0.14': '0', '10.20.0.25': '0'}, '10.0.0.129': {'10.20.0.14': '0', '10.20.0.25': '0'}} with 2026-06-18 15:54:16,498 - INFO - Initial checks done. Running the testcase now 2026-06-18 15:54:16,498 - INFO - 2026-06-18 15:54:16,498 - INFO - ================================================================================ 2026-06-18 15:54:16,498 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-06-18 15:54:16,498 - 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. 2026-06-18 15:54:17,760 - DEBUG - Nothing to compare xmpp stats {'10.0.0.19': {'10.20.0.14': '0', '10.20.0.25': '0'}, '10.0.0.129': {'10.20.0.14': '0', '10.20.0.25': '0'}} with 2026-06-18 15:54:17,760 - INFO - Initial checks done. Running the testcase now 2026-06-18 15:54:17,760 - INFO - 2026-06-18 15:54:18,129 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-60077787:ctest-vn4-05604638, 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-60077787:ctest-vn4-05604638, 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-60077787:ctest-vn4-05604638, 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-60077787:ctest-vn4-05604638, 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] 2026-06-18 15:54:18,755 - DEBUG - Response for create_network : {'network': {'id': '136848b4-3aa0-4f49-83f3-57513a079321', 'name': 'ctest-vn4-05604638', 'tenant_id': 'b30af9c80fdf49dbbacc51094d2d7318', 'project_id': 'b30af9c80fdf49dbbacc51094d2d7318', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-60077787', 'ctest-vn4-05604638'], 'port_security_enabled': True, 'description': ''}} 2026-06-18 15:54:19,038 - DEBUG - Response for create_subnet : {'subnet': {'id': '66f9c757-cdd7-4b2a-834f-f348479781bc', 'name': '', 'tenant_id': 'b30af9c80fdf49dbbacc51094d2d7318', 'network_id': '136848b4-3aa0-4f49-83f3-57513a079321', 'ip_version': 4, 'cidr': '14.74.60.192/26', 'allocation_pools': [{'start': '14.74.60.194', 'end': '14.74.60.254'}], 'gateway_ip': '14.74.60.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '14.74.60.194', 'tags': [], 'project_id': 'b30af9c80fdf49dbbacc51094d2d7318'}} 2026-06-18 15:54:19,245 - DEBUG - Response for create_subnet : {'subnet': {'id': 'dda9d71f-22f9-4dfc-9687-5a68a8c8f5d7', 'name': '', 'tenant_id': 'b30af9c80fdf49dbbacc51094d2d7318', 'network_id': '136848b4-3aa0-4f49-83f3-57513a079321', 'ip_version': 6, 'cidr': '2692:104:9318:b36e:7726:20a0::/96', 'allocation_pools': [{'start': '2692:104:9318:b36e:7726:20a0:0:2', 'end': '2692:104:9318:b36e:7726:20a0:ffff:fffe'}], 'gateway_ip': '2692:104:9318:b36e:7726:20a0:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '2692:104:9318:b36e:7726:20a0:0:2', 'tags': [], 'project_id': 'b30af9c80fdf49dbbacc51094d2d7318'}} 2026-06-18 15:54:19,272 - INFO - Created VN ctest-vn4-05604638 2026-06-18 15:54:19,283 - DEBUG - VN ctest-vn4-05604638 UUID is 136848b4-3aa0-4f49-83f3-57513a079321 2026-06-18 15:54:19,490 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '136848b4-3aa0-4f49-83f3-57513a079321', 'name': 'ctest-vn4-05604638', 'tenant_id': 'b30af9c80fdf49dbbacc51094d2d7318', 'project_id': 'b30af9c80fdf49dbbacc51094d2d7318', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['66f9c757-cdd7-4b2a-834f-f348479781bc', 'dda9d71f-22f9-4dfc-9687-5a68a8c8f5d7'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-60077787', 'ctest-vn4-05604638'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-60077787', 'ctest-policy1-47425213']], 'subnet_ipam': [{'subnet_cidr': '14.74.60.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '2692:104:9318:b36e:7726:20a0::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2026-06-18 15:54:19,581 - DEBUG - Requesting: http://10.0.0.249:8082/domains 2026-06-18 15:54:19,920 - DEBUG - Requesting: http://10.0.0.249:8082/domains 2026-06-18 15:54:19,954 - DEBUG - Requesting: http://10.0.0.249:8082/domain/9fac9674-3f03-42e2-9600-3ff953e8979b 2026-06-18 15:54:19,970 - DEBUG - Requesting: http://10.0.0.249:8082/project/b30af9c8-0fdf-49db-bacc-51094d2d7318 2026-06-18 15:54:20,057 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/136848b4-3aa0-4f49-83f3-57513a079321 2026-06-18 15:54:20,073 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/136848b4-3aa0-4f49-83f3-57513a079321 2026-06-18 15:54:20,083 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/1f80aa7a-9b63-4a05-b909-4a9368f51683 2026-06-18 15:54:20,090 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/1f80aa7a-9b63-4a05-b909-4a9368f51683 2026-06-18 15:54:20,097 - DEBUG - Requesting: http://10.0.0.249:8082/route-target/a8fa10a5-df20-439b-b45b-30bccf535eef 2026-06-18 15:54:20,103 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-06-18 15:54:20,104 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/136848b4-3aa0-4f49-83f3-57513a079321 2026-06-18 15:54:20,112 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/1f80aa7a-9b63-4a05-b909-4a9368f51683 2026-06-18 15:54:20,128 - INFO - Verified VN network id 14 for VN 136848b4-3aa0-4f49-83f3-57513a079321 2026-06-18 15:54:20,128 - INFO - Verifications in API Server for VN ctest-vn4-05604638 passed 2026-06-18 15:54:20,129 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/136848b4-3aa0-4f49-83f3-57513a079321 2026-06-18 15:54:20,138 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/1f80aa7a-9b63-4a05-b909-4a9368f51683 2026-06-18 15:54:20,144 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/1f80aa7a-9b63-4a05-b909-4a9368f51683 2026-06-18 15:54:20,151 - DEBUG - Requesting: http://10.0.0.249:8082/route-target/a8fa10a5-df20-439b-b45b-30bccf535eef 2026-06-18 15:54:20,162 - DEBUG - Control-node 10.0.0.249 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-60077787:ctest-vn4-05604638', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-60077787', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '1398447623213436745', 'uuid-lslong': '9508039244686791457'}, 'enable': 'true', 'created': '2026-06-18T15:54:18', 'last-modified': '2026-06-18T15:54:19', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.716622'} 2026-06-18 15:54:20,169 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-06-18 15:54:20,174 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-60077787:ctest-vn4-05604638', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-60077787', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '1398447623213436745', 'uuid-lslong': '9508039244686791457'}, 'enable': 'true', 'created': '2026-06-18T15:54:18', 'last-modified': '2026-06-18T15:54:19', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.731551'} 2026-06-18 15:54:20,180 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-06-18 15:54:20,185 - DEBUG - Control-node 10.0.0.22 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-60077787:ctest-vn4-05604638', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-60077787', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '1398447623213436745', 'uuid-lslong': '9508039244686791457'}, 'enable': 'true', 'created': '2026-06-18T15:54:18', 'last-modified': '2026-06-18T15:54:19', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.742562'} 2026-06-18 15:54:20,191 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-06-18 15:54:20,191 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-05604638 passed 2026-06-18 15:54:20,191 - DEBUG - ====Verifying policy data for ctest-vn4-05604638 in API_Server ====== 2026-06-18 15:54:20,192 - DEBUG - Requesting: http://10.0.0.249:8082/domains 2026-06-18 15:54:20,197 - DEBUG - Requesting: http://10.0.0.249:8082/domain/9fac9674-3f03-42e2-9600-3ff953e8979b 2026-06-18 15:54:20,207 - DEBUG - Requesting: http://10.0.0.249:8082/project/b30af9c8-0fdf-49db-bacc-51094d2d7318 2026-06-18 15:54:20,291 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/136848b4-3aa0-4f49-83f3-57513a079321 2026-06-18 15:54:20,301 - DEBUG - ==>Verifying data for policy with id: 8c699fe0-4c13-4379-9a53-1b8643b935a7, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-60077787', 'ctest-policy1-47425213'] 2026-06-18 15:54:20,301 - INFO - VN ctest-vn4-05604638 Policy verification: verify_vn_policy_in_api_server, status: True 2026-06-18 15:54:20,301 - DEBUG - Verifying the vn in opserver 2026-06-18 15:54:20,302 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-60077787:ctest-vn4-05604638 virtual network link through opserver 10.0.0.249 2026-06-18 15:54:20,302 - DEBUG - Requesting: http://10.0.0.249:8081/analytics/uves/virtual-networks 2026-06-18 15:54:20,624 - DEBUG - Requesting: http://10.0.0.249:8081/analytics/uves/virtual-networks 2026-06-18 15:54:20,677 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-60077787:ctest-vn4-05604638', 'href': 'http://10.0.0.249:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-60077787:ctest-vn4-05604638?flat'} 2026-06-18 15:54:20,677 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-60077787:ctest-vn4-05604638 virtual network link through opserver 10.0.0.38 2026-06-18 15:54:20,677 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks 2026-06-18 15:54:21,003 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks 2026-06-18 15:54:21,052 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-60077787:ctest-vn4-05604638', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-60077787:ctest-vn4-05604638?flat'} 2026-06-18 15:54:21,052 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-60077787:ctest-vn4-05604638 virtual network link through opserver 10.0.0.22 2026-06-18 15:54:21,052 - DEBUG - Requesting: http://10.0.0.22:8081/analytics/uves/virtual-networks 2026-06-18 15:54:21,373 - DEBUG - Requesting: http://10.0.0.22:8081/analytics/uves/virtual-networks 2026-06-18 15:54:21,432 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-60077787:ctest-vn4-05604638', 'href': 'http://10.0.0.22:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-60077787:ctest-vn4-05604638?flat'} 2026-06-18 15:54:21,432 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-60077787:ctest-vn4-05604638 is found in opserver 2026-06-18 15:54:21,451 - DEBUG - Do not have enough data to verify VN in agent 2026-06-18 15:54:21,459 - DEBUG - VRF ids for VN ctest-vn4-05604638: {} 2026-06-18 15:54:21,459 - DEBUG - ====Verifying data for ctest-policy1-47425213 in API_Server ====== 2026-06-18 15:54:21,459 - DEBUG - Requesting: http://10.0.0.249:8082/domains 2026-06-18 15:54:21,465 - DEBUG - Requesting: http://10.0.0.249:8082/domain/9fac9674-3f03-42e2-9600-3ff953e8979b 2026-06-18 15:54:21,478 - DEBUG - Requesting: http://10.0.0.249:8082/project/b30af9c8-0fdf-49db-bacc-51094d2d7318 2026-06-18 15:54:21,566 - DEBUG - Requesting: http://10.0.0.249:8082/network-policy/8c699fe0-4c13-4379-9a53-1b8643b935a7 2026-06-18 15:54:21,577 - INFO - Verified policy ctest-policy1-47425213 in API Server, Result: True 2026-06-18 15:54:21,577 - INFO - Done with setup and verification, moving onto test .. 2026-06-18 15:54:21,587 - INFO - Deleting VN ctest-vn4-05604638 2026-06-18 15:54:21,744 - DEBUG - Response for deleting network () 2026-06-18 15:54:21,745 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/1f80aa7a-9b63-4a05-b909-4a9368f51683 2026-06-18 15:54:21,752 - DEBUG - Response Code: 404 2026-06-18 15:54:21,753 - DEBUG - Requesting: http://10.0.0.249:8082/domains 2026-06-18 15:54:21,763 - DEBUG - Requesting: http://10.0.0.249:8082/domain/9fac9674-3f03-42e2-9600-3ff953e8979b 2026-06-18 15:54:21,775 - DEBUG - Requesting: http://10.0.0.249:8082/project/b30af9c8-0fdf-49db-bacc-51094d2d7318 2026-06-18 15:54:21,855 - INFO - Validated that VN ctest-vn4-05604638 is not found in API Server 2026-06-18 15:54:21,864 - DEBUG - VN ctest-vn4-05604638 is not present in Agent 10.0.0.19 2026-06-18 15:54:21,873 - DEBUG - VN ctest-vn4-05604638 is not present in Agent 10.0.0.129 2026-06-18 15:54:21,873 - INFO - Validated that VN ctest-vn4-05604638 is not in any agent 2026-06-18 15:54:21,902 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-05604638 info 2026-06-18 15:54:21,940 - INFO - Deleted policy ctest-policy1-47425213 2026-06-18 15:54:22,130 - DEBUG - policy ctest-policy1-47425213 is not found in API Server 2026-06-18 15:54:23,390 - DEBUG - No XMPP flaps were noticed during the test 2026-06-18 15:54:23,390 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:07] 2026-06-18 15:54:23,390 - INFO - -------------------------------------------------------------------------------- 2026-06-18 15:54:24,656 - DEBUG - No XMPP flaps were noticed during the test 2026-06-18 15:54:24,656 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:09] 2026-06-18 15:54:24,656 - INFO - -------------------------------------------------------------------------------- 2026-06-18 15:54:25,422 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-60077787, ID : b30af9c8-0fdf-49db-bacc-51094d2d7318