2026-08-21 06:33:15,517 - INFO - Domain Default found not creating 2026-08-21 06:33:15,673 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-78951253 not found, creating it 2026-08-21 06:33:16,145 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-78951253, ID : 38a14a3c-4e32-44b4-983c-9f14fceeb570 2026-08-21 06:33:17,686 - INFO - ================================================================================ 2026-08-21 06:33:17,686 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-08-21 06:33:17,960 - DEBUG - Nothing to compare xmpp stats {'10.0.0.38': {'10.20.0.17': '0'}} with 2026-08-21 06:33:17,960 - INFO - Initial checks done. Running the testcase now 2026-08-21 06:33:17,960 - INFO - 2026-08-21 06:33:17,960 - INFO - ================================================================================ 2026-08-21 06:33:17,960 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-08-21 06:33:17,960 - 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-08-21 06:33:18,255 - DEBUG - Nothing to compare xmpp stats {'10.0.0.38': {'10.20.0.17': '0'}} with 2026-08-21 06:33:18,255 - INFO - Initial checks done. Running the testcase now 2026-08-21 06:33:18,255 - INFO - 2026-08-21 06:33:18,632 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-78951253:ctest-vn4-52122371, 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-78951253:ctest-vn4-52122371, 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-78951253:ctest-vn4-52122371, 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-78951253:ctest-vn4-52122371, 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-08-21 06:33:19,162 - DEBUG - Response for create_network : {'network': {'id': 'f8bfd28b-4f1d-4352-a1e3-e130f44bd92a', 'name': 'ctest-vn4-52122371', 'tenant_id': '38a14a3c4e3244b4983c9f14fceeb570', 'project_id': '38a14a3c4e3244b4983c9f14fceeb570', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-78951253', 'ctest-vn4-52122371'], 'port_security_enabled': True, 'description': ''}} 2026-08-21 06:33:19,343 - DEBUG - Response for create_subnet : {'subnet': {'id': 'b33daa23-2cba-4387-a03f-62a76dc4a03c', 'name': '', 'tenant_id': '38a14a3c4e3244b4983c9f14fceeb570', 'network_id': 'f8bfd28b-4f1d-4352-a1e3-e130f44bd92a', 'ip_version': 4, 'cidr': '132.35.242.64/26', 'allocation_pools': [{'start': '132.35.242.66', 'end': '132.35.242.126'}], 'gateway_ip': '132.35.242.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '132.35.242.66', 'tags': [], 'project_id': '38a14a3c4e3244b4983c9f14fceeb570'}} 2026-08-21 06:33:19,505 - DEBUG - Response for create_subnet : {'subnet': {'id': '713dcb28-c75f-4d98-b283-0fb196ad670f', 'name': '', 'tenant_id': '38a14a3c4e3244b4983c9f14fceeb570', 'network_id': 'f8bfd28b-4f1d-4352-a1e3-e130f44bd92a', 'ip_version': 6, 'cidr': '340c:6b86:c1d8:b1fe:b9b1:cc9::/96', 'allocation_pools': [{'start': '340c:6b86:c1d8:b1fe:b9b1:cc9:0:2', 'end': '340c:6b86:c1d8:b1fe:b9b1:cc9:ffff:fffe'}], 'gateway_ip': '340c:6b86:c1d8:b1fe:b9b1:cc9:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '340c:6b86:c1d8:b1fe:b9b1:cc9:0:2', 'tags': [], 'project_id': '38a14a3c4e3244b4983c9f14fceeb570'}} 2026-08-21 06:33:19,523 - INFO - Created VN ctest-vn4-52122371 2026-08-21 06:33:19,575 - DEBUG - VN ctest-vn4-52122371 UUID is f8bfd28b-4f1d-4352-a1e3-e130f44bd92a 2026-08-21 06:33:19,778 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'f8bfd28b-4f1d-4352-a1e3-e130f44bd92a', 'name': 'ctest-vn4-52122371', 'tenant_id': '38a14a3c4e3244b4983c9f14fceeb570', 'project_id': '38a14a3c4e3244b4983c9f14fceeb570', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['b33daa23-2cba-4387-a03f-62a76dc4a03c', '713dcb28-c75f-4d98-b283-0fb196ad670f'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-78951253', 'ctest-vn4-52122371'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-78951253', 'ctest-policy1-89220104']], 'subnet_ipam': [{'subnet_cidr': '132.35.242.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '340c:6b86:c1d8:b1fe:b9b1:cc9::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2026-08-21 06:33:19,944 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2026-08-21 06:33:20,268 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2026-08-21 06:33:20,295 - DEBUG - Requesting: http://10.0.0.38:8082/domain/6c03022a-eab3-4a23-ae19-f5b681364dc8 2026-08-21 06:33:20,309 - DEBUG - Requesting: http://10.0.0.38:8082/project/38a14a3c-4e32-44b4-983c-9f14fceeb570 2026-08-21 06:33:20,386 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/f8bfd28b-4f1d-4352-a1e3-e130f44bd92a 2026-08-21 06:33:20,399 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/f8bfd28b-4f1d-4352-a1e3-e130f44bd92a 2026-08-21 06:33:20,408 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/c818caf8-eacb-49ee-88ba-3d5ee8277f6a 2026-08-21 06:33:20,416 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/c818caf8-eacb-49ee-88ba-3d5ee8277f6a 2026-08-21 06:33:20,423 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/0835d60f-bfe0-4e7d-a431-aeba82fc3f68 2026-08-21 06:33:20,429 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-08-21 06:33:20,429 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/f8bfd28b-4f1d-4352-a1e3-e130f44bd92a 2026-08-21 06:33:20,438 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/c818caf8-eacb-49ee-88ba-3d5ee8277f6a 2026-08-21 06:33:20,452 - INFO - Verified VN network id 11 for VN f8bfd28b-4f1d-4352-a1e3-e130f44bd92a 2026-08-21 06:33:20,452 - INFO - Verifications in API Server for VN ctest-vn4-52122371 passed 2026-08-21 06:33:20,453 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/f8bfd28b-4f1d-4352-a1e3-e130f44bd92a 2026-08-21 06:33:20,462 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/c818caf8-eacb-49ee-88ba-3d5ee8277f6a 2026-08-21 06:33:20,470 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/c818caf8-eacb-49ee-88ba-3d5ee8277f6a 2026-08-21 06:33:20,476 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/0835d60f-bfe0-4e7d-a431-aeba82fc3f68 2026-08-21 06:33:20,487 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-78951253:ctest-vn4-52122371', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-78951253', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '17924276537727468370', 'uuid-lslong': '11665415060193007914'}, 'enable': 'true', 'created': '2026-08-21T06:33:19', 'last-modified': '2026-08-21T06:33:19', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.737626'} 2026-08-21 06:33:20,494 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-08-21 06:33:20,494 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-52122371 passed 2026-08-21 06:33:20,495 - DEBUG - ====Verifying policy data for ctest-vn4-52122371 in API_Server ====== 2026-08-21 06:33:20,495 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2026-08-21 06:33:20,500 - DEBUG - Requesting: http://10.0.0.38:8082/domain/6c03022a-eab3-4a23-ae19-f5b681364dc8 2026-08-21 06:33:20,509 - DEBUG - Requesting: http://10.0.0.38:8082/project/38a14a3c-4e32-44b4-983c-9f14fceeb570 2026-08-21 06:33:20,582 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/f8bfd28b-4f1d-4352-a1e3-e130f44bd92a 2026-08-21 06:33:20,592 - DEBUG - ==>Verifying data for policy with id: 8af3d968-a72e-4278-a5ae-5a91879497be, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-78951253', 'ctest-policy1-89220104'] 2026-08-21 06:33:20,592 - INFO - VN ctest-vn4-52122371 Policy verification: verify_vn_policy_in_api_server, status: True 2026-08-21 06:33:20,593 - DEBUG - Verifying the vn in opserver 2026-08-21 06:33:20,593 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-78951253:ctest-vn4-52122371 virtual network link through opserver 10.0.0.38 2026-08-21 06:33:20,593 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks 2026-08-21 06:33:20,918 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks 2026-08-21 06:33:20,972 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-78951253:ctest-vn4-52122371', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-78951253:ctest-vn4-52122371?flat'} 2026-08-21 06:33:20,972 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-78951253:ctest-vn4-52122371 is found in opserver 2026-08-21 06:33:20,988 - DEBUG - Do not have enough data to verify VN in agent 2026-08-21 06:33:20,994 - DEBUG - VRF ids for VN ctest-vn4-52122371: {} 2026-08-21 06:33:20,994 - DEBUG - ====Verifying data for ctest-policy1-89220104 in API_Server ====== 2026-08-21 06:33:20,994 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2026-08-21 06:33:21,001 - DEBUG - Requesting: http://10.0.0.38:8082/domain/6c03022a-eab3-4a23-ae19-f5b681364dc8 2026-08-21 06:33:21,013 - DEBUG - Requesting: http://10.0.0.38:8082/project/38a14a3c-4e32-44b4-983c-9f14fceeb570 2026-08-21 06:33:21,089 - DEBUG - Requesting: http://10.0.0.38:8082/network-policy/8af3d968-a72e-4278-a5ae-5a91879497be 2026-08-21 06:33:21,099 - INFO - Verified policy ctest-policy1-89220104 in API Server, Result: True 2026-08-21 06:33:21,099 - INFO - Done with setup and verification, moving onto test .. 2026-08-21 06:33:21,107 - INFO - Deleting VN ctest-vn4-52122371 2026-08-21 06:33:21,242 - DEBUG - Response for deleting network () 2026-08-21 06:33:21,242 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/c818caf8-eacb-49ee-88ba-3d5ee8277f6a 2026-08-21 06:33:21,248 - DEBUG - Response Code: 404 2026-08-21 06:33:21,248 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2026-08-21 06:33:21,253 - DEBUG - Requesting: http://10.0.0.38:8082/domain/6c03022a-eab3-4a23-ae19-f5b681364dc8 2026-08-21 06:33:21,305 - DEBUG - Requesting: http://10.0.0.38:8082/project/38a14a3c-4e32-44b4-983c-9f14fceeb570 2026-08-21 06:33:21,381 - INFO - Validated that VN ctest-vn4-52122371 is not found in API Server 2026-08-21 06:33:21,390 - DEBUG - VN ctest-vn4-52122371 is not present in Agent 10.0.0.38 2026-08-21 06:33:21,390 - INFO - Validated that VN ctest-vn4-52122371 is not in any agent 2026-08-21 06:33:21,406 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-52122371 info 2026-08-21 06:33:21,428 - INFO - Deleted policy ctest-policy1-89220104 2026-08-21 06:33:21,591 - DEBUG - policy ctest-policy1-89220104 is not found in API Server 2026-08-21 06:33:21,852 - DEBUG - No XMPP flaps were noticed during the test
2026-08-21 06:33:21,852 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04]
2026-08-21 06:33:21,852 - INFO - -------------------------------------------------------------------------------- 2026-08-21 06:33:22,163 - DEBUG - No XMPP flaps were noticed during the test
2026-08-21 06:33:22,163 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:05]
2026-08-21 06:33:22,163 - INFO - -------------------------------------------------------------------------------- 2026-08-21 06:33:22,878 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-78951253, ID : 38a14a3c-4e32-44b4-983c-9f14fceeb570