2026-09-02 00:25:58,957 - INFO - Domain Default found not creating 2026-09-02 00:25:59,113 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-78104362 not found, creating it 2026-09-02 00:25:59,582 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-78104362, ID : 5a307a78-cfa4-41f8-b974-d9159794b9dc 2026-09-02 00:26:01,156 - INFO - ================================================================================ 2026-09-02 00:26:01,156 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-09-02 00:26:01,412 - DEBUG - Nothing to compare xmpp stats {'10.0.0.186': {'10.20.0.17': '0'}} with 2026-09-02 00:26:01,412 - INFO - Initial checks done. Running the testcase now 2026-09-02 00:26:01,413 - INFO - 2026-09-02 00:26:01,413 - INFO - ================================================================================ 2026-09-02 00:26:01,413 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-09-02 00:26:01,413 - 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-02 00:26:01,705 - DEBUG - Nothing to compare xmpp stats {'10.0.0.186': {'10.20.0.17': '0'}} with 2026-09-02 00:26:01,705 - INFO - Initial checks done. Running the testcase now 2026-09-02 00:26:01,706 - INFO - 2026-09-02 00:26:02,085 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-78104362:ctest-vn4-20762128, 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-78104362:ctest-vn4-20762128, 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-78104362:ctest-vn4-20762128, 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-78104362:ctest-vn4-20762128, 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-02 00:26:02,625 - DEBUG - Response for create_network : {'network': {'id': '85cdc965-8c34-430d-98ce-8b96e690d296', 'name': 'ctest-vn4-20762128', 'tenant_id': '5a307a78cfa441f8b974d9159794b9dc', 'project_id': '5a307a78cfa441f8b974d9159794b9dc', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'tags': [], 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-78104362', 'ctest-vn4-20762128'], 'port_security_enabled': True, 'description': ''}} 2026-09-02 00:26:03,079 - DEBUG - Response for create_subnet : {'subnet': {'id': '75813680-128b-4348-ba1b-e2c79ab45d36', 'name': '', 'tenant_id': '5a307a78cfa441f8b974d9159794b9dc', 'network_id': '85cdc965-8c34-430d-98ce-8b96e690d296', 'ip_version': 4, 'cidr': '159.156.232.128/26', 'allocation_pools': [{'start': '159.156.232.130', 'end': '159.156.232.190'}], 'gateway_ip': '159.156.232.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '159.156.232.130', 'tags': [], 'project_id': '5a307a78cfa441f8b974d9159794b9dc'}} 2026-09-02 00:26:03,266 - DEBUG - Response for create_subnet : {'subnet': {'id': 'c29e9d51-29df-4c2c-92c8-09e79cb81426', 'name': '', 'tenant_id': '5a307a78cfa441f8b974d9159794b9dc', 'network_id': '85cdc965-8c34-430d-98ce-8b96e690d296', 'ip_version': 6, 'cidr': '37cd:3ecc:ad9e:fa6:d58d:b8bb::/96', 'allocation_pools': [{'start': '37cd:3ecc:ad9e:fa6:d58d:b8bb:0:2', 'end': '37cd:3ecc:ad9e:fa6:d58d:b8bb:ffff:fffe'}], 'gateway_ip': '37cd:3ecc:ad9e:fa6:d58d:b8bb:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '37cd:3ecc:ad9e:fa6:d58d:b8bb:0:2', 'tags': [], 'project_id': '5a307a78cfa441f8b974d9159794b9dc'}} 2026-09-02 00:26:03,284 - INFO - Created VN ctest-vn4-20762128 2026-09-02 00:26:03,339 - DEBUG - VN ctest-vn4-20762128 UUID is 85cdc965-8c34-430d-98ce-8b96e690d296 2026-09-02 00:26:03,572 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '85cdc965-8c34-430d-98ce-8b96e690d296', 'name': 'ctest-vn4-20762128', 'tenant_id': '5a307a78cfa441f8b974d9159794b9dc', 'project_id': '5a307a78cfa441f8b974d9159794b9dc', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'tags': [], 'subnets': ['75813680-128b-4348-ba1b-e2c79ab45d36', 'c29e9d51-29df-4c2c-92c8-09e79cb81426'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-78104362', 'ctest-vn4-20762128'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-78104362', 'ctest-policy1-60491862']], 'subnet_ipam': [{'subnet_cidr': '159.156.232.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '37cd:3ecc:ad9e:fa6:d58d:b8bb::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2026-09-02 00:26:03,755 - DEBUG - Requesting: http://10.0.0.186:8082/domains 2026-09-02 00:26:04,088 - DEBUG - Requesting: http://10.0.0.186:8082/domains 2026-09-02 00:26:04,117 - DEBUG - Requesting: http://10.0.0.186:8082/domain/6cb0210c-1471-40eb-8716-e9a3f3d9da90 2026-09-02 00:26:04,136 - DEBUG - Requesting: http://10.0.0.186:8082/project/5a307a78-cfa4-41f8-b974-d9159794b9dc 2026-09-02 00:26:04,219 - DEBUG - Requesting: http://10.0.0.186:8082/virtual-network/85cdc965-8c34-430d-98ce-8b96e690d296 2026-09-02 00:26:04,232 - DEBUG - Requesting: http://10.0.0.186:8082/virtual-network/85cdc965-8c34-430d-98ce-8b96e690d296 2026-09-02 00:26:04,241 - DEBUG - Requesting: http://10.0.0.186:8082/routing-instance/15d7dcf5-2c2e-4b58-a12e-aa0a0e0344a8 2026-09-02 00:26:04,249 - DEBUG - Requesting: http://10.0.0.186:8082/routing-instance/15d7dcf5-2c2e-4b58-a12e-aa0a0e0344a8 2026-09-02 00:26:04,257 - DEBUG - Requesting: http://10.0.0.186:8082/route-target/70b42088-6e2b-4026-bfa8-2136ded6edce 2026-09-02 00:26:04,264 - DEBUG - Route Targets: ['target:64512:8000005'] 2026-09-02 00:26:04,264 - DEBUG - Requesting: http://10.0.0.186:8082/virtual-network/85cdc965-8c34-430d-98ce-8b96e690d296 2026-09-02 00:26:04,276 - DEBUG - Requesting: http://10.0.0.186:8082/routing-instance/15d7dcf5-2c2e-4b58-a12e-aa0a0e0344a8 2026-09-02 00:26:04,310 - INFO - Verified VN network id 12 for VN 85cdc965-8c34-430d-98ce-8b96e690d296 2026-09-02 00:26:04,311 - INFO - Verifications in API Server for VN ctest-vn4-20762128 passed 2026-09-02 00:26:04,311 - DEBUG - Requesting: http://10.0.0.186:8082/virtual-network/85cdc965-8c34-430d-98ce-8b96e690d296 2026-09-02 00:26:04,324 - DEBUG - Requesting: http://10.0.0.186:8082/routing-instance/15d7dcf5-2c2e-4b58-a12e-aa0a0e0344a8 2026-09-02 00:26:04,331 - DEBUG - Requesting: http://10.0.0.186:8082/routing-instance/15d7dcf5-2c2e-4b58-a12e-aa0a0e0344a8 2026-09-02 00:26:04,338 - DEBUG - Requesting: http://10.0.0.186:8082/route-target/70b42088-6e2b-4026-bfa8-2136ded6edce 2026-09-02 00:26:04,353 - DEBUG - Control-node 10.0.0.186 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-78104362:ctest-vn4-20762128', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-78104362', 'owner-access': '7', 'group': 'manager', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '9641583815251215117', 'uuid-lslong': '11010891619197047446'}, 'enable': 'true', 'created': '2026-09-02T00:26:02', 'last-modified': '2026-09-02T00:26:03', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.828714'} 2026-09-02 00:26:04,359 - DEBUG - Route Targets: ['target:64512:8000005'] 2026-09-02 00:26:04,359 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-20762128 passed 2026-09-02 00:26:04,360 - DEBUG - ====Verifying policy data for ctest-vn4-20762128 in API_Server ====== 2026-09-02 00:26:04,360 - DEBUG - Requesting: http://10.0.0.186:8082/domains 2026-09-02 00:26:04,367 - DEBUG - Requesting: http://10.0.0.186:8082/domain/6cb0210c-1471-40eb-8716-e9a3f3d9da90 2026-09-02 00:26:04,382 - DEBUG - Requesting: http://10.0.0.186:8082/project/5a307a78-cfa4-41f8-b974-d9159794b9dc 2026-09-02 00:26:04,456 - DEBUG - Requesting: http://10.0.0.186:8082/virtual-network/85cdc965-8c34-430d-98ce-8b96e690d296 2026-09-02 00:26:04,468 - DEBUG - ==>Verifying data for policy with id: 9209226f-d184-4840-85ad-0657b0b77893, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-78104362', 'ctest-policy1-60491862'] 2026-09-02 00:26:04,468 - INFO - VN ctest-vn4-20762128 Policy verification: verify_vn_policy_in_api_server, status: True 2026-09-02 00:26:04,468 - DEBUG - Verifying the vn in opserver 2026-09-02 00:26:04,468 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-78104362:ctest-vn4-20762128 virtual network link through opserver 10.0.0.186 2026-09-02 00:26:04,468 - DEBUG - Requesting: http://10.0.0.186:8081/analytics/uves/virtual-networks 2026-09-02 00:26:04,784 - DEBUG - Requesting: http://10.0.0.186:8081/analytics/uves/virtual-networks 2026-09-02 00:26:04,860 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-78104362:ctest-vn4-20762128', 'href': 'http://10.0.0.186:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-78104362:ctest-vn4-20762128?flat'} 2026-09-02 00:26:04,860 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-78104362:ctest-vn4-20762128 is found in opserver 2026-09-02 00:26:04,874 - DEBUG - Do not have enough data to verify VN in agent 2026-09-02 00:26:04,879 - DEBUG - VRF ids for VN ctest-vn4-20762128: {} 2026-09-02 00:26:04,879 - DEBUG - ====Verifying data for ctest-policy1-60491862 in API_Server ====== 2026-09-02 00:26:04,879 - DEBUG - Requesting: http://10.0.0.186:8082/domains 2026-09-02 00:26:04,897 - DEBUG - Requesting: http://10.0.0.186:8082/domain/6cb0210c-1471-40eb-8716-e9a3f3d9da90 2026-09-02 00:26:04,957 - DEBUG - Requesting: http://10.0.0.186:8082/project/5a307a78-cfa4-41f8-b974-d9159794b9dc 2026-09-02 00:26:05,001 - DEBUG - Requesting: http://10.0.0.186:8082/network-policy/9209226f-d184-4840-85ad-0657b0b77893 2026-09-02 00:26:05,015 - INFO - Verified policy ctest-policy1-60491862 in API Server, Result: True 2026-09-02 00:26:05,015 - INFO - Done with setup and verification, moving onto test .. 2026-09-02 00:26:05,026 - INFO - Deleting VN ctest-vn4-20762128 2026-09-02 00:26:05,266 - DEBUG - Response for deleting network () 2026-09-02 00:26:05,266 - DEBUG - Requesting: http://10.0.0.186:8082/routing-instance/15d7dcf5-2c2e-4b58-a12e-aa0a0e0344a8 2026-09-02 00:26:05,278 - DEBUG - Response Code: 404 2026-09-02 00:26:05,279 - DEBUG - Requesting: http://10.0.0.186:8082/domains 2026-09-02 00:26:05,290 - DEBUG - Requesting: http://10.0.0.186:8082/domain/6cb0210c-1471-40eb-8716-e9a3f3d9da90 2026-09-02 00:26:05,366 - DEBUG - Requesting: http://10.0.0.186:8082/project/5a307a78-cfa4-41f8-b974-d9159794b9dc 2026-09-02 00:26:05,446 - INFO - Validated that VN ctest-vn4-20762128 is not found in API Server 2026-09-02 00:26:05,458 - DEBUG - VN ctest-vn4-20762128 is not present in Agent 10.0.0.186 2026-09-02 00:26:05,458 - INFO - Validated that VN ctest-vn4-20762128 is not in any agent 2026-09-02 00:26:05,481 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-20762128 info 2026-09-02 00:26:05,507 - INFO - Deleted policy ctest-policy1-60491862 2026-09-02 00:26:05,675 - DEBUG - policy ctest-policy1-60491862 is not found in API Server 2026-09-02 00:26:05,941 - DEBUG - No XMPP flaps were noticed during the test 2026-09-02 00:26:05,941 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04] 2026-09-02 00:26:05,941 - INFO - -------------------------------------------------------------------------------- 2026-09-02 00:26:06,221 - DEBUG - No XMPP flaps were noticed during the test 2026-09-02 00:26:06,221 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:05] 2026-09-02 00:26:06,221 - INFO - -------------------------------------------------------------------------------- 2026-09-02 00:26:06,966 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-78104362, ID : 5a307a78-cfa4-41f8-b974-d9159794b9dc