2026-09-09 18:25:04,421 - INFO - Domain Default found not creating 2026-09-09 18:25:04,647 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-96053799 not found, creating it 2026-09-09 18:25:05,201 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-96053799, ID : 18a35925-54e8-4b3b-b04e-41211fcb3a8f 2026-09-09 18:25:07,153 - INFO - ================================================================================ 2026-09-09 18:25:07,153 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-09-09 18:25:07,430 - DEBUG - Nothing to compare xmpp stats {'10.0.0.38': {'10.20.0.17': '0'}} with 2026-09-09 18:25:07,430 - INFO - Initial checks done. Running the testcase now 2026-09-09 18:25:07,430 - INFO - 2026-09-09 18:25:07,430 - INFO - ================================================================================ 2026-09-09 18:25:07,430 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-09-09 18:25:07,430 - 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-09 18:25:07,724 - DEBUG - Nothing to compare xmpp stats {'10.0.0.38': {'10.20.0.17': '0'}} with 2026-09-09 18:25:07,724 - INFO - Initial checks done. Running the testcase now 2026-09-09 18:25:07,724 - INFO - 2026-09-09 18:25:08,180 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-96053799:ctest-vn4-10753730, 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-96053799:ctest-vn4-10753730, 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-96053799:ctest-vn4-10753730, 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-96053799:ctest-vn4-10753730, 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-09 18:25:08,771 - DEBUG - Response for create_network : {'network': {'id': 'e6353e48-7c01-41a8-b3e4-46b4baa4b2d9', 'name': 'ctest-vn4-10753730', 'tenant_id': '18a3592554e84b3bb04e41211fcb3a8f', 'project_id': '18a3592554e84b3bb04e41211fcb3a8f', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'tags': [], 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-96053799', 'ctest-vn4-10753730'], 'port_security_enabled': True, 'description': ''}} 2026-09-09 18:25:09,012 - DEBUG - Response for create_subnet : {'subnet': {'id': 'f6567850-8d97-4b58-9b72-80884d746bec', 'name': '', 'tenant_id': '18a3592554e84b3bb04e41211fcb3a8f', 'network_id': 'e6353e48-7c01-41a8-b3e4-46b4baa4b2d9', 'ip_version': 4, 'cidr': '97.80.245.0/26', 'allocation_pools': [{'start': '97.80.245.2', 'end': '97.80.245.62'}], 'gateway_ip': '97.80.245.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '97.80.245.2', 'tags': [], 'project_id': '18a3592554e84b3bb04e41211fcb3a8f'}} 2026-09-09 18:25:09,242 - DEBUG - Response for create_subnet : {'subnet': {'id': 'b7beab86-5251-42a9-b568-301badeb2f9c', 'name': '', 'tenant_id': '18a3592554e84b3bb04e41211fcb3a8f', 'network_id': 'e6353e48-7c01-41a8-b3e4-46b4baa4b2d9', 'ip_version': 6, 'cidr': '2833:18c:7830:2f71:8efd:f834::/96', 'allocation_pools': [{'start': '2833:18c:7830:2f71:8efd:f834:0:2', 'end': '2833:18c:7830:2f71:8efd:f834:ffff:fffe'}], 'gateway_ip': '2833:18c:7830:2f71:8efd:f834:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '2833:18c:7830:2f71:8efd:f834:0:2', 'tags': [], 'project_id': '18a3592554e84b3bb04e41211fcb3a8f'}} 2026-09-09 18:25:09,265 - INFO - Created VN ctest-vn4-10753730 2026-09-09 18:25:09,324 - DEBUG - VN ctest-vn4-10753730 UUID is e6353e48-7c01-41a8-b3e4-46b4baa4b2d9 2026-09-09 18:25:09,571 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'e6353e48-7c01-41a8-b3e4-46b4baa4b2d9', 'name': 'ctest-vn4-10753730', 'tenant_id': '18a3592554e84b3bb04e41211fcb3a8f', 'project_id': '18a3592554e84b3bb04e41211fcb3a8f', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'tags': [], 'subnets': ['f6567850-8d97-4b58-9b72-80884d746bec', 'b7beab86-5251-42a9-b568-301badeb2f9c'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-96053799', 'ctest-vn4-10753730'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-96053799', 'ctest-policy1-61770164']], 'subnet_ipam': [{'subnet_cidr': '97.80.245.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '2833:18c:7830:2f71:8efd:f834::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2026-09-09 18:25:09,740 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2026-09-09 18:25:10,132 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2026-09-09 18:25:10,163 - DEBUG - Requesting: http://10.0.0.38:8082/domain/67483de1-1484-49dc-98c4-a0fc21ca031a 2026-09-09 18:25:10,182 - DEBUG - Requesting: http://10.0.0.38:8082/project/18a35925-54e8-4b3b-b04e-41211fcb3a8f 2026-09-09 18:25:10,262 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/e6353e48-7c01-41a8-b3e4-46b4baa4b2d9 2026-09-09 18:25:10,276 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/e6353e48-7c01-41a8-b3e4-46b4baa4b2d9 2026-09-09 18:25:10,286 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/90ea4ab6-b93d-4974-a2bd-0636fb38ca6d 2026-09-09 18:25:10,296 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/90ea4ab6-b93d-4974-a2bd-0636fb38ca6d 2026-09-09 18:25:10,304 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/8ad70246-c8b2-43ec-8723-99cb0f1fe335 2026-09-09 18:25:10,311 - DEBUG - Route Targets: ['target:64512:8000005'] 2026-09-09 18:25:10,311 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/e6353e48-7c01-41a8-b3e4-46b4baa4b2d9 2026-09-09 18:25:10,322 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/90ea4ab6-b93d-4974-a2bd-0636fb38ca6d 2026-09-09 18:25:10,339 - INFO - Verified VN network id 11 for VN e6353e48-7c01-41a8-b3e4-46b4baa4b2d9 2026-09-09 18:25:10,339 - INFO - Verifications in API Server for VN ctest-vn4-10753730 passed 2026-09-09 18:25:10,340 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/e6353e48-7c01-41a8-b3e4-46b4baa4b2d9 2026-09-09 18:25:10,351 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/90ea4ab6-b93d-4974-a2bd-0636fb38ca6d 2026-09-09 18:25:10,360 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/90ea4ab6-b93d-4974-a2bd-0636fb38ca6d 2026-09-09 18:25:10,368 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/8ad70246-c8b2-43ec-8723-99cb0f1fe335 2026-09-09 18:25:10,389 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-96053799:ctest-vn4-10753730', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-96053799', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '16588233283528114600', 'uuid-lslong': '12962563369518543577'}, 'enable': 'true', 'created': '2026-09-09T18:25:08', 'last-modified': '2026-09-09T18:25:09', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.860539'} 2026-09-09 18:25:10,396 - DEBUG - Route Targets: ['target:64512:8000005'] 2026-09-09 18:25:10,397 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-10753730 passed 2026-09-09 18:25:10,397 - DEBUG - ====Verifying policy data for ctest-vn4-10753730 in API_Server ====== 2026-09-09 18:25:10,397 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2026-09-09 18:25:10,404 - DEBUG - Requesting: http://10.0.0.38:8082/domain/67483de1-1484-49dc-98c4-a0fc21ca031a 2026-09-09 18:25:10,416 - DEBUG - Requesting: http://10.0.0.38:8082/project/18a35925-54e8-4b3b-b04e-41211fcb3a8f 2026-09-09 18:25:10,497 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/e6353e48-7c01-41a8-b3e4-46b4baa4b2d9 2026-09-09 18:25:10,509 - DEBUG - ==>Verifying data for policy with id: b9222fa6-0be6-40fe-9a42-219019aea986, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-96053799', 'ctest-policy1-61770164'] 2026-09-09 18:25:10,509 - INFO - VN ctest-vn4-10753730 Policy verification: verify_vn_policy_in_api_server, status: True 2026-09-09 18:25:10,509 - DEBUG - Verifying the vn in opserver 2026-09-09 18:25:10,509 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-96053799:ctest-vn4-10753730 virtual network link through opserver 10.0.0.38 2026-09-09 18:25:10,509 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks 2026-09-09 18:25:10,883 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks 2026-09-09 18:25:10,943 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-96053799:ctest-vn4-10753730', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-96053799:ctest-vn4-10753730?flat'} 2026-09-09 18:25:10,943 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-96053799:ctest-vn4-10753730 is found in opserver 2026-09-09 18:25:10,954 - DEBUG - Do not have enough data to verify VN in agent 2026-09-09 18:25:10,960 - DEBUG - VRF ids for VN ctest-vn4-10753730: {} 2026-09-09 18:25:10,961 - DEBUG - ====Verifying data for ctest-policy1-61770164 in API_Server ====== 2026-09-09 18:25:10,961 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2026-09-09 18:25:10,968 - DEBUG - Requesting: http://10.0.0.38:8082/domain/67483de1-1484-49dc-98c4-a0fc21ca031a 2026-09-09 18:25:10,982 - DEBUG - Requesting: http://10.0.0.38:8082/project/18a35925-54e8-4b3b-b04e-41211fcb3a8f 2026-09-09 18:25:11,070 - DEBUG - Requesting: http://10.0.0.38:8082/network-policy/b9222fa6-0be6-40fe-9a42-219019aea986 2026-09-09 18:25:11,083 - INFO - Verified policy ctest-policy1-61770164 in API Server, Result: True 2026-09-09 18:25:11,084 - INFO - Done with setup and verification, moving onto test .. 2026-09-09 18:25:11,097 - INFO - Deleting VN ctest-vn4-10753730 2026-09-09 18:25:11,268 - DEBUG - Response for deleting network () 2026-09-09 18:25:11,268 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/90ea4ab6-b93d-4974-a2bd-0636fb38ca6d 2026-09-09 18:25:11,275 - DEBUG - Response Code: 404 2026-09-09 18:25:11,275 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2026-09-09 18:25:11,285 - DEBUG - Requesting: http://10.0.0.38:8082/domain/67483de1-1484-49dc-98c4-a0fc21ca031a 2026-09-09 18:25:11,346 - DEBUG - Requesting: http://10.0.0.38:8082/project/18a35925-54e8-4b3b-b04e-41211fcb3a8f 2026-09-09 18:25:11,426 - INFO - Validated that VN ctest-vn4-10753730 is not found in API Server 2026-09-09 18:25:11,438 - DEBUG - VN ctest-vn4-10753730 is not present in Agent 10.0.0.38 2026-09-09 18:25:11,438 - INFO - Validated that VN ctest-vn4-10753730 is not in any agent 2026-09-09 18:25:11,462 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-10753730 info 2026-09-09 18:25:11,490 - INFO - Deleted policy ctest-policy1-61770164 2026-09-09 18:25:11,676 - DEBUG - policy ctest-policy1-61770164 is not found in API Server 2026-09-09 18:25:11,954 - DEBUG - No XMPP flaps were noticed during the test
2026-09-09 18:25:11,954 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04]
2026-09-09 18:25:11,954 - INFO - -------------------------------------------------------------------------------- 2026-09-09 18:25:12,258 - DEBUG - No XMPP flaps were noticed during the test
2026-09-09 18:25:12,258 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:05]
2026-09-09 18:25:12,258 - INFO - -------------------------------------------------------------------------------- 2026-09-09 18:25:13,069 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-96053799, ID : 18a35925-54e8-4b3b-b04e-41211fcb3a8f