2026-06-01 15:37:47,101 - INFO - Domain Default found not creating 2026-06-01 15:37:47,286 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-72706388 not found, creating it 2026-06-01 15:37:47,762 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-72706388, ID : 82b166d8-8d07-4c29-b14b-f7d8e9ae46d7 2026-06-01 15:37:49,284 - INFO - ================================================================================ 2026-06-01 15:37:49,284 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-06-01 15:37:49,547 - DEBUG - Nothing to compare xmpp stats {'10.0.0.57': {'10.20.0.129': '0'}} with 2026-06-01 15:37:49,547 - INFO - Initial checks done. Running the testcase now 2026-06-01 15:37:49,547 - INFO - 2026-06-01 15:37:49,547 - INFO - ================================================================================ 2026-06-01 15:37:49,547 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-06-01 15:37:49,547 - 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-01 15:37:49,840 - DEBUG - Nothing to compare xmpp stats {'10.0.0.57': {'10.20.0.129': '0'}} with 2026-06-01 15:37:49,840 - INFO - Initial checks done. Running the testcase now 2026-06-01 15:37:49,840 - INFO - 2026-06-01 15:37:50,212 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-72706388:ctest-vn4-19914984, 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-72706388:ctest-vn4-19914984, 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-72706388:ctest-vn4-19914984, 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-72706388:ctest-vn4-19914984, 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-01 15:37:50,739 - DEBUG - Response for create_network : {'network': {'id': '3ebaad30-d3e4-4c87-8e20-e00548611126', 'name': 'ctest-vn4-19914984', 'tenant_id': '82b166d88d074c29b14bf7d8e9ae46d7', 'project_id': '82b166d88d074c29b14bf7d8e9ae46d7', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-72706388', 'ctest-vn4-19914984'], 'port_security_enabled': True, 'description': ''}} 2026-06-01 15:37:50,978 - DEBUG - Response for create_subnet : {'subnet': {'id': '83009ed6-0f53-4dee-b3be-3993bea50612', 'name': '', 'tenant_id': '82b166d88d074c29b14bf7d8e9ae46d7', 'network_id': '3ebaad30-d3e4-4c87-8e20-e00548611126', 'ip_version': 4, 'cidr': '101.238.206.128/26', 'allocation_pools': [{'start': '101.238.206.130', 'end': '101.238.206.190'}], 'gateway_ip': '101.238.206.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '101.238.206.130', 'tags': [], 'project_id': '82b166d88d074c29b14bf7d8e9ae46d7'}} 2026-06-01 15:37:51,158 - DEBUG - Response for create_subnet : {'subnet': {'id': 'e632909f-ce00-4b7e-b9e0-dbef6eae4394', 'name': '', 'tenant_id': '82b166d88d074c29b14bf7d8e9ae46d7', 'network_id': '3ebaad30-d3e4-4c87-8e20-e00548611126', 'ip_version': 6, 'cidr': '3e2f:1375:98bf:baf3:849:532b::/96', 'allocation_pools': [{'start': '3e2f:1375:98bf:baf3:849:532b:0:2', 'end': '3e2f:1375:98bf:baf3:849:532b:ffff:fffe'}], 'gateway_ip': '3e2f:1375:98bf:baf3:849:532b:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '3e2f:1375:98bf:baf3:849:532b:0:2', 'tags': [], 'project_id': '82b166d88d074c29b14bf7d8e9ae46d7'}} 2026-06-01 15:37:51,180 - INFO - Created VN ctest-vn4-19914984 2026-06-01 15:37:51,233 - DEBUG - VN ctest-vn4-19914984 UUID is 3ebaad30-d3e4-4c87-8e20-e00548611126 2026-06-01 15:37:51,443 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '3ebaad30-d3e4-4c87-8e20-e00548611126', 'name': 'ctest-vn4-19914984', 'tenant_id': '82b166d88d074c29b14bf7d8e9ae46d7', 'project_id': '82b166d88d074c29b14bf7d8e9ae46d7', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['83009ed6-0f53-4dee-b3be-3993bea50612', 'e632909f-ce00-4b7e-b9e0-dbef6eae4394'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-72706388', 'ctest-vn4-19914984'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-72706388', 'ctest-policy1-48355438']], 'subnet_ipam': [{'subnet_cidr': '101.238.206.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '3e2f:1375:98bf:baf3:849:532b::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2026-06-01 15:37:51,605 - DEBUG - Requesting: http://10.0.0.57:8082/domains 2026-06-01 15:37:51,902 - DEBUG - Requesting: http://10.0.0.57:8082/domains 2026-06-01 15:37:51,934 - DEBUG - Requesting: http://10.0.0.57:8082/domain/7af90524-a650-45be-898a-41e0708697bd 2026-06-01 15:37:51,946 - DEBUG - Requesting: http://10.0.0.57:8082/project/82b166d8-8d07-4c29-b14b-f7d8e9ae46d7 2026-06-01 15:37:52,026 - DEBUG - Requesting: http://10.0.0.57:8082/virtual-network/3ebaad30-d3e4-4c87-8e20-e00548611126 2026-06-01 15:37:52,038 - DEBUG - Requesting: http://10.0.0.57:8082/virtual-network/3ebaad30-d3e4-4c87-8e20-e00548611126 2026-06-01 15:37:52,048 - DEBUG - Requesting: http://10.0.0.57:8082/routing-instance/12933c1f-da96-41b9-aca8-ef7bbf4da353 2026-06-01 15:37:52,055 - DEBUG - Requesting: http://10.0.0.57:8082/routing-instance/12933c1f-da96-41b9-aca8-ef7bbf4da353 2026-06-01 15:37:52,061 - DEBUG - Requesting: http://10.0.0.57:8082/route-target/a41e9e1a-6eec-417a-aa57-aa065f408b22 2026-06-01 15:37:52,067 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-06-01 15:37:52,067 - DEBUG - Requesting: http://10.0.0.57:8082/virtual-network/3ebaad30-d3e4-4c87-8e20-e00548611126 2026-06-01 15:37:52,076 - DEBUG - Requesting: http://10.0.0.57:8082/routing-instance/12933c1f-da96-41b9-aca8-ef7bbf4da353 2026-06-01 15:37:52,092 - INFO - Verified VN network id 11 for VN 3ebaad30-d3e4-4c87-8e20-e00548611126 2026-06-01 15:37:52,093 - INFO - Verifications in API Server for VN ctest-vn4-19914984 passed 2026-06-01 15:37:52,093 - DEBUG - Requesting: http://10.0.0.57:8082/virtual-network/3ebaad30-d3e4-4c87-8e20-e00548611126 2026-06-01 15:37:52,103 - DEBUG - Requesting: http://10.0.0.57:8082/routing-instance/12933c1f-da96-41b9-aca8-ef7bbf4da353 2026-06-01 15:37:52,111 - DEBUG - Requesting: http://10.0.0.57:8082/routing-instance/12933c1f-da96-41b9-aca8-ef7bbf4da353 2026-06-01 15:37:52,119 - DEBUG - Requesting: http://10.0.0.57:8082/route-target/a41e9e1a-6eec-417a-aa57-aa065f408b22 2026-06-01 15:37:52,132 - DEBUG - Control-node 10.0.0.57 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-72706388:ctest-vn4-19914984', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-72706388', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '4520115601244703879', 'uuid-lslong': '10241431865934287142'}, 'enable': 'true', 'created': '2026-06-01T15:37:50', 'last-modified': '2026-06-01T15:37:51', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.712867'} 2026-06-01 15:37:52,137 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-06-01 15:37:52,138 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-19914984 passed 2026-06-01 15:37:52,138 - DEBUG - ====Verifying policy data for ctest-vn4-19914984 in API_Server ====== 2026-06-01 15:37:52,138 - DEBUG - Requesting: http://10.0.0.57:8082/domains 2026-06-01 15:37:52,144 - DEBUG - Requesting: http://10.0.0.57:8082/domain/7af90524-a650-45be-898a-41e0708697bd 2026-06-01 15:37:52,155 - DEBUG - Requesting: http://10.0.0.57:8082/project/82b166d8-8d07-4c29-b14b-f7d8e9ae46d7 2026-06-01 15:37:52,224 - DEBUG - Requesting: http://10.0.0.57:8082/virtual-network/3ebaad30-d3e4-4c87-8e20-e00548611126 2026-06-01 15:37:52,235 - DEBUG - ==>Verifying data for policy with id: ac001336-a7b0-4b1c-9af5-2326485e68a3, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-72706388', 'ctest-policy1-48355438'] 2026-06-01 15:37:52,235 - INFO - VN ctest-vn4-19914984 Policy verification: verify_vn_policy_in_api_server, status: True 2026-06-01 15:37:52,235 - DEBUG - Verifying the vn in opserver 2026-06-01 15:37:52,235 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-72706388:ctest-vn4-19914984 virtual network link through opserver 10.0.0.57 2026-06-01 15:37:52,235 - DEBUG - Requesting: http://10.0.0.57:8081/analytics/uves/virtual-networks 2026-06-01 15:37:52,536 - DEBUG - Requesting: http://10.0.0.57:8081/analytics/uves/virtual-networks 2026-06-01 15:37:52,606 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-72706388:ctest-vn4-19914984', 'href': 'http://10.0.0.57:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-72706388:ctest-vn4-19914984?flat'} 2026-06-01 15:37:52,606 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-72706388:ctest-vn4-19914984 is found in opserver 2026-06-01 15:37:52,618 - DEBUG - Do not have enough data to verify VN in agent 2026-06-01 15:37:52,623 - DEBUG - VRF ids for VN ctest-vn4-19914984: {} 2026-06-01 15:37:52,623 - DEBUG - ====Verifying data for ctest-policy1-48355438 in API_Server ====== 2026-06-01 15:37:52,623 - DEBUG - Requesting: http://10.0.0.57:8082/domains 2026-06-01 15:37:52,629 - DEBUG - Requesting: http://10.0.0.57:8082/domain/7af90524-a650-45be-898a-41e0708697bd 2026-06-01 15:37:52,640 - DEBUG - Requesting: http://10.0.0.57:8082/project/82b166d8-8d07-4c29-b14b-f7d8e9ae46d7 2026-06-01 15:37:52,716 - DEBUG - Requesting: http://10.0.0.57:8082/network-policy/ac001336-a7b0-4b1c-9af5-2326485e68a3 2026-06-01 15:37:52,725 - INFO - Verified policy ctest-policy1-48355438 in API Server, Result: True 2026-06-01 15:37:52,725 - INFO - Done with setup and verification, moving onto test .. 2026-06-01 15:37:52,733 - INFO - Deleting VN ctest-vn4-19914984 2026-06-01 15:37:52,858 - DEBUG - Response for deleting network () 2026-06-01 15:37:52,858 - DEBUG - Requesting: http://10.0.0.57:8082/routing-instance/12933c1f-da96-41b9-aca8-ef7bbf4da353 2026-06-01 15:37:52,864 - DEBUG - Response Code: 404 2026-06-01 15:37:52,864 - DEBUG - Requesting: http://10.0.0.57:8082/domains 2026-06-01 15:37:52,871 - DEBUG - Requesting: http://10.0.0.57:8082/domain/7af90524-a650-45be-898a-41e0708697bd 2026-06-01 15:37:52,926 - DEBUG - Requesting: http://10.0.0.57:8082/project/82b166d8-8d07-4c29-b14b-f7d8e9ae46d7 2026-06-01 15:37:52,998 - INFO - Validated that VN ctest-vn4-19914984 is not found in API Server 2026-06-01 15:37:53,007 - DEBUG - VN ctest-vn4-19914984 is not present in Agent 10.0.0.57 2026-06-01 15:37:53,008 - INFO - Validated that VN ctest-vn4-19914984 is not in any agent 2026-06-01 15:37:53,022 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-19914984 info 2026-06-01 15:37:53,047 - INFO - Deleted policy ctest-policy1-48355438 2026-06-01 15:37:53,209 - DEBUG - policy ctest-policy1-48355438 is not found in API Server 2026-06-01 15:37:53,462 - DEBUG - No XMPP flaps were noticed during the test