2026-01-28 16:38:25,709 - INFO - Domain Default found not creating 2026-01-28 16:38:25,869 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-93765394 not found, creating it 2026-01-28 16:38:26,305 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-93765394, ID : 87a08e4a-a979-4567-8e09-e6301b1db085 2026-01-28 16:38:27,759 - INFO - ================================================================================ 2026-01-28 16:38:27,759 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-01-28 16:38:28,012 - DEBUG - Nothing to compare xmpp stats {'10.0.0.242': {'10.20.0.14': '0'}} with 2026-01-28 16:38:28,013 - INFO - Initial checks done. Running the testcase now 2026-01-28 16:38:28,013 - INFO - 2026-01-28 16:38:28,013 - INFO - ================================================================================ 2026-01-28 16:38:28,013 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-01-28 16:38:28,013 - 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-01-28 16:38:28,301 - DEBUG - Nothing to compare xmpp stats {'10.0.0.242': {'10.20.0.14': '0'}} with 2026-01-28 16:38:28,301 - INFO - Initial checks done. Running the testcase now 2026-01-28 16:38:28,301 - INFO - 2026-01-28 16:38:28,652 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-93765394:ctest-vn4-20720777, 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-93765394:ctest-vn4-20720777, 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-93765394:ctest-vn4-20720777, 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-93765394:ctest-vn4-20720777, 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-01-28 16:38:29,134 - DEBUG - Response for create_network : {'network': {'id': 'a395f449-36c8-433a-8d52-2c17a3caa372', 'name': 'ctest-vn4-20720777', 'tenant_id': '87a08e4aa97945678e09e6301b1db085', 'project_id': '87a08e4aa97945678e09e6301b1db085', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-93765394', 'ctest-vn4-20720777'], 'port_security_enabled': True, 'description': ''}} 2026-01-28 16:38:29,291 - DEBUG - Response for create_subnet : {'subnet': {'id': '91581760-8132-4591-a370-9f5e8deb06be', 'name': '', 'tenant_id': '87a08e4aa97945678e09e6301b1db085', 'network_id': 'a395f449-36c8-433a-8d52-2c17a3caa372', 'ip_version': 4, 'cidr': '199.33.73.64/26', 'allocation_pools': [{'start': '199.33.73.66', 'end': '199.33.73.126'}], 'gateway_ip': '199.33.73.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '199.33.73.66', 'tags': [], 'project_id': '87a08e4aa97945678e09e6301b1db085'}} 2026-01-28 16:38:29,436 - DEBUG - Response for create_subnet : {'subnet': {'id': 'bc676ade-22b9-47fd-831f-2681fe0ef82c', 'name': '', 'tenant_id': '87a08e4aa97945678e09e6301b1db085', 'network_id': 'a395f449-36c8-433a-8d52-2c17a3caa372', 'ip_version': 6, 'cidr': '2bcb:beee:ff3c:6186:d30f:c84a::/96', 'allocation_pools': [{'start': '2bcb:beee:ff3c:6186:d30f:c84a:0:2', 'end': '2bcb:beee:ff3c:6186:d30f:c84a:ffff:fffe'}], 'gateway_ip': '2bcb:beee:ff3c:6186:d30f:c84a:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '2bcb:beee:ff3c:6186:d30f:c84a:0:2', 'tags': [], 'project_id': '87a08e4aa97945678e09e6301b1db085'}} 2026-01-28 16:38:29,453 - INFO - Created VN ctest-vn4-20720777 2026-01-28 16:38:29,504 - DEBUG - VN ctest-vn4-20720777 UUID is a395f449-36c8-433a-8d52-2c17a3caa372 2026-01-28 16:38:29,700 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'a395f449-36c8-433a-8d52-2c17a3caa372', 'name': 'ctest-vn4-20720777', 'tenant_id': '87a08e4aa97945678e09e6301b1db085', 'project_id': '87a08e4aa97945678e09e6301b1db085', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['91581760-8132-4591-a370-9f5e8deb06be', 'bc676ade-22b9-47fd-831f-2681fe0ef82c'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-93765394', 'ctest-vn4-20720777'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-93765394', 'ctest-policy1-52473014']], 'subnet_ipam': [{'subnet_cidr': '199.33.73.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '2bcb:beee:ff3c:6186:d30f:c84a::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2026-01-28 16:38:29,856 - DEBUG - Requesting: http://10.0.0.242:8082/domains 2026-01-28 16:38:30,145 - DEBUG - Requesting: http://10.0.0.242:8082/domains 2026-01-28 16:38:30,172 - DEBUG - Requesting: http://10.0.0.242:8082/domain/06a5bb4d-fb89-450d-8f27-1a43db41b1d6 2026-01-28 16:38:30,184 - DEBUG - Requesting: http://10.0.0.242:8082/project/87a08e4a-a979-4567-8e09-e6301b1db085 2026-01-28 16:38:30,256 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/a395f449-36c8-433a-8d52-2c17a3caa372 2026-01-28 16:38:30,267 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/a395f449-36c8-433a-8d52-2c17a3caa372 2026-01-28 16:38:30,277 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/bee153d6-4f79-48f5-b80e-ca4ec260da62 2026-01-28 16:38:30,283 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/bee153d6-4f79-48f5-b80e-ca4ec260da62 2026-01-28 16:38:30,289 - DEBUG - Requesting: http://10.0.0.242:8082/route-target/76ed25ae-335f-40b3-80ae-e1aa2ffc1276 2026-01-28 16:38:30,294 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-01-28 16:38:30,294 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/a395f449-36c8-433a-8d52-2c17a3caa372 2026-01-28 16:38:30,301 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/bee153d6-4f79-48f5-b80e-ca4ec260da62 2026-01-28 16:38:30,312 - INFO - Verified VN network id 9 for VN a395f449-36c8-433a-8d52-2c17a3caa372 2026-01-28 16:38:30,312 - INFO - Verifications in API Server for VN ctest-vn4-20720777 passed 2026-01-28 16:38:30,313 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/a395f449-36c8-433a-8d52-2c17a3caa372 2026-01-28 16:38:30,320 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/bee153d6-4f79-48f5-b80e-ca4ec260da62 2026-01-28 16:38:30,325 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/bee153d6-4f79-48f5-b80e-ca4ec260da62 2026-01-28 16:38:30,330 - DEBUG - Requesting: http://10.0.0.242:8082/route-target/76ed25ae-335f-40b3-80ae-e1aa2ffc1276 2026-01-28 16:38:30,339 - DEBUG - Control-node 10.0.0.242 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-93765394:ctest-vn4-20720777', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-93765394', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '11787596195001025338', 'uuid-lslong': '10183250187481949042'}, 'enable': 'true', 'created': '2026-01-28T16:38:29', 'last-modified': '2026-01-28T16:38:29', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.667937'} 2026-01-28 16:38:30,344 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-01-28 16:38:30,344 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-20720777 passed 2026-01-28 16:38:30,344 - DEBUG - ====Verifying policy data for ctest-vn4-20720777 in API_Server ====== 2026-01-28 16:38:30,344 - DEBUG - Requesting: http://10.0.0.242:8082/domains 2026-01-28 16:38:30,349 - DEBUG - Requesting: http://10.0.0.242:8082/domain/06a5bb4d-fb89-450d-8f27-1a43db41b1d6 2026-01-28 16:38:30,358 - DEBUG - Requesting: http://10.0.0.242:8082/project/87a08e4a-a979-4567-8e09-e6301b1db085 2026-01-28 16:38:30,425 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/a395f449-36c8-433a-8d52-2c17a3caa372 2026-01-28 16:38:30,433 - DEBUG - ==>Verifying data for policy with id: 5fb2283c-6693-441a-9eac-638e7257822e, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-93765394', 'ctest-policy1-52473014'] 2026-01-28 16:38:30,433 - INFO - VN ctest-vn4-20720777 Policy verification: verify_vn_policy_in_api_server, status: True 2026-01-28 16:38:30,433 - DEBUG - Verifying the vn in opserver 2026-01-28 16:38:30,433 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-93765394:ctest-vn4-20720777 virtual network link through opserver 10.0.0.242 2026-01-28 16:38:30,434 - DEBUG - Requesting: http://10.0.0.242:8081/analytics/uves/virtual-networks 2026-01-28 16:38:30,726 - DEBUG - Requesting: http://10.0.0.242:8081/analytics/uves/virtual-networks 2026-01-28 16:38:30,782 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-93765394:ctest-vn4-20720777', 'href': 'http://10.0.0.242:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-93765394:ctest-vn4-20720777?flat'} 2026-01-28 16:38:30,782 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-93765394:ctest-vn4-20720777 is found in opserver 2026-01-28 16:38:30,791 - DEBUG - Do not have enough data to verify VN in agent 2026-01-28 16:38:30,796 - DEBUG - VRF ids for VN ctest-vn4-20720777: {} 2026-01-28 16:38:30,796 - DEBUG - ====Verifying data for ctest-policy1-52473014 in API_Server ====== 2026-01-28 16:38:30,797 - DEBUG - Requesting: http://10.0.0.242:8082/domains 2026-01-28 16:38:30,801 - DEBUG - Requesting: http://10.0.0.242:8082/domain/06a5bb4d-fb89-450d-8f27-1a43db41b1d6 2026-01-28 16:38:30,812 - DEBUG - Requesting: http://10.0.0.242:8082/project/87a08e4a-a979-4567-8e09-e6301b1db085 2026-01-28 16:38:30,883 - DEBUG - Requesting: http://10.0.0.242:8082/network-policy/5fb2283c-6693-441a-9eac-638e7257822e 2026-01-28 16:38:30,892 - INFO - Verified policy ctest-policy1-52473014 in API Server, Result: True 2026-01-28 16:38:30,892 - INFO - Done with setup and verification, moving onto test .. 2026-01-28 16:38:30,899 - INFO - Deleting VN ctest-vn4-20720777 2026-01-28 16:38:31,005 - DEBUG - Response for deleting network () 2026-01-28 16:38:31,005 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/bee153d6-4f79-48f5-b80e-ca4ec260da62 2026-01-28 16:38:31,010 - DEBUG - Response Code: 404 2026-01-28 16:38:31,010 - DEBUG - Requesting: http://10.0.0.242:8082/domains 2026-01-28 16:38:31,015 - DEBUG - Requesting: http://10.0.0.242:8082/domain/06a5bb4d-fb89-450d-8f27-1a43db41b1d6 2026-01-28 16:38:31,069 - DEBUG - Requesting: http://10.0.0.242:8082/project/87a08e4a-a979-4567-8e09-e6301b1db085 2026-01-28 16:38:31,140 - INFO - Validated that VN ctest-vn4-20720777 is not found in API Server 2026-01-28 16:38:31,149 - DEBUG - VN ctest-vn4-20720777 is not present in Agent 10.0.0.242 2026-01-28 16:38:31,149 - INFO - Validated that VN ctest-vn4-20720777 is not in any agent 2026-01-28 16:38:31,162 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-20720777 info 2026-01-28 16:38:31,192 - INFO - Deleted policy ctest-policy1-52473014 2026-01-28 16:38:31,368 - DEBUG - policy ctest-policy1-52473014 is not found in API Server 2026-01-28 16:38:31,625 - DEBUG - No XMPP flaps were noticed during the test