2026-06-18 15:03:19,628 - INFO - Domain Default found not creating 2026-06-18 15:03:19,767 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-36041882 not found, creating it 2026-06-18 15:03:20,213 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-36041882, ID : 4a091510-589f-4b3f-b080-042008190392 2026-06-18 15:03:21,842 - INFO - ================================================================================ 2026-06-18 15:03:21,843 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-06-18 15:03:22,102 - DEBUG - Nothing to compare xmpp stats {'10.0.0.50': {'10.20.0.254': '0'}} with 2026-06-18 15:03:22,103 - INFO - Initial checks done. Running the testcase now 2026-06-18 15:03:22,103 - INFO - 2026-06-18 15:03:22,103 - INFO - ================================================================================ 2026-06-18 15:03:22,103 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-06-18 15:03:22,103 - 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-18 15:03:22,392 - DEBUG - Nothing to compare xmpp stats {'10.0.0.50': {'10.20.0.254': '0'}} with 2026-06-18 15:03:22,392 - INFO - Initial checks done. Running the testcase now 2026-06-18 15:03:22,392 - INFO - 2026-06-18 15:03:22,824 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-36041882:ctest-vn4-52946392, 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-36041882:ctest-vn4-52946392, 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-36041882:ctest-vn4-52946392, 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-36041882:ctest-vn4-52946392, 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-18 15:03:23,344 - DEBUG - Response for create_network : {'network': {'id': '9765a3d0-b809-4213-98ca-063b058685d1', 'name': 'ctest-vn4-52946392', 'tenant_id': '4a091510589f4b3fb080042008190392', 'project_id': '4a091510589f4b3fb080042008190392', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-36041882', 'ctest-vn4-52946392'], 'port_security_enabled': True, 'description': ''}} 2026-06-18 15:03:23,534 - DEBUG - Response for create_subnet : {'subnet': {'id': '000e19e8-fcc1-4ec0-809e-ca8c9b7997ac', 'name': '', 'tenant_id': '4a091510589f4b3fb080042008190392', 'network_id': '9765a3d0-b809-4213-98ca-063b058685d1', 'ip_version': 4, 'cidr': '20.56.106.128/26', 'allocation_pools': [{'start': '20.56.106.130', 'end': '20.56.106.190'}], 'gateway_ip': '20.56.106.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '20.56.106.130', 'tags': [], 'project_id': '4a091510589f4b3fb080042008190392'}} 2026-06-18 15:03:23,718 - DEBUG - Response for create_subnet : {'subnet': {'id': 'fdaf0029-b107-4949-8030-64b9837764d2', 'name': '', 'tenant_id': '4a091510589f4b3fb080042008190392', 'network_id': '9765a3d0-b809-4213-98ca-063b058685d1', 'ip_version': 6, 'cidr': '2c7a:1776:cff3:224f:899:f846::/96', 'allocation_pools': [{'start': '2c7a:1776:cff3:224f:899:f846:0:2', 'end': '2c7a:1776:cff3:224f:899:f846:ffff:fffe'}], 'gateway_ip': '2c7a:1776:cff3:224f:899:f846:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '2c7a:1776:cff3:224f:899:f846:0:2', 'tags': [], 'project_id': '4a091510589f4b3fb080042008190392'}} 2026-06-18 15:03:23,735 - INFO - Created VN ctest-vn4-52946392 2026-06-18 15:03:23,788 - DEBUG - VN ctest-vn4-52946392 UUID is 9765a3d0-b809-4213-98ca-063b058685d1 2026-06-18 15:03:23,976 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '9765a3d0-b809-4213-98ca-063b058685d1', 'name': 'ctest-vn4-52946392', 'tenant_id': '4a091510589f4b3fb080042008190392', 'project_id': '4a091510589f4b3fb080042008190392', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['000e19e8-fcc1-4ec0-809e-ca8c9b7997ac', 'fdaf0029-b107-4949-8030-64b9837764d2'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-36041882', 'ctest-vn4-52946392'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-36041882', 'ctest-policy1-52442024']], 'subnet_ipam': [{'subnet_cidr': '20.56.106.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '2c7a:1776:cff3:224f:899:f846::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2026-06-18 15:03:24,144 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2026-06-18 15:03:24,511 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2026-06-18 15:03:24,537 - DEBUG - Requesting: http://10.0.0.50:8082/domain/3b347f7c-4e4b-49c8-b565-0c444dfd64ad 2026-06-18 15:03:24,549 - DEBUG - Requesting: http://10.0.0.50:8082/project/4a091510-589f-4b3f-b080-042008190392 2026-06-18 15:03:24,620 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/9765a3d0-b809-4213-98ca-063b058685d1 2026-06-18 15:03:24,631 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/9765a3d0-b809-4213-98ca-063b058685d1 2026-06-18 15:03:24,640 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/7ceb61ff-1f4e-4f35-b9e1-c22b207cc657 2026-06-18 15:03:24,646 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/7ceb61ff-1f4e-4f35-b9e1-c22b207cc657 2026-06-18 15:03:24,651 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/7166053f-0e14-40b7-8f03-b580e190064e 2026-06-18 15:03:24,656 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-06-18 15:03:24,657 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/9765a3d0-b809-4213-98ca-063b058685d1 2026-06-18 15:03:24,665 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/7ceb61ff-1f4e-4f35-b9e1-c22b207cc657 2026-06-18 15:03:24,680 - INFO - Verified VN network id 11 for VN 9765a3d0-b809-4213-98ca-063b058685d1 2026-06-18 15:03:24,680 - INFO - Verifications in API Server for VN ctest-vn4-52946392 passed 2026-06-18 15:03:24,680 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/9765a3d0-b809-4213-98ca-063b058685d1 2026-06-18 15:03:24,691 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/7ceb61ff-1f4e-4f35-b9e1-c22b207cc657 2026-06-18 15:03:24,698 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/7ceb61ff-1f4e-4f35-b9e1-c22b207cc657 2026-06-18 15:03:24,706 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/7166053f-0e14-40b7-8f03-b580e190064e 2026-06-18 15:03:24,720 - DEBUG - Control-node 10.0.0.50 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-36041882:ctest-vn4-52946392', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-36041882', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '10909305789211034131', 'uuid-lslong': '11009619089626138065'}, 'enable': 'true', 'created': '2026-06-18T15:03:23', 'last-modified': '2026-06-18T15:03:23', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.764216'} 2026-06-18 15:03:24,728 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-06-18 15:03:24,728 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-52946392 passed 2026-06-18 15:03:24,728 - DEBUG - ====Verifying policy data for ctest-vn4-52946392 in API_Server ====== 2026-06-18 15:03:24,729 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2026-06-18 15:03:24,734 - DEBUG - Requesting: http://10.0.0.50:8082/domain/3b347f7c-4e4b-49c8-b565-0c444dfd64ad 2026-06-18 15:03:24,744 - DEBUG - Requesting: http://10.0.0.50:8082/project/4a091510-589f-4b3f-b080-042008190392 2026-06-18 15:03:24,816 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/9765a3d0-b809-4213-98ca-063b058685d1 2026-06-18 15:03:24,825 - DEBUG - ==>Verifying data for policy with id: 203e3496-28f7-4dbe-8e15-0edafc055a2c, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-36041882', 'ctest-policy1-52442024'] 2026-06-18 15:03:24,825 - INFO - VN ctest-vn4-52946392 Policy verification: verify_vn_policy_in_api_server, status: True 2026-06-18 15:03:24,825 - DEBUG - Verifying the vn in opserver 2026-06-18 15:03:24,825 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-36041882:ctest-vn4-52946392 virtual network link through opserver 10.0.0.50 2026-06-18 15:03:24,825 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks 2026-06-18 15:03:25,196 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks 2026-06-18 15:03:25,243 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-36041882:ctest-vn4-52946392', 'href': 'http://10.0.0.50:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-36041882:ctest-vn4-52946392?flat'} 2026-06-18 15:03:25,243 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-36041882:ctest-vn4-52946392 is found in opserver 2026-06-18 15:03:25,252 - DEBUG - Do not have enough data to verify VN in agent 2026-06-18 15:03:25,256 - DEBUG - VRF ids for VN ctest-vn4-52946392: {} 2026-06-18 15:03:25,256 - DEBUG - ====Verifying data for ctest-policy1-52442024 in API_Server ====== 2026-06-18 15:03:25,256 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2026-06-18 15:03:25,261 - DEBUG - Requesting: http://10.0.0.50:8082/domain/3b347f7c-4e4b-49c8-b565-0c444dfd64ad 2026-06-18 15:03:25,271 - DEBUG - Requesting: http://10.0.0.50:8082/project/4a091510-589f-4b3f-b080-042008190392 2026-06-18 15:03:25,347 - DEBUG - Requesting: http://10.0.0.50:8082/network-policy/203e3496-28f7-4dbe-8e15-0edafc055a2c 2026-06-18 15:03:25,357 - INFO - Verified policy ctest-policy1-52442024 in API Server, Result: True 2026-06-18 15:03:25,358 - INFO - Done with setup and verification, moving onto test .. 2026-06-18 15:03:25,365 - INFO - Deleting VN ctest-vn4-52946392 2026-06-18 15:03:25,488 - DEBUG - Response for deleting network () 2026-06-18 15:03:25,488 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/7ceb61ff-1f4e-4f35-b9e1-c22b207cc657 2026-06-18 15:03:25,492 - DEBUG - Response Code: 404 2026-06-18 15:03:25,492 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2026-06-18 15:03:25,497 - DEBUG - Requesting: http://10.0.0.50:8082/domain/3b347f7c-4e4b-49c8-b565-0c444dfd64ad 2026-06-18 15:03:25,552 - DEBUG - Requesting: http://10.0.0.50:8082/project/4a091510-589f-4b3f-b080-042008190392 2026-06-18 15:03:25,624 - INFO - Validated that VN ctest-vn4-52946392 is not found in API Server 2026-06-18 15:03:25,633 - DEBUG - VN ctest-vn4-52946392 is not present in Agent 10.0.0.50 2026-06-18 15:03:25,633 - INFO - Validated that VN ctest-vn4-52946392 is not in any agent 2026-06-18 15:03:25,647 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-52946392 info 2026-06-18 15:03:25,673 - INFO - Deleted policy ctest-policy1-52442024 2026-06-18 15:03:25,831 - DEBUG - policy ctest-policy1-52442024 is not found in API Server 2026-06-18 15:03:26,084 - DEBUG - No XMPP flaps were noticed during the test
2026-06-18 15:03:26,084 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04]
2026-06-18 15:03:26,084 - INFO - -------------------------------------------------------------------------------- 2026-06-18 15:03:26,376 - DEBUG - No XMPP flaps were noticed during the test
2026-06-18 15:03:26,376 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:05]
2026-06-18 15:03:26,376 - INFO - -------------------------------------------------------------------------------- 2026-06-18 15:03:27,125 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-36041882, ID : 4a091510-589f-4b3f-b080-042008190392