2026-09-16 04:27:07,459 - INFO - Domain Default found not creating 2026-09-16 04:27:07,658 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-38652729 not found, creating it 2026-09-16 04:27:08,212 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-38652729, ID : bee1a3e7-9add-4853-a5b2-58860b181288 2026-09-16 04:27:09,879 - INFO - ================================================================================ 2026-09-16 04:27:09,879 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-09-16 04:27:10,152 - DEBUG - Nothing to compare xmpp stats {'10.0.0.161': {'10.20.0.25': '0'}} with 2026-09-16 04:27:10,152 - INFO - Initial checks done. Running the testcase now 2026-09-16 04:27:10,152 - INFO - 2026-09-16 04:27:10,152 - INFO - ================================================================================ 2026-09-16 04:27:10,152 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-09-16 04:27:10,152 - 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-16 04:27:10,455 - DEBUG - Nothing to compare xmpp stats {'10.0.0.161': {'10.20.0.25': '0'}} with 2026-09-16 04:27:10,455 - INFO - Initial checks done. Running the testcase now 2026-09-16 04:27:10,455 - INFO - 2026-09-16 04:27:10,874 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-38652729:ctest-vn4-70020124, 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-38652729:ctest-vn4-70020124, 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-38652729:ctest-vn4-70020124, 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-38652729:ctest-vn4-70020124, 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-16 04:27:11,412 - DEBUG - Response for create_network : {'network': {'id': '21a93e6b-6069-413b-a366-a6e16bf75f37', 'name': 'ctest-vn4-70020124', 'tenant_id': 'bee1a3e79add4853a5b258860b181288', 'project_id': 'bee1a3e79add4853a5b258860b181288', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'tags': [], 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-38652729', 'ctest-vn4-70020124'], 'port_security_enabled': True, 'description': ''}} 2026-09-16 04:27:11,575 - DEBUG - Response for create_subnet : {'subnet': {'id': 'a52a0313-f716-4129-9d7f-027fe6b2b91a', 'name': '', 'tenant_id': 'bee1a3e79add4853a5b258860b181288', 'network_id': '21a93e6b-6069-413b-a366-a6e16bf75f37', 'ip_version': 4, 'cidr': '106.32.58.128/26', 'allocation_pools': [{'start': '106.32.58.130', 'end': '106.32.58.190'}], 'gateway_ip': '106.32.58.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '106.32.58.130', 'tags': [], 'project_id': 'bee1a3e79add4853a5b258860b181288'}} 2026-09-16 04:27:11,781 - DEBUG - Response for create_subnet : {'subnet': {'id': '2075d1e5-964a-4bdd-8e67-605803f97de0', 'name': '', 'tenant_id': 'bee1a3e79add4853a5b258860b181288', 'network_id': '21a93e6b-6069-413b-a366-a6e16bf75f37', 'ip_version': 6, 'cidr': '20d1:f693:c131:5f9c:676d:6ace::/96', 'allocation_pools': [{'start': '20d1:f693:c131:5f9c:676d:6ace:0:2', 'end': '20d1:f693:c131:5f9c:676d:6ace:ffff:fffe'}], 'gateway_ip': '20d1:f693:c131:5f9c:676d:6ace:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '20d1:f693:c131:5f9c:676d:6ace:0:2', 'tags': [], 'project_id': 'bee1a3e79add4853a5b258860b181288'}} 2026-09-16 04:27:11,803 - INFO - Created VN ctest-vn4-70020124 2026-09-16 04:27:11,858 - DEBUG - VN ctest-vn4-70020124 UUID is 21a93e6b-6069-413b-a366-a6e16bf75f37 2026-09-16 04:27:12,075 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '21a93e6b-6069-413b-a366-a6e16bf75f37', 'name': 'ctest-vn4-70020124', 'tenant_id': 'bee1a3e79add4853a5b258860b181288', 'project_id': 'bee1a3e79add4853a5b258860b181288', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'tags': [], 'subnets': ['a52a0313-f716-4129-9d7f-027fe6b2b91a', '2075d1e5-964a-4bdd-8e67-605803f97de0'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-38652729', 'ctest-vn4-70020124'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-38652729', 'ctest-policy1-74848935']], 'subnet_ipam': [{'subnet_cidr': '106.32.58.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '20d1:f693:c131:5f9c:676d:6ace::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2026-09-16 04:27:12,254 - DEBUG - Requesting: http://10.0.0.161:8082/domains 2026-09-16 04:27:12,584 - DEBUG - Requesting: http://10.0.0.161:8082/domains 2026-09-16 04:27:12,617 - DEBUG - Requesting: http://10.0.0.161:8082/domain/a445d53b-493d-4c27-9120-b6f8684ea79d 2026-09-16 04:27:12,633 - DEBUG - Requesting: http://10.0.0.161:8082/project/bee1a3e7-9add-4853-a5b2-58860b181288 2026-09-16 04:27:12,714 - DEBUG - Requesting: http://10.0.0.161:8082/virtual-network/21a93e6b-6069-413b-a366-a6e16bf75f37 2026-09-16 04:27:12,728 - DEBUG - Requesting: http://10.0.0.161:8082/virtual-network/21a93e6b-6069-413b-a366-a6e16bf75f37 2026-09-16 04:27:12,739 - DEBUG - Requesting: http://10.0.0.161:8082/routing-instance/c3730767-f0c1-4373-8bec-4044ecd64d52 2026-09-16 04:27:12,747 - DEBUG - Requesting: http://10.0.0.161:8082/routing-instance/c3730767-f0c1-4373-8bec-4044ecd64d52 2026-09-16 04:27:12,756 - DEBUG - Requesting: http://10.0.0.161:8082/route-target/37ba55b6-8784-4fa4-837d-e12e7744b0a8 2026-09-16 04:27:12,764 - DEBUG - Route Targets: ['target:64512:8000005'] 2026-09-16 04:27:12,764 - DEBUG - Requesting: http://10.0.0.161:8082/virtual-network/21a93e6b-6069-413b-a366-a6e16bf75f37 2026-09-16 04:27:12,776 - DEBUG - Requesting: http://10.0.0.161:8082/routing-instance/c3730767-f0c1-4373-8bec-4044ecd64d52 2026-09-16 04:27:12,792 - INFO - Verified VN network id 12 for VN 21a93e6b-6069-413b-a366-a6e16bf75f37 2026-09-16 04:27:12,792 - INFO - Verifications in API Server for VN ctest-vn4-70020124 passed 2026-09-16 04:27:12,792 - DEBUG - Requesting: http://10.0.0.161:8082/virtual-network/21a93e6b-6069-413b-a366-a6e16bf75f37 2026-09-16 04:27:12,803 - DEBUG - Requesting: http://10.0.0.161:8082/routing-instance/c3730767-f0c1-4373-8bec-4044ecd64d52 2026-09-16 04:27:12,811 - DEBUG - Requesting: http://10.0.0.161:8082/routing-instance/c3730767-f0c1-4373-8bec-4044ecd64d52 2026-09-16 04:27:12,818 - DEBUG - Requesting: http://10.0.0.161:8082/route-target/37ba55b6-8784-4fa4-837d-e12e7744b0a8 2026-09-16 04:27:12,832 - DEBUG - Control-node 10.0.0.161 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-38652729:ctest-vn4-70020124', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-38652729', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '2425538505215656251', 'uuid-lslong': '11774281762915966775'}, 'enable': 'true', 'created': '2026-09-16T04:27:11', 'last-modified': '2026-09-16T04:27:12', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.784015'} 2026-09-16 04:27:12,839 - DEBUG - Route Targets: ['target:64512:8000005'] 2026-09-16 04:27:12,839 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-70020124 passed 2026-09-16 04:27:12,840 - DEBUG - ====Verifying policy data for ctest-vn4-70020124 in API_Server ====== 2026-09-16 04:27:12,840 - DEBUG - Requesting: http://10.0.0.161:8082/domains 2026-09-16 04:27:12,847 - DEBUG - Requesting: http://10.0.0.161:8082/domain/a445d53b-493d-4c27-9120-b6f8684ea79d 2026-09-16 04:27:12,859 - DEBUG - Requesting: http://10.0.0.161:8082/project/bee1a3e7-9add-4853-a5b2-58860b181288 2026-09-16 04:27:12,941 - DEBUG - Requesting: http://10.0.0.161:8082/virtual-network/21a93e6b-6069-413b-a366-a6e16bf75f37 2026-09-16 04:27:12,953 - DEBUG - ==>Verifying data for policy with id: 4a011346-5b2a-414f-9983-a0a59d994de1, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-38652729', 'ctest-policy1-74848935'] 2026-09-16 04:27:12,953 - INFO - VN ctest-vn4-70020124 Policy verification: verify_vn_policy_in_api_server, status: True 2026-09-16 04:27:12,953 - DEBUG - Verifying the vn in opserver 2026-09-16 04:27:12,953 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-38652729:ctest-vn4-70020124 virtual network link through opserver 10.0.0.161 2026-09-16 04:27:12,953 - DEBUG - Requesting: http://10.0.0.161:8081/analytics/uves/virtual-networks 2026-09-16 04:27:13,281 - DEBUG - Requesting: http://10.0.0.161:8081/analytics/uves/virtual-networks 2026-09-16 04:27:13,343 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-38652729:ctest-vn4-70020124', 'href': 'http://10.0.0.161:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-38652729:ctest-vn4-70020124?flat'} 2026-09-16 04:27:13,343 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-38652729:ctest-vn4-70020124 is found in opserver 2026-09-16 04:27:13,355 - DEBUG - Do not have enough data to verify VN in agent 2026-09-16 04:27:13,361 - DEBUG - VRF ids for VN ctest-vn4-70020124: {} 2026-09-16 04:27:13,361 - DEBUG - ====Verifying data for ctest-policy1-74848935 in API_Server ====== 2026-09-16 04:27:13,362 - DEBUG - Requesting: http://10.0.0.161:8082/domains 2026-09-16 04:27:13,368 - DEBUG - Requesting: http://10.0.0.161:8082/domain/a445d53b-493d-4c27-9120-b6f8684ea79d 2026-09-16 04:27:13,380 - DEBUG - Requesting: http://10.0.0.161:8082/project/bee1a3e7-9add-4853-a5b2-58860b181288 2026-09-16 04:27:13,456 - DEBUG - Requesting: http://10.0.0.161:8082/network-policy/4a011346-5b2a-414f-9983-a0a59d994de1 2026-09-16 04:27:13,468 - INFO - Verified policy ctest-policy1-74848935 in API Server, Result: True 2026-09-16 04:27:13,468 - INFO - Done with setup and verification, moving onto test .. 2026-09-16 04:27:13,477 - INFO - Deleting VN ctest-vn4-70020124 2026-09-16 04:27:13,631 - DEBUG - Response for deleting network () 2026-09-16 04:27:13,631 - DEBUG - Requesting: http://10.0.0.161:8082/routing-instance/c3730767-f0c1-4373-8bec-4044ecd64d52 2026-09-16 04:27:13,637 - DEBUG - Response Code: 404 2026-09-16 04:27:13,637 - DEBUG - Requesting: http://10.0.0.161:8082/domains 2026-09-16 04:27:13,644 - DEBUG - Requesting: http://10.0.0.161:8082/domain/a445d53b-493d-4c27-9120-b6f8684ea79d 2026-09-16 04:27:13,700 - DEBUG - Requesting: http://10.0.0.161:8082/project/bee1a3e7-9add-4853-a5b2-58860b181288 2026-09-16 04:27:13,778 - INFO - Validated that VN ctest-vn4-70020124 is not found in API Server 2026-09-16 04:27:13,790 - DEBUG - VN ctest-vn4-70020124 is not present in Agent 10.0.0.161 2026-09-16 04:27:13,790 - INFO - Validated that VN ctest-vn4-70020124 is not in any agent 2026-09-16 04:27:13,810 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-70020124 info 2026-09-16 04:27:13,845 - INFO - Deleted policy ctest-policy1-74848935 2026-09-16 04:27:14,018 - DEBUG - policy ctest-policy1-74848935 is not found in API Server 2026-09-16 04:27:14,287 - DEBUG - No XMPP flaps were noticed during the test 2026-09-16 04:27:14,287 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04] 2026-09-16 04:27:14,287 - INFO - -------------------------------------------------------------------------------- 2026-09-16 04:27:14,571 - DEBUG - No XMPP flaps were noticed during the test 2026-09-16 04:27:14,571 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:05] 2026-09-16 04:27:14,571 - INFO - -------------------------------------------------------------------------------- 2026-09-16 04:27:15,300 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-38652729, ID : bee1a3e7-9add-4853-a5b2-58860b181288