2026-06-16 15:36:13,238 - INFO - Domain Default found not creating 2026-06-16 15:36:13,365 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-36064730 not found, creating it 2026-06-16 15:36:14,117 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-36064730, ID : 30803e4e-98e9-4acc-baad-ee95d4ddb4ee 2026-06-16 15:36:15,531 - INFO - ================================================================================ 2026-06-16 15:36:15,531 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-06-16 15:36:15,780 - DEBUG - Nothing to compare xmpp stats {'10.0.0.50': {'10.20.0.14': '0'}} with 2026-06-16 15:36:15,780 - INFO - Initial checks done. Running the testcase now 2026-06-16 15:36:15,780 - INFO - 2026-06-16 15:36:15,780 - INFO - ================================================================================ 2026-06-16 15:36:15,780 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-06-16 15:36:15,780 - 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-16 15:36:16,069 - DEBUG - Nothing to compare xmpp stats {'10.0.0.50': {'10.20.0.14': '0'}} with 2026-06-16 15:36:16,069 - INFO - Initial checks done. Running the testcase now 2026-06-16 15:36:16,069 - INFO - 2026-06-16 15:36:16,424 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-36064730:ctest-vn4-56395012, 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-36064730:ctest-vn4-56395012, 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-36064730:ctest-vn4-56395012, 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-36064730:ctest-vn4-56395012, 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-16 15:36:16,894 - DEBUG - Response for create_network : {'network': {'id': 'ada06e49-07c0-4449-a173-b3900d09b1cc', 'name': 'ctest-vn4-56395012', 'tenant_id': '30803e4e98e94accbaadee95d4ddb4ee', 'project_id': '30803e4e98e94accbaadee95d4ddb4ee', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-36064730', 'ctest-vn4-56395012'], 'port_security_enabled': True, 'description': ''}} 2026-06-16 15:36:17,088 - DEBUG - Response for create_subnet : {'subnet': {'id': '5e9a344b-f750-4b25-8c4d-b8420b6c057a', 'name': '', 'tenant_id': '30803e4e98e94accbaadee95d4ddb4ee', 'network_id': 'ada06e49-07c0-4449-a173-b3900d09b1cc', 'ip_version': 4, 'cidr': '158.1.181.192/26', 'allocation_pools': [{'start': '158.1.181.194', 'end': '158.1.181.254'}], 'gateway_ip': '158.1.181.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '158.1.181.194', 'tags': [], 'project_id': '30803e4e98e94accbaadee95d4ddb4ee'}} 2026-06-16 15:36:17,292 - DEBUG - Response for create_subnet : {'subnet': {'id': '32d473ac-742d-49e3-9f91-8c3d4bb47d12', 'name': '', 'tenant_id': '30803e4e98e94accbaadee95d4ddb4ee', 'network_id': 'ada06e49-07c0-4449-a173-b3900d09b1cc', 'ip_version': 6, 'cidr': '3a35:14fd:5d33:342a:4b29:558b::/96', 'allocation_pools': [{'start': '3a35:14fd:5d33:342a:4b29:558b:0:2', 'end': '3a35:14fd:5d33:342a:4b29:558b:ffff:fffe'}], 'gateway_ip': '3a35:14fd:5d33:342a:4b29:558b:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '3a35:14fd:5d33:342a:4b29:558b:0:2', 'tags': [], 'project_id': '30803e4e98e94accbaadee95d4ddb4ee'}} 2026-06-16 15:36:17,308 - INFO - Created VN ctest-vn4-56395012 2026-06-16 15:36:17,359 - DEBUG - VN ctest-vn4-56395012 UUID is ada06e49-07c0-4449-a173-b3900d09b1cc 2026-06-16 15:36:17,530 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'ada06e49-07c0-4449-a173-b3900d09b1cc', 'name': 'ctest-vn4-56395012', 'tenant_id': '30803e4e98e94accbaadee95d4ddb4ee', 'project_id': '30803e4e98e94accbaadee95d4ddb4ee', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['5e9a344b-f750-4b25-8c4d-b8420b6c057a', '32d473ac-742d-49e3-9f91-8c3d4bb47d12'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-36064730', 'ctest-vn4-56395012'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-36064730', 'ctest-policy1-00909306']], 'subnet_ipam': [{'subnet_cidr': '158.1.181.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '3a35:14fd:5d33:342a:4b29:558b::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2026-06-16 15:36:17,691 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2026-06-16 15:36:18,002 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2026-06-16 15:36:18,026 - DEBUG - Requesting: http://10.0.0.50:8082/domain/d38d1798-29c0-4f29-92b2-f0c010733fb8 2026-06-16 15:36:18,036 - DEBUG - Requesting: http://10.0.0.50:8082/project/30803e4e-98e9-4acc-baad-ee95d4ddb4ee 2026-06-16 15:36:18,099 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/ada06e49-07c0-4449-a173-b3900d09b1cc 2026-06-16 15:36:18,112 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/ada06e49-07c0-4449-a173-b3900d09b1cc 2026-06-16 15:36:18,119 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/fab86427-07fd-4d6c-a34e-91c172a334d5 2026-06-16 15:36:18,124 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/fab86427-07fd-4d6c-a34e-91c172a334d5 2026-06-16 15:36:18,129 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/8d81226f-a806-4497-b241-f30df3926987 2026-06-16 15:36:18,133 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-06-16 15:36:18,133 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/ada06e49-07c0-4449-a173-b3900d09b1cc 2026-06-16 15:36:18,140 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/fab86427-07fd-4d6c-a34e-91c172a334d5 2026-06-16 15:36:18,150 - INFO - Verified VN network id 11 for VN ada06e49-07c0-4449-a173-b3900d09b1cc 2026-06-16 15:36:18,150 - INFO - Verifications in API Server for VN ctest-vn4-56395012 passed 2026-06-16 15:36:18,150 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/ada06e49-07c0-4449-a173-b3900d09b1cc 2026-06-16 15:36:18,157 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/fab86427-07fd-4d6c-a34e-91c172a334d5 2026-06-16 15:36:18,161 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/fab86427-07fd-4d6c-a34e-91c172a334d5 2026-06-16 15:36:18,166 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/8d81226f-a806-4497-b241-f30df3926987 2026-06-16 15:36:18,175 - DEBUG - Control-node 10.0.0.50 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-36064730:ctest-vn4-56395012', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-36064730', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '12511121024776946761', 'uuid-lslong': '11633839693703524812'}, 'enable': 'true', 'created': '2026-06-16T15:36:16', 'last-modified': '2026-06-16T15:36:17', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.666059'} 2026-06-16 15:36:18,180 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-06-16 15:36:18,180 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-56395012 passed 2026-06-16 15:36:18,181 - DEBUG - ====Verifying policy data for ctest-vn4-56395012 in API_Server ====== 2026-06-16 15:36:18,181 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2026-06-16 15:36:18,184 - DEBUG - Requesting: http://10.0.0.50:8082/domain/d38d1798-29c0-4f29-92b2-f0c010733fb8 2026-06-16 15:36:18,192 - DEBUG - Requesting: http://10.0.0.50:8082/project/30803e4e-98e9-4acc-baad-ee95d4ddb4ee 2026-06-16 15:36:18,262 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/ada06e49-07c0-4449-a173-b3900d09b1cc 2026-06-16 15:36:18,269 - DEBUG - ==>Verifying data for policy with id: 245c99e2-5052-48c6-a1c8-8244f09aec87, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-36064730', 'ctest-policy1-00909306'] 2026-06-16 15:36:18,269 - INFO - VN ctest-vn4-56395012 Policy verification: verify_vn_policy_in_api_server, status: True 2026-06-16 15:36:18,270 - DEBUG - Verifying the vn in opserver 2026-06-16 15:36:18,270 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-36064730:ctest-vn4-56395012 virtual network link through opserver 10.0.0.50 2026-06-16 15:36:18,270 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks 2026-06-16 15:36:18,580 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks 2026-06-16 15:36:18,627 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-36064730:ctest-vn4-56395012', 'href': 'http://10.0.0.50:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-36064730:ctest-vn4-56395012?flat'} 2026-06-16 15:36:18,627 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-36064730:ctest-vn4-56395012 is found in opserver 2026-06-16 15:36:18,638 - DEBUG - Do not have enough data to verify VN in agent 2026-06-16 15:36:18,642 - DEBUG - VRF ids for VN ctest-vn4-56395012: {} 2026-06-16 15:36:18,642 - DEBUG - ====Verifying data for ctest-policy1-00909306 in API_Server ====== 2026-06-16 15:36:18,642 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2026-06-16 15:36:18,647 - DEBUG - Requesting: http://10.0.0.50:8082/domain/d38d1798-29c0-4f29-92b2-f0c010733fb8 2026-06-16 15:36:18,656 - DEBUG - Requesting: http://10.0.0.50:8082/project/30803e4e-98e9-4acc-baad-ee95d4ddb4ee 2026-06-16 15:36:18,722 - DEBUG - Requesting: http://10.0.0.50:8082/network-policy/245c99e2-5052-48c6-a1c8-8244f09aec87 2026-06-16 15:36:18,731 - INFO - Verified policy ctest-policy1-00909306 in API Server, Result: True 2026-06-16 15:36:18,731 - INFO - Done with setup and verification, moving onto test .. 2026-06-16 15:36:18,737 - INFO - Deleting VN ctest-vn4-56395012 2026-06-16 15:36:18,826 - DEBUG - Response for deleting network () 2026-06-16 15:36:18,826 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/fab86427-07fd-4d6c-a34e-91c172a334d5 2026-06-16 15:36:18,830 - DEBUG - Response Code: 404 2026-06-16 15:36:18,830 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2026-06-16 15:36:18,834 - DEBUG - Requesting: http://10.0.0.50:8082/domain/d38d1798-29c0-4f29-92b2-f0c010733fb8 2026-06-16 15:36:18,883 - DEBUG - Requesting: http://10.0.0.50:8082/project/30803e4e-98e9-4acc-baad-ee95d4ddb4ee 2026-06-16 15:36:18,951 - INFO - Validated that VN ctest-vn4-56395012 is not found in API Server 2026-06-16 15:36:18,959 - DEBUG - VN ctest-vn4-56395012 is not present in Agent 10.0.0.50 2026-06-16 15:36:18,959 - INFO - Validated that VN ctest-vn4-56395012 is not in any agent 2026-06-16 15:36:18,970 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-56395012 info 2026-06-16 15:36:18,989 - INFO - Deleted policy ctest-policy1-00909306 2026-06-16 15:36:19,147 - DEBUG - policy ctest-policy1-00909306 is not found in API Server 2026-06-16 15:36:19,400 - DEBUG - No XMPP flaps were noticed during the test