2026-01-21 18:06:15,119 - INFO - Domain Default found not creating 2026-01-21 18:06:15,278 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-96596197 not found, creating it 2026-01-21 18:06:15,716 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-96596197, ID : 456cf64a-2e17-4a74-bb9c-19f9c6f5016b 2026-01-21 18:06:17,114 - INFO - ================================================================================ 2026-01-21 18:06:17,114 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-01-21 18:06:17,371 - DEBUG - Nothing to compare xmpp stats {'10.0.0.38': {'10.20.0.5': '0'}} with 2026-01-21 18:06:17,371 - INFO - Initial checks done. Running the testcase now 2026-01-21 18:06:17,371 - INFO - 2026-01-21 18:06:17,371 - INFO - ================================================================================ 2026-01-21 18:06:17,371 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-01-21 18:06:17,371 - 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-01-21 18:06:17,655 - DEBUG - Nothing to compare xmpp stats {'10.0.0.38': {'10.20.0.5': '0'}} with 2026-01-21 18:06:17,655 - INFO - Initial checks done. Running the testcase now 2026-01-21 18:06:17,655 - INFO - 2026-01-21 18:06:18,023 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-96596197:ctest-vn4-49850290, 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-96596197:ctest-vn4-49850290, 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-96596197:ctest-vn4-49850290, 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-96596197:ctest-vn4-49850290, 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-01-21 18:06:18,509 - DEBUG - Response for create_network : {'network': {'id': '6fb0e7ed-53ad-4f56-afee-45623c3e303f', 'name': 'ctest-vn4-49850290', 'tenant_id': '456cf64a2e174a74bb9c19f9c6f5016b', 'project_id': '456cf64a2e174a74bb9c19f9c6f5016b', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-96596197', 'ctest-vn4-49850290'], 'port_security_enabled': True, 'description': ''}} 2026-01-21 18:06:18,714 - DEBUG - Response for create_subnet : {'subnet': {'id': '9c450189-83d3-4264-9198-b2a9b2dcb4d4', 'name': '', 'tenant_id': '456cf64a2e174a74bb9c19f9c6f5016b', 'network_id': '6fb0e7ed-53ad-4f56-afee-45623c3e303f', 'ip_version': 4, 'cidr': '120.245.254.64/26', 'allocation_pools': [{'start': '120.245.254.66', 'end': '120.245.254.126'}], 'gateway_ip': '120.245.254.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '120.245.254.66', 'tags': [], 'project_id': '456cf64a2e174a74bb9c19f9c6f5016b'}} 2026-01-21 18:06:18,842 - DEBUG - Response for create_subnet : {'subnet': {'id': '3a2d59d3-91a2-4573-b43a-a18c4fc7fb81', 'name': '', 'tenant_id': '456cf64a2e174a74bb9c19f9c6f5016b', 'network_id': '6fb0e7ed-53ad-4f56-afee-45623c3e303f', 'ip_version': 6, 'cidr': '3a3a:f8ae:a9df:1f4:f2c1:842d::/96', 'allocation_pools': [{'start': '3a3a:f8ae:a9df:1f4:f2c1:842d:0:2', 'end': '3a3a:f8ae:a9df:1f4:f2c1:842d:ffff:fffe'}], 'gateway_ip': '3a3a:f8ae:a9df:1f4:f2c1:842d:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '3a3a:f8ae:a9df:1f4:f2c1:842d:0:2', 'tags': [], 'project_id': '456cf64a2e174a74bb9c19f9c6f5016b'}} 2026-01-21 18:06:18,859 - INFO - Created VN ctest-vn4-49850290 2026-01-21 18:06:18,907 - DEBUG - VN ctest-vn4-49850290 UUID is 6fb0e7ed-53ad-4f56-afee-45623c3e303f 2026-01-21 18:06:19,089 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '6fb0e7ed-53ad-4f56-afee-45623c3e303f', 'name': 'ctest-vn4-49850290', 'tenant_id': '456cf64a2e174a74bb9c19f9c6f5016b', 'project_id': '456cf64a2e174a74bb9c19f9c6f5016b', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['9c450189-83d3-4264-9198-b2a9b2dcb4d4', '3a2d59d3-91a2-4573-b43a-a18c4fc7fb81'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-96596197', 'ctest-vn4-49850290'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-96596197', 'ctest-policy1-47379984']], 'subnet_ipam': [{'subnet_cidr': '120.245.254.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '3a3a:f8ae:a9df:1f4:f2c1:842d::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2026-01-21 18:06:19,247 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2026-01-21 18:06:19,557 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2026-01-21 18:06:19,585 - DEBUG - Requesting: http://10.0.0.38:8082/domain/7d8a8824-80fc-4728-ad5a-aa119d86da41 2026-01-21 18:06:19,596 - DEBUG - Requesting: http://10.0.0.38:8082/project/456cf64a-2e17-4a74-bb9c-19f9c6f5016b 2026-01-21 18:06:19,719 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/6fb0e7ed-53ad-4f56-afee-45623c3e303f 2026-01-21 18:06:19,729 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/6fb0e7ed-53ad-4f56-afee-45623c3e303f 2026-01-21 18:06:19,737 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/3dc1b7f0-01e2-4427-8eb5-58a6ed9d2c7a 2026-01-21 18:06:19,743 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/3dc1b7f0-01e2-4427-8eb5-58a6ed9d2c7a 2026-01-21 18:06:19,749 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/1d4d40ec-408e-4aa5-9ea4-c464ea329b59 2026-01-21 18:06:19,754 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-01-21 18:06:19,754 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/6fb0e7ed-53ad-4f56-afee-45623c3e303f 2026-01-21 18:06:19,762 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/3dc1b7f0-01e2-4427-8eb5-58a6ed9d2c7a 2026-01-21 18:06:19,774 - INFO - Verified VN network id 12 for VN 6fb0e7ed-53ad-4f56-afee-45623c3e303f 2026-01-21 18:06:19,774 - INFO - Verifications in API Server for VN ctest-vn4-49850290 passed 2026-01-21 18:06:19,774 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/6fb0e7ed-53ad-4f56-afee-45623c3e303f 2026-01-21 18:06:19,783 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/3dc1b7f0-01e2-4427-8eb5-58a6ed9d2c7a 2026-01-21 18:06:19,788 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/3dc1b7f0-01e2-4427-8eb5-58a6ed9d2c7a 2026-01-21 18:06:19,794 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/1d4d40ec-408e-4aa5-9ea4-c464ea329b59 2026-01-21 18:06:19,803 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-96596197:ctest-vn4-49850290', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-96596197', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '8048187540608208726', 'uuid-lslong': '12677146289314345023'}, 'enable': 'true', 'created': '2026-01-21T18:06:18', 'last-modified': '2026-01-21T18:06:19', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.740311'} 2026-01-21 18:06:19,809 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-01-21 18:06:19,809 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-49850290 passed 2026-01-21 18:06:19,809 - DEBUG - ====Verifying policy data for ctest-vn4-49850290 in API_Server ====== 2026-01-21 18:06:19,809 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2026-01-21 18:06:19,814 - DEBUG - Requesting: http://10.0.0.38:8082/domain/7d8a8824-80fc-4728-ad5a-aa119d86da41 2026-01-21 18:06:19,823 - DEBUG - Requesting: http://10.0.0.38:8082/project/456cf64a-2e17-4a74-bb9c-19f9c6f5016b 2026-01-21 18:06:19,892 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/6fb0e7ed-53ad-4f56-afee-45623c3e303f 2026-01-21 18:06:19,901 - DEBUG - ==>Verifying data for policy with id: 068bad5e-5a57-4555-abe7-9587ee066dcc, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-96596197', 'ctest-policy1-47379984'] 2026-01-21 18:06:19,901 - INFO - VN ctest-vn4-49850290 Policy verification: verify_vn_policy_in_api_server, status: True 2026-01-21 18:06:19,901 - DEBUG - Verifying the vn in opserver 2026-01-21 18:06:19,901 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-96596197:ctest-vn4-49850290 virtual network link through opserver 10.0.0.38 2026-01-21 18:06:19,901 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks 2026-01-21 18:06:20,193 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks 2026-01-21 18:06:20,250 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-96596197:ctest-vn4-49850290', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-96596197:ctest-vn4-49850290?flat'} 2026-01-21 18:06:20,250 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-96596197:ctest-vn4-49850290 is found in opserver 2026-01-21 18:06:20,259 - DEBUG - Do not have enough data to verify VN in agent 2026-01-21 18:06:20,263 - DEBUG - VRF ids for VN ctest-vn4-49850290: {} 2026-01-21 18:06:20,263 - DEBUG - ====Verifying data for ctest-policy1-47379984 in API_Server ====== 2026-01-21 18:06:20,263 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2026-01-21 18:06:20,268 - DEBUG - Requesting: http://10.0.0.38:8082/domain/7d8a8824-80fc-4728-ad5a-aa119d86da41 2026-01-21 18:06:20,279 - DEBUG - Requesting: http://10.0.0.38:8082/project/456cf64a-2e17-4a74-bb9c-19f9c6f5016b 2026-01-21 18:06:20,349 - DEBUG - Requesting: http://10.0.0.38:8082/network-policy/068bad5e-5a57-4555-abe7-9587ee066dcc 2026-01-21 18:06:20,358 - INFO - Verified policy ctest-policy1-47379984 in API Server, Result: True 2026-01-21 18:06:20,358 - INFO - Done with setup and verification, moving onto test .. 2026-01-21 18:06:20,365 - INFO - Deleting VN ctest-vn4-49850290 2026-01-21 18:06:20,474 - DEBUG - Response for deleting network () 2026-01-21 18:06:20,474 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/3dc1b7f0-01e2-4427-8eb5-58a6ed9d2c7a 2026-01-21 18:06:20,478 - DEBUG - Response Code: 404 2026-01-21 18:06:20,478 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2026-01-21 18:06:20,482 - DEBUG - Requesting: http://10.0.0.38:8082/domain/7d8a8824-80fc-4728-ad5a-aa119d86da41 2026-01-21 18:06:20,535 - DEBUG - Requesting: http://10.0.0.38:8082/project/456cf64a-2e17-4a74-bb9c-19f9c6f5016b 2026-01-21 18:06:20,600 - INFO - Validated that VN ctest-vn4-49850290 is not found in API Server 2026-01-21 18:06:20,608 - DEBUG - VN ctest-vn4-49850290 is not present in Agent 10.0.0.38 2026-01-21 18:06:20,608 - INFO - Validated that VN ctest-vn4-49850290 is not in any agent 2026-01-21 18:06:20,620 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-49850290 info 2026-01-21 18:06:20,639 - INFO - Deleted policy ctest-policy1-47379984 2026-01-21 18:06:20,802 - DEBUG - policy ctest-policy1-47379984 is not found in API Server 2026-01-21 18:06:21,058 - DEBUG - No XMPP flaps were noticed during the test 2026-01-21 18:06:21,059 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04] 2026-01-21 18:06:21,059 - INFO - -------------------------------------------------------------------------------- 2026-01-21 18:06:21,351 - DEBUG - No XMPP flaps were noticed during the test 2026-01-21 18:06:21,351 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04] 2026-01-21 18:06:21,351 - INFO - -------------------------------------------------------------------------------- 2026-01-21 18:06:21,996 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-96596197, ID : 456cf64a-2e17-4a74-bb9c-19f9c6f5016b