2026-08-21 05:07:54,303 - INFO - Domain Default found not creating 2026-08-21 05:07:54,485 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-79319330 not found, creating it 2026-08-21 05:07:54,992 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-79319330, ID : 988de2ff-e22b-4cb6-8b2d-28b07add5ad3 2026-08-21 05:07:56,624 - INFO - ================================================================================ 2026-08-21 05:07:56,624 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-08-21 05:07:56,892 - DEBUG - Nothing to compare xmpp stats {'10.0.0.250': {'10.20.0.25': '0'}} with 2026-08-21 05:07:56,892 - INFO - Initial checks done. Running the testcase now 2026-08-21 05:07:56,893 - INFO - 2026-08-21 05:07:56,893 - INFO - ================================================================================ 2026-08-21 05:07:56,893 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-08-21 05:07:56,893 - 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-08-21 05:07:57,193 - DEBUG - Nothing to compare xmpp stats {'10.0.0.250': {'10.20.0.25': '0'}} with 2026-08-21 05:07:57,193 - INFO - Initial checks done. Running the testcase now 2026-08-21 05:07:57,193 - INFO - 2026-08-21 05:07:57,572 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-79319330:ctest-vn4-10099905, 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-79319330:ctest-vn4-10099905, 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-79319330:ctest-vn4-10099905, 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-79319330:ctest-vn4-10099905, 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-08-21 05:07:58,106 - DEBUG - Response for create_network : {'network': {'id': '778b7400-3df4-4709-95b2-fd5a41d0d6dc', 'name': 'ctest-vn4-10099905', 'tenant_id': '988de2ffe22b4cb68b2d28b07add5ad3', 'project_id': '988de2ffe22b4cb68b2d28b07add5ad3', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-79319330', 'ctest-vn4-10099905'], 'port_security_enabled': True, 'description': ''}} 2026-08-21 05:07:58,300 - DEBUG - Response for create_subnet : {'subnet': {'id': '9e0ffc49-9daf-4243-bf54-0cdb29801aa3', 'name': '', 'tenant_id': '988de2ffe22b4cb68b2d28b07add5ad3', 'network_id': '778b7400-3df4-4709-95b2-fd5a41d0d6dc', 'ip_version': 4, 'cidr': '116.184.191.192/26', 'allocation_pools': [{'start': '116.184.191.194', 'end': '116.184.191.254'}], 'gateway_ip': '116.184.191.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '116.184.191.194', 'tags': [], 'project_id': '988de2ffe22b4cb68b2d28b07add5ad3'}} 2026-08-21 05:07:58,478 - DEBUG - Response for create_subnet : {'subnet': {'id': 'f2063fb6-2a27-4bd4-a763-e0a527fb04a6', 'name': '', 'tenant_id': '988de2ffe22b4cb68b2d28b07add5ad3', 'network_id': '778b7400-3df4-4709-95b2-fd5a41d0d6dc', 'ip_version': 6, 'cidr': '33b0:e785:c6d6:c9f1:9f34:dd97::/96', 'allocation_pools': [{'start': '33b0:e785:c6d6:c9f1:9f34:dd97:0:2', 'end': '33b0:e785:c6d6:c9f1:9f34:dd97:ffff:fffe'}], 'gateway_ip': '33b0:e785:c6d6:c9f1:9f34:dd97:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '33b0:e785:c6d6:c9f1:9f34:dd97:0:2', 'tags': [], 'project_id': '988de2ffe22b4cb68b2d28b07add5ad3'}} 2026-08-21 05:07:58,499 - INFO - Created VN ctest-vn4-10099905 2026-08-21 05:07:58,552 - DEBUG - VN ctest-vn4-10099905 UUID is 778b7400-3df4-4709-95b2-fd5a41d0d6dc 2026-08-21 05:07:58,754 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '778b7400-3df4-4709-95b2-fd5a41d0d6dc', 'name': 'ctest-vn4-10099905', 'tenant_id': '988de2ffe22b4cb68b2d28b07add5ad3', 'project_id': '988de2ffe22b4cb68b2d28b07add5ad3', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['9e0ffc49-9daf-4243-bf54-0cdb29801aa3', 'f2063fb6-2a27-4bd4-a763-e0a527fb04a6'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-79319330', 'ctest-vn4-10099905'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-79319330', 'ctest-policy1-41846591']], 'subnet_ipam': [{'subnet_cidr': '116.184.191.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '33b0:e785:c6d6:c9f1:9f34:dd97::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2026-08-21 05:07:58,916 - DEBUG - Requesting: http://10.0.0.250:8082/domains 2026-08-21 05:07:59,248 - DEBUG - Requesting: http://10.0.0.250:8082/domains 2026-08-21 05:07:59,280 - DEBUG - Requesting: http://10.0.0.250:8082/domain/4c8fc260-3709-44de-980f-9868b10dcaa7 2026-08-21 05:07:59,296 - DEBUG - Requesting: http://10.0.0.250:8082/project/988de2ff-e22b-4cb6-8b2d-28b07add5ad3 2026-08-21 05:07:59,376 - DEBUG - Requesting: http://10.0.0.250:8082/virtual-network/778b7400-3df4-4709-95b2-fd5a41d0d6dc 2026-08-21 05:07:59,389 - DEBUG - Requesting: http://10.0.0.250:8082/virtual-network/778b7400-3df4-4709-95b2-fd5a41d0d6dc 2026-08-21 05:07:59,400 - DEBUG - Requesting: http://10.0.0.250:8082/routing-instance/6303b534-fa20-46a1-aade-5f5ff2b90239 2026-08-21 05:07:59,408 - DEBUG - Requesting: http://10.0.0.250:8082/routing-instance/6303b534-fa20-46a1-aade-5f5ff2b90239 2026-08-21 05:07:59,417 - DEBUG - Requesting: http://10.0.0.250:8082/route-target/fc80a652-da73-4748-8add-588db7559649 2026-08-21 05:07:59,426 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-08-21 05:07:59,426 - DEBUG - Requesting: http://10.0.0.250:8082/virtual-network/778b7400-3df4-4709-95b2-fd5a41d0d6dc 2026-08-21 05:07:59,436 - DEBUG - Requesting: http://10.0.0.250:8082/routing-instance/6303b534-fa20-46a1-aade-5f5ff2b90239 2026-08-21 05:07:59,453 - INFO - Verified VN network id 11 for VN 778b7400-3df4-4709-95b2-fd5a41d0d6dc 2026-08-21 05:07:59,454 - INFO - Verifications in API Server for VN ctest-vn4-10099905 passed 2026-08-21 05:07:59,454 - DEBUG - Requesting: http://10.0.0.250:8082/virtual-network/778b7400-3df4-4709-95b2-fd5a41d0d6dc 2026-08-21 05:07:59,467 - DEBUG - Requesting: http://10.0.0.250:8082/routing-instance/6303b534-fa20-46a1-aade-5f5ff2b90239 2026-08-21 05:07:59,475 - DEBUG - Requesting: http://10.0.0.250:8082/routing-instance/6303b534-fa20-46a1-aade-5f5ff2b90239 2026-08-21 05:07:59,483 - DEBUG - Requesting: http://10.0.0.250:8082/route-target/fc80a652-da73-4748-8add-588db7559649 2026-08-21 05:07:59,500 - DEBUG - Control-node 10.0.0.250 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-79319330:ctest-vn4-10099905', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-79319330', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '8614106256664446729', 'uuid-lslong': '10786962621598848732'}, 'enable': 'true', 'created': '2026-08-21T05:07:58', 'last-modified': '2026-08-21T05:07:58', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.775577'} 2026-08-21 05:07:59,506 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-08-21 05:07:59,507 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-10099905 passed 2026-08-21 05:07:59,507 - DEBUG - ====Verifying policy data for ctest-vn4-10099905 in API_Server ====== 2026-08-21 05:07:59,507 - DEBUG - Requesting: http://10.0.0.250:8082/domains 2026-08-21 05:07:59,513 - DEBUG - Requesting: http://10.0.0.250:8082/domain/4c8fc260-3709-44de-980f-9868b10dcaa7 2026-08-21 05:07:59,526 - DEBUG - Requesting: http://10.0.0.250:8082/project/988de2ff-e22b-4cb6-8b2d-28b07add5ad3 2026-08-21 05:07:59,608 - DEBUG - Requesting: http://10.0.0.250:8082/virtual-network/778b7400-3df4-4709-95b2-fd5a41d0d6dc 2026-08-21 05:07:59,619 - DEBUG - ==>Verifying data for policy with id: d572210d-51ab-447e-8998-d42f37b0a691, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-79319330', 'ctest-policy1-41846591'] 2026-08-21 05:07:59,619 - INFO - VN ctest-vn4-10099905 Policy verification: verify_vn_policy_in_api_server, status: True 2026-08-21 05:07:59,619 - DEBUG - Verifying the vn in opserver 2026-08-21 05:07:59,620 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-79319330:ctest-vn4-10099905 virtual network link through opserver 10.0.0.250 2026-08-21 05:07:59,620 - DEBUG - Requesting: http://10.0.0.250:8081/analytics/uves/virtual-networks 2026-08-21 05:07:59,955 - DEBUG - Requesting: http://10.0.0.250:8081/analytics/uves/virtual-networks 2026-08-21 05:08:00,011 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-79319330:ctest-vn4-10099905', 'href': 'http://10.0.0.250:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-79319330:ctest-vn4-10099905?flat'} 2026-08-21 05:08:00,011 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-79319330:ctest-vn4-10099905 is found in opserver 2026-08-21 05:08:00,025 - DEBUG - Do not have enough data to verify VN in agent 2026-08-21 05:08:00,031 - DEBUG - VRF ids for VN ctest-vn4-10099905: {} 2026-08-21 05:08:00,032 - DEBUG - ====Verifying data for ctest-policy1-41846591 in API_Server ====== 2026-08-21 05:08:00,032 - DEBUG - Requesting: http://10.0.0.250:8082/domains 2026-08-21 05:08:00,038 - DEBUG - Requesting: http://10.0.0.250:8082/domain/4c8fc260-3709-44de-980f-9868b10dcaa7 2026-08-21 05:08:00,051 - DEBUG - Requesting: http://10.0.0.250:8082/project/988de2ff-e22b-4cb6-8b2d-28b07add5ad3 2026-08-21 05:08:00,133 - DEBUG - Requesting: http://10.0.0.250:8082/network-policy/d572210d-51ab-447e-8998-d42f37b0a691 2026-08-21 05:08:00,145 - INFO - Verified policy ctest-policy1-41846591 in API Server, Result: True 2026-08-21 05:08:00,145 - INFO - Done with setup and verification, moving onto test .. 2026-08-21 05:08:00,155 - INFO - Deleting VN ctest-vn4-10099905 2026-08-21 05:08:00,303 - DEBUG - Response for deleting network () 2026-08-21 05:08:00,304 - DEBUG - Requesting: http://10.0.0.250:8082/routing-instance/6303b534-fa20-46a1-aade-5f5ff2b90239 2026-08-21 05:08:00,310 - DEBUG - Response Code: 404 2026-08-21 05:08:00,310 - DEBUG - Requesting: http://10.0.0.250:8082/domains 2026-08-21 05:08:00,317 - DEBUG - Requesting: http://10.0.0.250:8082/domain/4c8fc260-3709-44de-980f-9868b10dcaa7 2026-08-21 05:08:00,374 - DEBUG - Requesting: http://10.0.0.250:8082/project/988de2ff-e22b-4cb6-8b2d-28b07add5ad3 2026-08-21 05:08:00,459 - INFO - Validated that VN ctest-vn4-10099905 is not found in API Server 2026-08-21 05:08:00,473 - DEBUG - VN ctest-vn4-10099905 is not present in Agent 10.0.0.250 2026-08-21 05:08:00,473 - INFO - Validated that VN ctest-vn4-10099905 is not in any agent 2026-08-21 05:08:00,491 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-10099905 info 2026-08-21 05:08:00,522 - INFO - Deleted policy ctest-policy1-41846591 2026-08-21 05:08:00,700 - DEBUG - policy ctest-policy1-41846591 is not found in API Server 2026-08-21 05:08:00,958 - DEBUG - No XMPP flaps were noticed during the test