2026-09-17 12:21:43,591 - INFO - Domain Default found not creating 2026-09-17 12:21:43,781 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-78741374 not found, creating it 2026-09-17 12:21:44,364 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-78741374, ID : 62c3cc97-8905-4609-bb84-ac12472de698 2026-09-17 12:21:46,214 - INFO - ================================================================================ 2026-09-17 12:21:46,215 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-09-17 12:21:46,492 - DEBUG - Nothing to compare xmpp stats {'10.0.0.162': {'10.20.0.25': '0'}} with 2026-09-17 12:21:46,492 - INFO - Initial checks done. Running the testcase now 2026-09-17 12:21:46,492 - INFO - 2026-09-17 12:21:46,492 - INFO - ================================================================================ 2026-09-17 12:21:46,493 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-09-17 12:21:46,493 - 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-09-17 12:21:46,790 - DEBUG - Nothing to compare xmpp stats {'10.0.0.162': {'10.20.0.25': '0'}} with 2026-09-17 12:21:46,791 - INFO - Initial checks done. Running the testcase now 2026-09-17 12:21:46,791 - INFO - 2026-09-17 12:21:47,229 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-78741374:ctest-vn4-09481349, 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-78741374:ctest-vn4-09481349, 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-78741374:ctest-vn4-09481349, 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-78741374:ctest-vn4-09481349, 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-09-17 12:21:47,792 - DEBUG - Response for create_network : {'network': {'id': 'd2572b0b-1e15-403b-9886-eb0b09a7a2c3', 'name': 'ctest-vn4-09481349', 'tenant_id': '62c3cc9789054609bb84ac12472de698', 'project_id': '62c3cc9789054609bb84ac12472de698', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'tags': [], 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-78741374', 'ctest-vn4-09481349'], 'port_security_enabled': True, 'description': ''}} 2026-09-17 12:21:47,968 - DEBUG - Response for create_subnet : {'subnet': {'id': '053b4171-3297-4130-91a8-c621c72f651c', 'name': '', 'tenant_id': '62c3cc9789054609bb84ac12472de698', 'network_id': 'd2572b0b-1e15-403b-9886-eb0b09a7a2c3', 'ip_version': 4, 'cidr': '68.153.249.192/26', 'allocation_pools': [{'start': '68.153.249.194', 'end': '68.153.249.254'}], 'gateway_ip': '68.153.249.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '68.153.249.194', 'tags': [], 'project_id': '62c3cc9789054609bb84ac12472de698'}} 2026-09-17 12:21:48,152 - DEBUG - Response for create_subnet : {'subnet': {'id': '13a27ba2-3388-4125-ba40-13dabd9e228f', 'name': '', 'tenant_id': '62c3cc9789054609bb84ac12472de698', 'network_id': 'd2572b0b-1e15-403b-9886-eb0b09a7a2c3', 'ip_version': 6, 'cidr': '344c:31c4:8957:b7a9:9b2e:5679::/96', 'allocation_pools': [{'start': '344c:31c4:8957:b7a9:9b2e:5679:0:2', 'end': '344c:31c4:8957:b7a9:9b2e:5679:ffff:fffe'}], 'gateway_ip': '344c:31c4:8957:b7a9:9b2e:5679:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '344c:31c4:8957:b7a9:9b2e:5679:0:2', 'tags': [], 'project_id': '62c3cc9789054609bb84ac12472de698'}} 2026-09-17 12:21:48,175 - INFO - Created VN ctest-vn4-09481349 2026-09-17 12:21:48,230 - DEBUG - VN ctest-vn4-09481349 UUID is d2572b0b-1e15-403b-9886-eb0b09a7a2c3 2026-09-17 12:21:48,468 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'd2572b0b-1e15-403b-9886-eb0b09a7a2c3', 'name': 'ctest-vn4-09481349', 'tenant_id': '62c3cc9789054609bb84ac12472de698', 'project_id': '62c3cc9789054609bb84ac12472de698', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'tags': [], 'subnets': ['053b4171-3297-4130-91a8-c621c72f651c', '13a27ba2-3388-4125-ba40-13dabd9e228f'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-78741374', 'ctest-vn4-09481349'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-78741374', 'ctest-policy1-89205467']], 'subnet_ipam': [{'subnet_cidr': '68.153.249.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '344c:31c4:8957:b7a9:9b2e:5679::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2026-09-17 12:21:48,638 - DEBUG - Requesting: http://10.0.0.162:8082/domains 2026-09-17 12:21:49,033 - DEBUG - Requesting: http://10.0.0.162:8082/domains 2026-09-17 12:21:49,095 - DEBUG - Requesting: http://10.0.0.162:8082/domain/04f536e6-4b90-464f-b1df-25f223f28136 2026-09-17 12:21:49,114 - DEBUG - Requesting: http://10.0.0.162:8082/project/62c3cc97-8905-4609-bb84-ac12472de698 2026-09-17 12:21:49,204 - DEBUG - Requesting: http://10.0.0.162:8082/virtual-network/d2572b0b-1e15-403b-9886-eb0b09a7a2c3 2026-09-17 12:21:49,219 - DEBUG - Requesting: http://10.0.0.162:8082/virtual-network/d2572b0b-1e15-403b-9886-eb0b09a7a2c3 2026-09-17 12:21:49,232 - DEBUG - Requesting: http://10.0.0.162:8082/routing-instance/b7ff50b9-d3d0-42ab-a2e7-2839de5af86a 2026-09-17 12:21:49,241 - DEBUG - Requesting: http://10.0.0.162:8082/routing-instance/b7ff50b9-d3d0-42ab-a2e7-2839de5af86a 2026-09-17 12:21:49,251 - DEBUG - Requesting: http://10.0.0.162:8082/route-target/09343f54-59a2-4cbc-a94e-0a246705feab 2026-09-17 12:21:49,259 - DEBUG - Route Targets: ['target:64512:8000005'] 2026-09-17 12:21:49,260 - DEBUG - Requesting: http://10.0.0.162:8082/virtual-network/d2572b0b-1e15-403b-9886-eb0b09a7a2c3 2026-09-17 12:21:49,272 - DEBUG - Requesting: http://10.0.0.162:8082/routing-instance/b7ff50b9-d3d0-42ab-a2e7-2839de5af86a 2026-09-17 12:21:49,292 - INFO - Verified VN network id 12 for VN d2572b0b-1e15-403b-9886-eb0b09a7a2c3 2026-09-17 12:21:49,293 - INFO - Verifications in API Server for VN ctest-vn4-09481349 passed 2026-09-17 12:21:49,293 - DEBUG - Requesting: http://10.0.0.162:8082/virtual-network/d2572b0b-1e15-403b-9886-eb0b09a7a2c3 2026-09-17 12:21:49,306 - DEBUG - Requesting: http://10.0.0.162:8082/routing-instance/b7ff50b9-d3d0-42ab-a2e7-2839de5af86a 2026-09-17 12:21:49,315 - DEBUG - Requesting: http://10.0.0.162:8082/routing-instance/b7ff50b9-d3d0-42ab-a2e7-2839de5af86a 2026-09-17 12:21:49,325 - DEBUG - Requesting: http://10.0.0.162:8082/route-target/09343f54-59a2-4cbc-a94e-0a246705feab 2026-09-17 12:21:49,342 - DEBUG - Control-node 10.0.0.162 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-78741374:ctest-vn4-09481349', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-78741374', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '15156630397688037435', 'uuid-lslong': '10990730373283422915'}, 'enable': 'true', 'created': '2026-09-17T12:21:47', 'last-modified': '2026-09-17T12:21:48', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.906771'} 2026-09-17 12:21:49,351 - DEBUG - Route Targets: ['target:64512:8000005'] 2026-09-17 12:21:49,351 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-09481349 passed 2026-09-17 12:21:49,351 - DEBUG - ====Verifying policy data for ctest-vn4-09481349 in API_Server ====== 2026-09-17 12:21:49,352 - DEBUG - Requesting: http://10.0.0.162:8082/domains 2026-09-17 12:21:49,357 - DEBUG - Requesting: http://10.0.0.162:8082/domain/04f536e6-4b90-464f-b1df-25f223f28136 2026-09-17 12:21:49,371 - DEBUG - Requesting: http://10.0.0.162:8082/project/62c3cc97-8905-4609-bb84-ac12472de698 2026-09-17 12:21:49,468 - DEBUG - Requesting: http://10.0.0.162:8082/virtual-network/d2572b0b-1e15-403b-9886-eb0b09a7a2c3 2026-09-17 12:21:49,483 - DEBUG - ==>Verifying data for policy with id: 1b8bb7ba-6da4-4e52-8885-4fb21123d417, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-78741374', 'ctest-policy1-89205467'] 2026-09-17 12:21:49,483 - INFO - VN ctest-vn4-09481349 Policy verification: verify_vn_policy_in_api_server, status: True 2026-09-17 12:21:49,483 - DEBUG - Verifying the vn in opserver 2026-09-17 12:21:49,483 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-78741374:ctest-vn4-09481349 virtual network link through opserver 10.0.0.162 2026-09-17 12:21:49,483 - DEBUG - Requesting: http://10.0.0.162:8081/analytics/uves/virtual-networks 2026-09-17 12:21:49,862 - DEBUG - Requesting: http://10.0.0.162:8081/analytics/uves/virtual-networks 2026-09-17 12:21:49,934 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-78741374:ctest-vn4-09481349', 'href': 'http://10.0.0.162:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-78741374:ctest-vn4-09481349?flat'} 2026-09-17 12:21:49,934 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-78741374:ctest-vn4-09481349 is found in opserver 2026-09-17 12:21:49,947 - DEBUG - Do not have enough data to verify VN in agent 2026-09-17 12:21:49,953 - DEBUG - VRF ids for VN ctest-vn4-09481349: {} 2026-09-17 12:21:49,954 - DEBUG - ====Verifying data for ctest-policy1-89205467 in API_Server ====== 2026-09-17 12:21:49,954 - DEBUG - Requesting: http://10.0.0.162:8082/domains 2026-09-17 12:21:49,961 - DEBUG - Requesting: http://10.0.0.162:8082/domain/04f536e6-4b90-464f-b1df-25f223f28136 2026-09-17 12:21:49,974 - DEBUG - Requesting: http://10.0.0.162:8082/project/62c3cc97-8905-4609-bb84-ac12472de698 2026-09-17 12:21:50,054 - DEBUG - Requesting: http://10.0.0.162:8082/network-policy/1b8bb7ba-6da4-4e52-8885-4fb21123d417 2026-09-17 12:21:50,067 - INFO - Verified policy ctest-policy1-89205467 in API Server, Result: True 2026-09-17 12:21:50,067 - INFO - Done with setup and verification, moving onto test .. 2026-09-17 12:21:50,078 - INFO - Deleting VN ctest-vn4-09481349 2026-09-17 12:21:50,243 - DEBUG - Response for deleting network () 2026-09-17 12:21:50,243 - DEBUG - Requesting: http://10.0.0.162:8082/routing-instance/b7ff50b9-d3d0-42ab-a2e7-2839de5af86a 2026-09-17 12:21:50,250 - DEBUG - Response Code: 404 2026-09-17 12:21:50,250 - DEBUG - Requesting: http://10.0.0.162:8082/domains 2026-09-17 12:21:50,257 - DEBUG - Requesting: http://10.0.0.162:8082/domain/04f536e6-4b90-464f-b1df-25f223f28136 2026-09-17 12:21:50,312 - DEBUG - Requesting: http://10.0.0.162:8082/project/62c3cc97-8905-4609-bb84-ac12472de698 2026-09-17 12:21:50,393 - INFO - Validated that VN ctest-vn4-09481349 is not found in API Server 2026-09-17 12:21:50,405 - DEBUG - VN ctest-vn4-09481349 is not present in Agent 10.0.0.162 2026-09-17 12:21:50,405 - INFO - Validated that VN ctest-vn4-09481349 is not in any agent 2026-09-17 12:21:50,425 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-09481349 info 2026-09-17 12:21:50,462 - INFO - Deleted policy ctest-policy1-89205467 2026-09-17 12:21:50,646 - DEBUG - policy ctest-policy1-89205467 is not found in API Server 2026-09-17 12:21:50,922 - DEBUG - No XMPP flaps were noticed during the test 2026-09-17 12:21:50,922 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04] 2026-09-17 12:21:50,922 - INFO - -------------------------------------------------------------------------------- 2026-09-17 12:21:51,218 - DEBUG - No XMPP flaps were noticed during the test 2026-09-17 12:21:51,218 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:05] 2026-09-17 12:21:51,218 - INFO - -------------------------------------------------------------------------------- 2026-09-17 12:21:52,002 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-78741374, ID : 62c3cc97-8905-4609-bb84-ac12472de698