2026-05-18 02:25:15,096 - INFO - Domain Default found not creating 2026-05-18 02:25:15,270 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-20450842 not found, creating it 2026-05-18 02:25:15,746 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-20450842, ID : 35c9ec50-d72b-483a-bd0e-05e8221959c6 2026-05-18 02:25:17,251 - INFO - ================================================================================ 2026-05-18 02:25:17,252 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-05-18 02:25:17,519 - DEBUG - Nothing to compare xmpp stats {'10.0.0.249': {'10.20.0.201': '0'}} with 2026-05-18 02:25:17,519 - INFO - Initial checks done. Running the testcase now 2026-05-18 02:25:17,519 - INFO - 2026-05-18 02:25:17,519 - INFO - ================================================================================ 2026-05-18 02:25:17,519 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-05-18 02:25:17,519 - 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-05-18 02:25:17,817 - DEBUG - Nothing to compare xmpp stats {'10.0.0.249': {'10.20.0.201': '0'}} with 2026-05-18 02:25:17,817 - INFO - Initial checks done. Running the testcase now 2026-05-18 02:25:17,817 - INFO - 2026-05-18 02:25:18,203 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-20450842:ctest-vn4-27013814, 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-20450842:ctest-vn4-27013814, 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-20450842:ctest-vn4-27013814, 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-20450842:ctest-vn4-27013814, 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-05-18 02:25:18,730 - DEBUG - Response for create_network : {'network': {'id': '89d4ab10-fd95-4bd5-929b-33c543c47bc7', 'name': 'ctest-vn4-27013814', 'tenant_id': '35c9ec50d72b483abd0e05e8221959c6', 'project_id': '35c9ec50d72b483abd0e05e8221959c6', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-20450842', 'ctest-vn4-27013814'], 'port_security_enabled': True, 'description': ''}} 2026-05-18 02:25:18,931 - DEBUG - Response for create_subnet : {'subnet': {'id': 'f7b07e72-0470-4ad2-9bf0-1398bcbf9116', 'name': '', 'tenant_id': '35c9ec50d72b483abd0e05e8221959c6', 'network_id': '89d4ab10-fd95-4bd5-929b-33c543c47bc7', 'ip_version': 4, 'cidr': '133.218.1.128/26', 'allocation_pools': [{'start': '133.218.1.130', 'end': '133.218.1.190'}], 'gateway_ip': '133.218.1.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '133.218.1.130', 'tags': [], 'project_id': '35c9ec50d72b483abd0e05e8221959c6'}} 2026-05-18 02:25:19,141 - DEBUG - Response for create_subnet : {'subnet': {'id': 'fbdb2362-d0e4-4437-b058-6caee171f798', 'name': '', 'tenant_id': '35c9ec50d72b483abd0e05e8221959c6', 'network_id': '89d4ab10-fd95-4bd5-929b-33c543c47bc7', 'ip_version': 6, 'cidr': '2f38:5f34:6e48:a270:93e1:e6e7::/96', 'allocation_pools': [{'start': '2f38:5f34:6e48:a270:93e1:e6e7:0:2', 'end': '2f38:5f34:6e48:a270:93e1:e6e7:ffff:fffe'}], 'gateway_ip': '2f38:5f34:6e48:a270:93e1:e6e7:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '2f38:5f34:6e48:a270:93e1:e6e7:0:2', 'tags': [], 'project_id': '35c9ec50d72b483abd0e05e8221959c6'}} 2026-05-18 02:25:19,161 - INFO - Created VN ctest-vn4-27013814 2026-05-18 02:25:19,214 - DEBUG - VN ctest-vn4-27013814 UUID is 89d4ab10-fd95-4bd5-929b-33c543c47bc7 2026-05-18 02:25:19,443 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '89d4ab10-fd95-4bd5-929b-33c543c47bc7', 'name': 'ctest-vn4-27013814', 'tenant_id': '35c9ec50d72b483abd0e05e8221959c6', 'project_id': '35c9ec50d72b483abd0e05e8221959c6', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['f7b07e72-0470-4ad2-9bf0-1398bcbf9116', 'fbdb2362-d0e4-4437-b058-6caee171f798'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-20450842', 'ctest-vn4-27013814'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-20450842', 'ctest-policy1-44490602']], 'subnet_ipam': [{'subnet_cidr': '133.218.1.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '2f38:5f34:6e48:a270:93e1:e6e7::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2026-05-18 02:25:19,610 - DEBUG - Requesting: http://10.0.0.249:8082/domains 2026-05-18 02:25:19,924 - DEBUG - Requesting: http://10.0.0.249:8082/domains 2026-05-18 02:25:19,962 - DEBUG - Requesting: http://10.0.0.249:8082/domain/fb18f509-312e-488c-a3b4-d50130bfdb3a 2026-05-18 02:25:19,975 - DEBUG - Requesting: http://10.0.0.249:8082/project/35c9ec50-d72b-483a-bd0e-05e8221959c6 2026-05-18 02:25:20,050 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/89d4ab10-fd95-4bd5-929b-33c543c47bc7 2026-05-18 02:25:20,062 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/89d4ab10-fd95-4bd5-929b-33c543c47bc7 2026-05-18 02:25:20,073 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/e42272b3-fdaa-40b4-88bf-23005b983846 2026-05-18 02:25:20,080 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/e42272b3-fdaa-40b4-88bf-23005b983846 2026-05-18 02:25:20,087 - DEBUG - Requesting: http://10.0.0.249:8082/route-target/ca1b3661-2301-4a9c-860c-c4479e94d4e0 2026-05-18 02:25:20,093 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-05-18 02:25:20,093 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/89d4ab10-fd95-4bd5-929b-33c543c47bc7 2026-05-18 02:25:20,101 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/e42272b3-fdaa-40b4-88bf-23005b983846 2026-05-18 02:25:20,118 - INFO - Verified VN network id 11 for VN 89d4ab10-fd95-4bd5-929b-33c543c47bc7 2026-05-18 02:25:20,118 - INFO - Verifications in API Server for VN ctest-vn4-27013814 passed 2026-05-18 02:25:20,118 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/89d4ab10-fd95-4bd5-929b-33c543c47bc7 2026-05-18 02:25:20,127 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/e42272b3-fdaa-40b4-88bf-23005b983846 2026-05-18 02:25:20,134 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/e42272b3-fdaa-40b4-88bf-23005b983846 2026-05-18 02:25:20,141 - DEBUG - Requesting: http://10.0.0.249:8082/route-target/ca1b3661-2301-4a9c-860c-c4479e94d4e0 2026-05-18 02:25:20,153 - DEBUG - Control-node 10.0.0.249 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-20450842:ctest-vn4-27013814', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-20450842', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '9931751167721032661', 'uuid-lslong': '10564094273266154439'}, 'enable': 'true', 'created': '2026-05-18T02:25:18', 'last-modified': '2026-05-18T02:25:19', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.748945'} 2026-05-18 02:25:20,159 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-05-18 02:25:20,159 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-27013814 passed 2026-05-18 02:25:20,159 - DEBUG - ====Verifying policy data for ctest-vn4-27013814 in API_Server ====== 2026-05-18 02:25:20,159 - DEBUG - Requesting: http://10.0.0.249:8082/domains 2026-05-18 02:25:20,165 - DEBUG - Requesting: http://10.0.0.249:8082/domain/fb18f509-312e-488c-a3b4-d50130bfdb3a 2026-05-18 02:25:20,177 - DEBUG - Requesting: http://10.0.0.249:8082/project/35c9ec50-d72b-483a-bd0e-05e8221959c6 2026-05-18 02:25:20,252 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/89d4ab10-fd95-4bd5-929b-33c543c47bc7 2026-05-18 02:25:20,264 - DEBUG - ==>Verifying data for policy with id: 278fc4b8-4b2d-473e-ab76-b77f73f23a56, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-20450842', 'ctest-policy1-44490602'] 2026-05-18 02:25:20,264 - INFO - VN ctest-vn4-27013814 Policy verification: verify_vn_policy_in_api_server, status: True 2026-05-18 02:25:20,264 - DEBUG - Verifying the vn in opserver 2026-05-18 02:25:20,264 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-20450842:ctest-vn4-27013814 virtual network link through opserver 10.0.0.249 2026-05-18 02:25:20,264 - DEBUG - Requesting: http://10.0.0.249:8081/analytics/uves/virtual-networks 2026-05-18 02:25:20,584 - DEBUG - Requesting: http://10.0.0.249:8081/analytics/uves/virtual-networks 2026-05-18 02:25:20,647 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-20450842:ctest-vn4-27013814', 'href': 'http://10.0.0.249:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-20450842:ctest-vn4-27013814?flat'} 2026-05-18 02:25:20,647 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-20450842:ctest-vn4-27013814 is found in opserver 2026-05-18 02:25:20,658 - DEBUG - Do not have enough data to verify VN in agent 2026-05-18 02:25:20,664 - DEBUG - VRF ids for VN ctest-vn4-27013814: {} 2026-05-18 02:25:20,664 - DEBUG - ====Verifying data for ctest-policy1-44490602 in API_Server ====== 2026-05-18 02:25:20,664 - DEBUG - Requesting: http://10.0.0.249:8082/domains 2026-05-18 02:25:20,670 - DEBUG - Requesting: http://10.0.0.249:8082/domain/fb18f509-312e-488c-a3b4-d50130bfdb3a 2026-05-18 02:25:20,681 - DEBUG - Requesting: http://10.0.0.249:8082/project/35c9ec50-d72b-483a-bd0e-05e8221959c6 2026-05-18 02:25:20,756 - DEBUG - Requesting: http://10.0.0.249:8082/network-policy/278fc4b8-4b2d-473e-ab76-b77f73f23a56 2026-05-18 02:25:20,766 - INFO - Verified policy ctest-policy1-44490602 in API Server, Result: True 2026-05-18 02:25:20,766 - INFO - Done with setup and verification, moving onto test .. 2026-05-18 02:25:20,774 - INFO - Deleting VN ctest-vn4-27013814 2026-05-18 02:25:20,890 - DEBUG - Response for deleting network () 2026-05-18 02:25:20,890 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/e42272b3-fdaa-40b4-88bf-23005b983846 2026-05-18 02:25:20,895 - DEBUG - Response Code: 404 2026-05-18 02:25:20,895 - DEBUG - Requesting: http://10.0.0.249:8082/domains 2026-05-18 02:25:20,903 - DEBUG - Requesting: http://10.0.0.249:8082/domain/fb18f509-312e-488c-a3b4-d50130bfdb3a 2026-05-18 02:25:20,955 - DEBUG - Requesting: http://10.0.0.249:8082/project/35c9ec50-d72b-483a-bd0e-05e8221959c6 2026-05-18 02:25:21,030 - INFO - Validated that VN ctest-vn4-27013814 is not found in API Server 2026-05-18 02:25:21,041 - DEBUG - VN ctest-vn4-27013814 is not present in Agent 10.0.0.249 2026-05-18 02:25:21,041 - INFO - Validated that VN ctest-vn4-27013814 is not in any agent 2026-05-18 02:25:21,064 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-27013814 info 2026-05-18 02:25:21,100 - INFO - Deleted policy ctest-policy1-44490602 2026-05-18 02:25:21,270 - DEBUG - policy ctest-policy1-44490602 is not found in API Server 2026-05-18 02:25:21,533 - DEBUG - No XMPP flaps were noticed during the test 2026-05-18 02:25:21,533 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04] 2026-05-18 02:25:21,533 - INFO - -------------------------------------------------------------------------------- 2026-05-18 02:25:21,826 - DEBUG - No XMPP flaps were noticed during the test 2026-05-18 02:25:21,826 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04] 2026-05-18 02:25:21,827 - INFO - -------------------------------------------------------------------------------- 2026-05-18 02:25:22,513 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-20450842, ID : 35c9ec50-d72b-483a-bd0e-05e8221959c6