2026-06-18 02:01:17,391 - INFO - Domain Default found not creating 2026-06-18 02:01:17,567 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-46793175 not found, creating it 2026-06-18 02:01:18,046 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-46793175, ID : 58151d02-075e-4e03-9158-e6c582af95ea 2026-06-18 02:01:19,612 - INFO - ================================================================================ 2026-06-18 02:01:19,612 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-06-18 02:01:19,884 - DEBUG - Nothing to compare xmpp stats {'10.0.0.38': {'10.20.0.17': '0'}} with 2026-06-18 02:01:19,885 - INFO - Initial checks done. Running the testcase now 2026-06-18 02:01:19,885 - INFO - 2026-06-18 02:01:19,885 - INFO - ================================================================================ 2026-06-18 02:01:19,885 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-06-18 02:01:19,885 - 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 02:01:20,179 - DEBUG - Nothing to compare xmpp stats {'10.0.0.38': {'10.20.0.17': '0'}} with 2026-06-18 02:01:20,179 - INFO - Initial checks done. Running the testcase now 2026-06-18 02:01:20,179 - INFO - 2026-06-18 02:01:20,585 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-46793175:ctest-vn4-59766262, 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-46793175:ctest-vn4-59766262, 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-46793175:ctest-vn4-59766262, 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-46793175:ctest-vn4-59766262, 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 02:01:21,135 - DEBUG - Response for create_network : {'network': {'id': 'f96da93e-d7d9-4112-b339-6fa4c30b5cca', 'name': 'ctest-vn4-59766262', 'tenant_id': '58151d02075e4e039158e6c582af95ea', 'project_id': '58151d02075e4e039158e6c582af95ea', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-46793175', 'ctest-vn4-59766262'], 'port_security_enabled': True, 'description': ''}} 2026-06-18 02:01:21,308 - DEBUG - Response for create_subnet : {'subnet': {'id': 'a7a55712-31ed-482a-aa01-855ad6deca96', 'name': '', 'tenant_id': '58151d02075e4e039158e6c582af95ea', 'network_id': 'f96da93e-d7d9-4112-b339-6fa4c30b5cca', 'ip_version': 4, 'cidr': '117.63.31.128/26', 'allocation_pools': [{'start': '117.63.31.130', 'end': '117.63.31.190'}], 'gateway_ip': '117.63.31.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '117.63.31.130', 'tags': [], 'project_id': '58151d02075e4e039158e6c582af95ea'}} 2026-06-18 02:01:21,470 - DEBUG - Response for create_subnet : {'subnet': {'id': 'd150c541-5b65-47ac-9979-7b8567730772', 'name': '', 'tenant_id': '58151d02075e4e039158e6c582af95ea', 'network_id': 'f96da93e-d7d9-4112-b339-6fa4c30b5cca', 'ip_version': 6, 'cidr': '275f:ac86:4198:26ef:e1f1:1ac2::/96', 'allocation_pools': [{'start': '275f:ac86:4198:26ef:e1f1:1ac2:0:2', 'end': '275f:ac86:4198:26ef:e1f1:1ac2:ffff:fffe'}], 'gateway_ip': '275f:ac86:4198:26ef:e1f1:1ac2:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '275f:ac86:4198:26ef:e1f1:1ac2:0:2', 'tags': [], 'project_id': '58151d02075e4e039158e6c582af95ea'}} 2026-06-18 02:01:21,490 - INFO - Created VN ctest-vn4-59766262 2026-06-18 02:01:21,549 - DEBUG - VN ctest-vn4-59766262 UUID is f96da93e-d7d9-4112-b339-6fa4c30b5cca 2026-06-18 02:01:21,769 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'f96da93e-d7d9-4112-b339-6fa4c30b5cca', 'name': 'ctest-vn4-59766262', 'tenant_id': '58151d02075e4e039158e6c582af95ea', 'project_id': '58151d02075e4e039158e6c582af95ea', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['a7a55712-31ed-482a-aa01-855ad6deca96', 'd150c541-5b65-47ac-9979-7b8567730772'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-46793175', 'ctest-vn4-59766262'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-46793175', 'ctest-policy1-46095684']], 'subnet_ipam': [{'subnet_cidr': '117.63.31.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '275f:ac86:4198:26ef:e1f1:1ac2::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2026-06-18 02:01:21,937 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2026-06-18 02:01:22,271 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2026-06-18 02:01:22,307 - DEBUG - Requesting: http://10.0.0.38:8082/domain/884a039c-a0e8-4bec-a8b7-0be35993a04b 2026-06-18 02:01:22,320 - DEBUG - Requesting: http://10.0.0.38:8082/project/58151d02-075e-4e03-9158-e6c582af95ea 2026-06-18 02:01:22,399 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/f96da93e-d7d9-4112-b339-6fa4c30b5cca 2026-06-18 02:01:22,414 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/f96da93e-d7d9-4112-b339-6fa4c30b5cca 2026-06-18 02:01:22,425 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/75e23ac6-0032-4842-a8bf-cb4417a6d324 2026-06-18 02:01:22,432 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/75e23ac6-0032-4842-a8bf-cb4417a6d324 2026-06-18 02:01:22,441 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/2c481dd7-457f-40ef-8f22-3ad9389b17b0 2026-06-18 02:01:22,449 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-06-18 02:01:22,449 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/f96da93e-d7d9-4112-b339-6fa4c30b5cca 2026-06-18 02:01:22,461 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/75e23ac6-0032-4842-a8bf-cb4417a6d324 2026-06-18 02:01:22,481 - INFO - Verified VN network id 11 for VN f96da93e-d7d9-4112-b339-6fa4c30b5cca 2026-06-18 02:01:22,481 - INFO - Verifications in API Server for VN ctest-vn4-59766262 passed 2026-06-18 02:01:22,481 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/f96da93e-d7d9-4112-b339-6fa4c30b5cca 2026-06-18 02:01:22,493 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/75e23ac6-0032-4842-a8bf-cb4417a6d324 2026-06-18 02:01:22,501 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/75e23ac6-0032-4842-a8bf-cb4417a6d324 2026-06-18 02:01:22,509 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/2c481dd7-457f-40ef-8f22-3ad9389b17b0 2026-06-18 02:01:22,522 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-46793175:ctest-vn4-59766262', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-46793175', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '17973207775279923474', 'uuid-lslong': '12914476159899229386'}, 'enable': 'true', 'created': '2026-06-18T02:01:21', 'last-modified': '2026-06-18T02:01:21', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.778596'} 2026-06-18 02:01:22,528 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-06-18 02:01:22,529 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-59766262 passed 2026-06-18 02:01:22,529 - DEBUG - ====Verifying policy data for ctest-vn4-59766262 in API_Server ====== 2026-06-18 02:01:22,529 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2026-06-18 02:01:22,536 - DEBUG - Requesting: http://10.0.0.38:8082/domain/884a039c-a0e8-4bec-a8b7-0be35993a04b 2026-06-18 02:01:22,548 - DEBUG - Requesting: http://10.0.0.38:8082/project/58151d02-075e-4e03-9158-e6c582af95ea 2026-06-18 02:01:22,626 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/f96da93e-d7d9-4112-b339-6fa4c30b5cca 2026-06-18 02:01:22,637 - DEBUG - ==>Verifying data for policy with id: 5cd9c342-17c5-419e-87bc-9dbebd1b666b, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-46793175', 'ctest-policy1-46095684'] 2026-06-18 02:01:22,637 - INFO - VN ctest-vn4-59766262 Policy verification: verify_vn_policy_in_api_server, status: True 2026-06-18 02:01:22,637 - DEBUG - Verifying the vn in opserver 2026-06-18 02:01:22,637 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-46793175:ctest-vn4-59766262 virtual network link through opserver 10.0.0.38 2026-06-18 02:01:22,638 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks 2026-06-18 02:01:23,033 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks 2026-06-18 02:01:23,098 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-46793175:ctest-vn4-59766262', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-46793175:ctest-vn4-59766262?flat'} 2026-06-18 02:01:23,098 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-46793175:ctest-vn4-59766262 is found in opserver 2026-06-18 02:01:23,109 - DEBUG - Do not have enough data to verify VN in agent 2026-06-18 02:01:23,113 - DEBUG - VRF ids for VN ctest-vn4-59766262: {} 2026-06-18 02:01:23,114 - DEBUG - ====Verifying data for ctest-policy1-46095684 in API_Server ====== 2026-06-18 02:01:23,115 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2026-06-18 02:01:23,121 - DEBUG - Requesting: http://10.0.0.38:8082/domain/884a039c-a0e8-4bec-a8b7-0be35993a04b 2026-06-18 02:01:23,132 - DEBUG - Requesting: http://10.0.0.38:8082/project/58151d02-075e-4e03-9158-e6c582af95ea 2026-06-18 02:01:23,214 - DEBUG - Requesting: http://10.0.0.38:8082/network-policy/5cd9c342-17c5-419e-87bc-9dbebd1b666b 2026-06-18 02:01:23,226 - INFO - Verified policy ctest-policy1-46095684 in API Server, Result: True 2026-06-18 02:01:23,226 - INFO - Done with setup and verification, moving onto test .. 2026-06-18 02:01:23,235 - INFO - Deleting VN ctest-vn4-59766262 2026-06-18 02:01:23,375 - DEBUG - Response for deleting network () 2026-06-18 02:01:23,375 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/75e23ac6-0032-4842-a8bf-cb4417a6d324 2026-06-18 02:01:23,382 - DEBUG - Response Code: 404 2026-06-18 02:01:23,383 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2026-06-18 02:01:23,391 - DEBUG - Requesting: http://10.0.0.38:8082/domain/884a039c-a0e8-4bec-a8b7-0be35993a04b 2026-06-18 02:01:23,451 - DEBUG - Requesting: http://10.0.0.38:8082/project/58151d02-075e-4e03-9158-e6c582af95ea 2026-06-18 02:01:23,528 - INFO - Validated that VN ctest-vn4-59766262 is not found in API Server 2026-06-18 02:01:23,541 - DEBUG - VN ctest-vn4-59766262 is not present in Agent 10.0.0.38 2026-06-18 02:01:23,541 - INFO - Validated that VN ctest-vn4-59766262 is not in any agent 2026-06-18 02:01:23,557 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-59766262 info 2026-06-18 02:01:23,591 - INFO - Deleted policy ctest-policy1-46095684 2026-06-18 02:01:23,765 - DEBUG - policy ctest-policy1-46095684 is not found in API Server 2026-06-18 02:01:24,040 - DEBUG - No XMPP flaps were noticed during the test
2026-06-18 02:01:24,040 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:05]
2026-06-18 02:01:24,040 - INFO - -------------------------------------------------------------------------------- 2026-06-18 02:01:24,335 - DEBUG - No XMPP flaps were noticed during the test
2026-06-18 02:01:24,335 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:05]
2026-06-18 02:01:24,335 - INFO - -------------------------------------------------------------------------------- 2026-06-18 02:01:25,090 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-46793175, ID : 58151d02-075e-4e03-9158-e6c582af95ea