2026-03-26 02:32:03,169 - INFO - Domain Default found not creating 2026-03-26 02:32:03,524 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-39792992 not found, creating it 2026-03-26 02:32:04,193 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-39792992, ID : 415c00d3-8894-42a1-b77c-e9eafbd1386b 2026-03-26 02:32:06,310 - INFO - ================================================================================ 2026-03-26 02:32:06,311 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-03-26 02:32:06,632 - DEBUG - Nothing to compare xmpp stats {'10.0.0.27': {'10.20.0.252': '0'}} with 2026-03-26 02:32:06,632 - INFO - Initial checks done. Running the testcase now 2026-03-26 02:32:06,632 - INFO - 2026-03-26 02:32:06,633 - INFO - ================================================================================ 2026-03-26 02:32:06,633 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-03-26 02:32:06,633 - 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-03-26 02:32:06,976 - DEBUG - Nothing to compare xmpp stats {'10.0.0.27': {'10.20.0.252': '0'}} with 2026-03-26 02:32:06,976 - INFO - Initial checks done. Running the testcase now 2026-03-26 02:32:06,976 - INFO - 2026-03-26 02:32:07,467 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-39792992:ctest-vn4-31581331, 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-39792992:ctest-vn4-31581331, 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-39792992:ctest-vn4-31581331, 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-39792992:ctest-vn4-31581331, 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-03-26 02:32:08,244 - DEBUG - Response for create_network : {'network': {'id': '6d4b4cff-9f2d-4260-9064-b633f7112eab', 'name': 'ctest-vn4-31581331', 'tenant_id': '415c00d3889442a1b77ce9eafbd1386b', 'project_id': '415c00d3889442a1b77ce9eafbd1386b', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-39792992', 'ctest-vn4-31581331'], 'port_security_enabled': True, 'description': ''}} 2026-03-26 02:32:08,418 - DEBUG - Response for create_subnet : {'subnet': {'id': '58382e0a-27c9-4007-a80f-940fcba018d4', 'name': '', 'tenant_id': '415c00d3889442a1b77ce9eafbd1386b', 'network_id': '6d4b4cff-9f2d-4260-9064-b633f7112eab', 'ip_version': 4, 'cidr': '2.131.123.64/26', 'allocation_pools': [{'start': '2.131.123.66', 'end': '2.131.123.126'}], 'gateway_ip': '2.131.123.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '2.131.123.66', 'tags': [], 'project_id': '415c00d3889442a1b77ce9eafbd1386b'}} 2026-03-26 02:32:08,624 - DEBUG - Response for create_subnet : {'subnet': {'id': 'de3ea9e9-9a85-4d53-ba54-1ef1663c3e6f', 'name': '', 'tenant_id': '415c00d3889442a1b77ce9eafbd1386b', 'network_id': '6d4b4cff-9f2d-4260-9064-b633f7112eab', 'ip_version': 6, 'cidr': '3d04:9c10:20e4:637:1a76:8be7::/96', 'allocation_pools': [{'start': '3d04:9c10:20e4:637:1a76:8be7:0:2', 'end': '3d04:9c10:20e4:637:1a76:8be7:ffff:fffe'}], 'gateway_ip': '3d04:9c10:20e4:637:1a76:8be7:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '3d04:9c10:20e4:637:1a76:8be7:0:2', 'tags': [], 'project_id': '415c00d3889442a1b77ce9eafbd1386b'}} 2026-03-26 02:32:08,648 - INFO - Created VN ctest-vn4-31581331 2026-03-26 02:32:08,704 - DEBUG - VN ctest-vn4-31581331 UUID is 6d4b4cff-9f2d-4260-9064-b633f7112eab 2026-03-26 02:32:09,072 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '6d4b4cff-9f2d-4260-9064-b633f7112eab', 'name': 'ctest-vn4-31581331', 'tenant_id': '415c00d3889442a1b77ce9eafbd1386b', 'project_id': '415c00d3889442a1b77ce9eafbd1386b', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['58382e0a-27c9-4007-a80f-940fcba018d4', 'de3ea9e9-9a85-4d53-ba54-1ef1663c3e6f'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-39792992', 'ctest-vn4-31581331'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-39792992', 'ctest-policy1-82564756']], 'subnet_ipam': [{'subnet_cidr': '2.131.123.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '3d04:9c10:20e4:637:1a76:8be7::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2026-03-26 02:32:09,255 - DEBUG - Requesting: http://10.0.0.27:8082/domains 2026-03-26 02:32:09,576 - DEBUG - Requesting: http://10.0.0.27:8082/domains 2026-03-26 02:32:09,630 - DEBUG - Requesting: http://10.0.0.27:8082/domain/1c8217f5-6392-46c0-b62e-ef1e3b54d1ed 2026-03-26 02:32:09,667 - DEBUG - Requesting: http://10.0.0.27:8082/project/415c00d3-8894-42a1-b77c-e9eafbd1386b 2026-03-26 02:32:09,770 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/6d4b4cff-9f2d-4260-9064-b633f7112eab 2026-03-26 02:32:09,802 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/6d4b4cff-9f2d-4260-9064-b633f7112eab 2026-03-26 02:32:09,817 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/0fed210b-fac7-4c95-9b89-9d680ca623bc 2026-03-26 02:32:09,827 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/0fed210b-fac7-4c95-9b89-9d680ca623bc 2026-03-26 02:32:09,837 - DEBUG - Requesting: http://10.0.0.27:8082/route-target/d7f2d847-d7e2-49cc-a0af-f6afdc60b7ce 2026-03-26 02:32:09,848 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-03-26 02:32:09,848 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/6d4b4cff-9f2d-4260-9064-b633f7112eab 2026-03-26 02:32:09,865 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/0fed210b-fac7-4c95-9b89-9d680ca623bc 2026-03-26 02:32:09,897 - INFO - Verified VN network id 11 for VN 6d4b4cff-9f2d-4260-9064-b633f7112eab 2026-03-26 02:32:09,897 - INFO - Verifications in API Server for VN ctest-vn4-31581331 passed 2026-03-26 02:32:09,897 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/6d4b4cff-9f2d-4260-9064-b633f7112eab 2026-03-26 02:32:09,913 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/0fed210b-fac7-4c95-9b89-9d680ca623bc 2026-03-26 02:32:09,922 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/0fed210b-fac7-4c95-9b89-9d680ca623bc 2026-03-26 02:32:09,933 - DEBUG - Requesting: http://10.0.0.27:8082/route-target/d7f2d847-d7e2-49cc-a0af-f6afdc60b7ce 2026-03-26 02:32:09,952 - DEBUG - Control-node 10.0.0.27 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-39792992:ctest-vn4-31581331', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-39792992', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '7875473034158359136', 'uuid-lslong': '10404641373437374123'}, 'enable': 'true', 'created': '2026-03-26T02:32:08', 'last-modified': '2026-03-26T02:32:09', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.935747'} 2026-03-26 02:32:09,963 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-03-26 02:32:09,963 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-31581331 passed 2026-03-26 02:32:09,963 - DEBUG - ====Verifying policy data for ctest-vn4-31581331 in API_Server ====== 2026-03-26 02:32:09,963 - DEBUG - Requesting: http://10.0.0.27:8082/domains 2026-03-26 02:32:09,973 - DEBUG - Requesting: http://10.0.0.27:8082/domain/1c8217f5-6392-46c0-b62e-ef1e3b54d1ed 2026-03-26 02:32:09,990 - DEBUG - Requesting: http://10.0.0.27:8082/project/415c00d3-8894-42a1-b77c-e9eafbd1386b 2026-03-26 02:32:10,086 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/6d4b4cff-9f2d-4260-9064-b633f7112eab 2026-03-26 02:32:10,100 - DEBUG - ==>Verifying data for policy with id: 5dbe6080-a2dc-4831-a5bb-5be01391781e, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-39792992', 'ctest-policy1-82564756'] 2026-03-26 02:32:10,100 - INFO - VN ctest-vn4-31581331 Policy verification: verify_vn_policy_in_api_server, status: True 2026-03-26 02:32:10,100 - DEBUG - Verifying the vn in opserver 2026-03-26 02:32:10,100 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-39792992:ctest-vn4-31581331 virtual network link through opserver 10.0.0.27 2026-03-26 02:32:10,100 - DEBUG - Requesting: http://10.0.0.27:8081/analytics/uves/virtual-networks 2026-03-26 02:32:10,421 - DEBUG - Requesting: http://10.0.0.27:8081/analytics/uves/virtual-networks 2026-03-26 02:32:10,556 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-39792992:ctest-vn4-31581331', 'href': 'http://10.0.0.27:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-39792992:ctest-vn4-31581331?flat'} 2026-03-26 02:32:10,556 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-39792992:ctest-vn4-31581331 is found in opserver 2026-03-26 02:32:10,582 - DEBUG - Do not have enough data to verify VN in agent 2026-03-26 02:32:10,593 - DEBUG - VRF ids for VN ctest-vn4-31581331: {} 2026-03-26 02:32:10,594 - DEBUG - ====Verifying data for ctest-policy1-82564756 in API_Server ====== 2026-03-26 02:32:10,594 - DEBUG - Requesting: http://10.0.0.27:8082/domains 2026-03-26 02:32:10,602 - DEBUG - Requesting: http://10.0.0.27:8082/domain/1c8217f5-6392-46c0-b62e-ef1e3b54d1ed 2026-03-26 02:32:10,631 - DEBUG - Requesting: http://10.0.0.27:8082/project/415c00d3-8894-42a1-b77c-e9eafbd1386b 2026-03-26 02:32:10,744 - DEBUG - Requesting: http://10.0.0.27:8082/network-policy/5dbe6080-a2dc-4831-a5bb-5be01391781e 2026-03-26 02:32:10,765 - INFO - Verified policy ctest-policy1-82564756 in API Server, Result: True 2026-03-26 02:32:10,766 - INFO - Done with setup and verification, moving onto test .. 2026-03-26 02:32:10,784 - INFO - Deleting VN ctest-vn4-31581331 2026-03-26 02:32:10,994 - DEBUG - Response for deleting network () 2026-03-26 02:32:10,995 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/0fed210b-fac7-4c95-9b89-9d680ca623bc 2026-03-26 02:32:11,001 - DEBUG - Response Code: 404 2026-03-26 02:32:11,001 - DEBUG - Requesting: http://10.0.0.27:8082/domains 2026-03-26 02:32:11,009 - DEBUG - Requesting: http://10.0.0.27:8082/domain/1c8217f5-6392-46c0-b62e-ef1e3b54d1ed 2026-03-26 02:32:11,067 - DEBUG - Requesting: http://10.0.0.27:8082/project/415c00d3-8894-42a1-b77c-e9eafbd1386b 2026-03-26 02:32:11,172 - INFO - Validated that VN ctest-vn4-31581331 is not found in API Server 2026-03-26 02:32:11,199 - DEBUG - VN ctest-vn4-31581331 is not present in Agent 10.0.0.27 2026-03-26 02:32:11,199 - INFO - Validated that VN ctest-vn4-31581331 is not in any agent 2026-03-26 02:32:11,228 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-31581331 info 2026-03-26 02:32:11,266 - INFO - Deleted policy ctest-policy1-82564756 2026-03-26 02:32:11,475 - DEBUG - policy ctest-policy1-82564756 is not found in API Server 2026-03-26 02:32:11,770 - DEBUG - No XMPP flaps were noticed during the test