2026-01-22 02:03:18,509 - INFO - Domain Default found not creating 2026-01-22 02:03:18,716 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-62830253 not found, creating it 2026-01-22 02:03:19,221 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-62830253, ID : dceece29-e67d-4186-a32b-4063631d17b9 2026-01-22 02:03:20,889 - INFO - ================================================================================ 2026-01-22 02:03:20,889 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-01-22 02:03:21,158 - DEBUG - Nothing to compare xmpp stats {'10.0.0.65': {'10.20.0.249': '0'}} with 2026-01-22 02:03:21,158 - INFO - Initial checks done. Running the testcase now 2026-01-22 02:03:21,158 - INFO - 2026-01-22 02:03:21,158 - INFO - ================================================================================ 2026-01-22 02:03:21,158 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-01-22 02:03:21,158 - 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-22 02:03:21,445 - DEBUG - Nothing to compare xmpp stats {'10.0.0.65': {'10.20.0.249': '0'}} with 2026-01-22 02:03:21,446 - INFO - Initial checks done. Running the testcase now 2026-01-22 02:03:21,446 - INFO - 2026-01-22 02:03:21,836 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-62830253:ctest-vn4-15083611, 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-62830253:ctest-vn4-15083611, 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-62830253:ctest-vn4-15083611, 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-62830253:ctest-vn4-15083611, 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-22 02:03:22,437 - DEBUG - Response for create_network : {'network': {'id': '635c34e4-1304-4da6-8f9e-6695bdd952e5', 'name': 'ctest-vn4-15083611', 'tenant_id': 'dceece29e67d4186a32b4063631d17b9', 'project_id': 'dceece29e67d4186a32b4063631d17b9', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-62830253', 'ctest-vn4-15083611'], 'port_security_enabled': True, 'description': ''}} 2026-01-22 02:03:22,666 - DEBUG - Response for create_subnet : {'subnet': {'id': '61b1e194-ba44-4b7a-a123-0a6ff890a45a', 'name': '', 'tenant_id': 'dceece29e67d4186a32b4063631d17b9', 'network_id': '635c34e4-1304-4da6-8f9e-6695bdd952e5', 'ip_version': 4, 'cidr': '143.158.66.64/26', 'allocation_pools': [{'start': '143.158.66.66', 'end': '143.158.66.126'}], 'gateway_ip': '143.158.66.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '143.158.66.66', 'tags': [], 'project_id': 'dceece29e67d4186a32b4063631d17b9'}} 2026-01-22 02:03:22,845 - DEBUG - Response for create_subnet : {'subnet': {'id': '5f2bafd9-accc-4113-97e8-803f8ffc2bf1', 'name': '', 'tenant_id': 'dceece29e67d4186a32b4063631d17b9', 'network_id': '635c34e4-1304-4da6-8f9e-6695bdd952e5', 'ip_version': 6, 'cidr': '3fde:cd73:23c5:cabe:de60:21dc::/96', 'allocation_pools': [{'start': '3fde:cd73:23c5:cabe:de60:21dc:0:2', 'end': '3fde:cd73:23c5:cabe:de60:21dc:ffff:fffe'}], 'gateway_ip': '3fde:cd73:23c5:cabe:de60:21dc:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '3fde:cd73:23c5:cabe:de60:21dc:0:2', 'tags': [], 'project_id': 'dceece29e67d4186a32b4063631d17b9'}} 2026-01-22 02:03:22,874 - INFO - Created VN ctest-vn4-15083611 2026-01-22 02:03:22,937 - DEBUG - VN ctest-vn4-15083611 UUID is 635c34e4-1304-4da6-8f9e-6695bdd952e5 2026-01-22 02:03:23,239 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '635c34e4-1304-4da6-8f9e-6695bdd952e5', 'name': 'ctest-vn4-15083611', 'tenant_id': 'dceece29e67d4186a32b4063631d17b9', 'project_id': 'dceece29e67d4186a32b4063631d17b9', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['61b1e194-ba44-4b7a-a123-0a6ff890a45a', '5f2bafd9-accc-4113-97e8-803f8ffc2bf1'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-62830253', 'ctest-vn4-15083611'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-62830253', 'ctest-policy1-54974733']], 'subnet_ipam': [{'subnet_cidr': '143.158.66.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '3fde:cd73:23c5:cabe:de60:21dc::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2026-01-22 02:03:23,449 - DEBUG - Requesting: http://10.0.0.65:8082/domains 2026-01-22 02:03:23,774 - DEBUG - Requesting: http://10.0.0.65:8082/domains 2026-01-22 02:03:23,824 - DEBUG - Requesting: http://10.0.0.65:8082/domain/433363ec-f52c-47e7-9beb-05b034478b92 2026-01-22 02:03:23,845 - DEBUG - Requesting: http://10.0.0.65:8082/project/dceece29-e67d-4186-a32b-4063631d17b9 2026-01-22 02:03:23,937 - DEBUG - Requesting: http://10.0.0.65:8082/virtual-network/635c34e4-1304-4da6-8f9e-6695bdd952e5 2026-01-22 02:03:23,954 - DEBUG - Requesting: http://10.0.0.65:8082/virtual-network/635c34e4-1304-4da6-8f9e-6695bdd952e5 2026-01-22 02:03:23,967 - DEBUG - Requesting: http://10.0.0.65:8082/routing-instance/b77f80ce-f7f9-4945-9631-c14633fc2c51 2026-01-22 02:03:23,978 - DEBUG - Requesting: http://10.0.0.65:8082/routing-instance/b77f80ce-f7f9-4945-9631-c14633fc2c51 2026-01-22 02:03:23,988 - DEBUG - Requesting: http://10.0.0.65:8082/route-target/bed30fc3-16f9-4bd2-ad8f-976fcb6cba8f 2026-01-22 02:03:23,997 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-01-22 02:03:23,997 - DEBUG - Requesting: http://10.0.0.65:8082/virtual-network/635c34e4-1304-4da6-8f9e-6695bdd952e5 2026-01-22 02:03:24,010 - DEBUG - Requesting: http://10.0.0.65:8082/routing-instance/b77f80ce-f7f9-4945-9631-c14633fc2c51 2026-01-22 02:03:24,032 - INFO - Verified VN network id 12 for VN 635c34e4-1304-4da6-8f9e-6695bdd952e5 2026-01-22 02:03:24,032 - INFO - Verifications in API Server for VN ctest-vn4-15083611 passed 2026-01-22 02:03:24,032 - DEBUG - Requesting: http://10.0.0.65:8082/virtual-network/635c34e4-1304-4da6-8f9e-6695bdd952e5 2026-01-22 02:03:24,044 - DEBUG - Requesting: http://10.0.0.65:8082/routing-instance/b77f80ce-f7f9-4945-9631-c14633fc2c51 2026-01-22 02:03:24,053 - DEBUG - Requesting: http://10.0.0.65:8082/routing-instance/b77f80ce-f7f9-4945-9631-c14633fc2c51 2026-01-22 02:03:24,063 - DEBUG - Requesting: http://10.0.0.65:8082/route-target/bed30fc3-16f9-4bd2-ad8f-976fcb6cba8f 2026-01-22 02:03:24,084 - DEBUG - Control-node 10.0.0.65 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-62830253:ctest-vn4-15083611', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-62830253', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '7159655661788482982', 'uuid-lslong': '10348821787065275109'}, 'enable': 'true', 'created': '2026-01-22T02:03:22', 'last-modified': '2026-01-22T02:03:23', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.886697'} 2026-01-22 02:03:24,092 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-01-22 02:03:24,092 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-15083611 passed 2026-01-22 02:03:24,092 - DEBUG - ====Verifying policy data for ctest-vn4-15083611 in API_Server ====== 2026-01-22 02:03:24,092 - DEBUG - Requesting: http://10.0.0.65:8082/domains 2026-01-22 02:03:24,101 - DEBUG - Requesting: http://10.0.0.65:8082/domain/433363ec-f52c-47e7-9beb-05b034478b92 2026-01-22 02:03:24,119 - DEBUG - Requesting: http://10.0.0.65:8082/project/dceece29-e67d-4186-a32b-4063631d17b9 2026-01-22 02:03:24,210 - DEBUG - Requesting: http://10.0.0.65:8082/virtual-network/635c34e4-1304-4da6-8f9e-6695bdd952e5 2026-01-22 02:03:24,222 - DEBUG - ==>Verifying data for policy with id: 21719051-539d-4ab2-bc96-4fe291a8d131, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-62830253', 'ctest-policy1-54974733'] 2026-01-22 02:03:24,222 - INFO - VN ctest-vn4-15083611 Policy verification: verify_vn_policy_in_api_server, status: True 2026-01-22 02:03:24,222 - DEBUG - Verifying the vn in opserver 2026-01-22 02:03:24,222 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-62830253:ctest-vn4-15083611 virtual network link through opserver 10.0.0.65 2026-01-22 02:03:24,222 - DEBUG - Requesting: http://10.0.0.65:8081/analytics/uves/virtual-networks 2026-01-22 02:03:24,536 - DEBUG - Requesting: http://10.0.0.65:8081/analytics/uves/virtual-networks 2026-01-22 02:03:24,611 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-62830253:ctest-vn4-15083611', 'href': 'http://10.0.0.65:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-62830253:ctest-vn4-15083611?flat'} 2026-01-22 02:03:24,611 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-62830253:ctest-vn4-15083611 is found in opserver 2026-01-22 02:03:24,626 - DEBUG - Do not have enough data to verify VN in agent 2026-01-22 02:03:24,635 - DEBUG - VRF ids for VN ctest-vn4-15083611: {} 2026-01-22 02:03:24,636 - DEBUG - ====Verifying data for ctest-policy1-54974733 in API_Server ====== 2026-01-22 02:03:24,636 - DEBUG - Requesting: http://10.0.0.65:8082/domains 2026-01-22 02:03:24,643 - DEBUG - Requesting: http://10.0.0.65:8082/domain/433363ec-f52c-47e7-9beb-05b034478b92 2026-01-22 02:03:24,658 - DEBUG - Requesting: http://10.0.0.65:8082/project/dceece29-e67d-4186-a32b-4063631d17b9 2026-01-22 02:03:24,739 - DEBUG - Requesting: http://10.0.0.65:8082/network-policy/21719051-539d-4ab2-bc96-4fe291a8d131 2026-01-22 02:03:24,750 - INFO - Verified policy ctest-policy1-54974733 in API Server, Result: True 2026-01-22 02:03:24,750 - INFO - Done with setup and verification, moving onto test .. 2026-01-22 02:03:24,760 - INFO - Deleting VN ctest-vn4-15083611 2026-01-22 02:03:24,922 - DEBUG - Response for deleting network () 2026-01-22 02:03:24,922 - DEBUG - Requesting: http://10.0.0.65:8082/routing-instance/b77f80ce-f7f9-4945-9631-c14633fc2c51 2026-01-22 02:03:24,929 - DEBUG - Response Code: 404 2026-01-22 02:03:24,929 - DEBUG - Requesting: http://10.0.0.65:8082/domains 2026-01-22 02:03:24,936 - DEBUG - Requesting: http://10.0.0.65:8082/domain/433363ec-f52c-47e7-9beb-05b034478b92 2026-01-22 02:03:24,993 - DEBUG - Requesting: http://10.0.0.65:8082/project/dceece29-e67d-4186-a32b-4063631d17b9 2026-01-22 02:03:25,072 - INFO - Validated that VN ctest-vn4-15083611 is not found in API Server 2026-01-22 02:03:25,086 - DEBUG - VN ctest-vn4-15083611 is not present in Agent 10.0.0.65 2026-01-22 02:03:25,086 - INFO - Validated that VN ctest-vn4-15083611 is not in any agent 2026-01-22 02:03:25,107 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-15083611 info 2026-01-22 02:03:25,140 - INFO - Deleted policy ctest-policy1-54974733 2026-01-22 02:03:25,321 - DEBUG - policy ctest-policy1-54974733 is not found in API Server 2026-01-22 02:03:25,592 - DEBUG - No XMPP flaps were noticed during the test
2026-01-22 02:03:25,592 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04]
2026-01-22 02:03:25,592 - INFO - -------------------------------------------------------------------------------- 2026-01-22 02:03:25,890 - DEBUG - No XMPP flaps were noticed during the test
2026-01-22 02:03:25,891 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:05]
2026-01-22 02:03:25,891 - INFO - -------------------------------------------------------------------------------- 2026-01-22 02:03:26,587 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-62830253, ID : dceece29-e67d-4186-a32b-4063631d17b9