2026-08-20 10:53:38,248 - INFO - Domain Default found not creating 2026-08-20 10:53:38,433 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-37969603 not found, creating it 2026-08-20 10:53:38,964 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-37969603, ID : c7707109-91d5-4aa6-a6a5-427d01453bc4 2026-08-20 10:53:40,716 - INFO - ================================================================================ 2026-08-20 10:53:40,717 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-08-20 10:53:40,994 - DEBUG - Nothing to compare xmpp stats {'10.0.0.177': {'10.20.0.14': '0'}} with 2026-08-20 10:53:40,994 - INFO - Initial checks done. Running the testcase now 2026-08-20 10:53:40,994 - INFO - 2026-08-20 10:53:40,994 - INFO - ================================================================================ 2026-08-20 10:53:40,994 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-08-20 10:53:40,995 - 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-08-20 10:53:41,292 - DEBUG - Nothing to compare xmpp stats {'10.0.0.177': {'10.20.0.14': '0'}} with 2026-08-20 10:53:41,292 - INFO - Initial checks done. Running the testcase now 2026-08-20 10:53:41,292 - INFO - 2026-08-20 10:53:41,776 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-37969603:ctest-vn4-13521585, 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-37969603:ctest-vn4-13521585, 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-37969603:ctest-vn4-13521585, 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-37969603:ctest-vn4-13521585, 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-08-20 10:53:42,373 - DEBUG - Response for create_network : {'network': {'id': 'c3f54d7d-f5b6-4c93-8cd9-e61884115ade', 'name': 'ctest-vn4-13521585', 'tenant_id': 'c770710991d54aa6a6a5427d01453bc4', 'project_id': 'c770710991d54aa6a6a5427d01453bc4', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-37969603', 'ctest-vn4-13521585'], 'port_security_enabled': True, 'description': ''}} 2026-08-20 10:53:42,634 - DEBUG - Response for create_subnet : {'subnet': {'id': 'fed8ab11-15fc-4ad5-a3b9-cdff48a93ae1', 'name': '', 'tenant_id': 'c770710991d54aa6a6a5427d01453bc4', 'network_id': 'c3f54d7d-f5b6-4c93-8cd9-e61884115ade', 'ip_version': 4, 'cidr': '149.188.232.128/26', 'allocation_pools': [{'start': '149.188.232.130', 'end': '149.188.232.190'}], 'gateway_ip': '149.188.232.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '149.188.232.130', 'tags': [], 'project_id': 'c770710991d54aa6a6a5427d01453bc4'}} 2026-08-20 10:53:42,878 - DEBUG - Response for create_subnet : {'subnet': {'id': '4e22eb94-baf7-4c5d-a8c9-428022521551', 'name': '', 'tenant_id': 'c770710991d54aa6a6a5427d01453bc4', 'network_id': 'c3f54d7d-f5b6-4c93-8cd9-e61884115ade', 'ip_version': 6, 'cidr': '2954:df60:fdb6:21aa:fc49:86ab::/96', 'allocation_pools': [{'start': '2954:df60:fdb6:21aa:fc49:86ab:0:2', 'end': '2954:df60:fdb6:21aa:fc49:86ab:ffff:fffe'}], 'gateway_ip': '2954:df60:fdb6:21aa:fc49:86ab:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '2954:df60:fdb6:21aa:fc49:86ab:0:2', 'tags': [], 'project_id': 'c770710991d54aa6a6a5427d01453bc4'}} 2026-08-20 10:53:42,900 - INFO - Created VN ctest-vn4-13521585 2026-08-20 10:53:42,954 - DEBUG - VN ctest-vn4-13521585 UUID is c3f54d7d-f5b6-4c93-8cd9-e61884115ade 2026-08-20 10:53:43,198 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'c3f54d7d-f5b6-4c93-8cd9-e61884115ade', 'name': 'ctest-vn4-13521585', 'tenant_id': 'c770710991d54aa6a6a5427d01453bc4', 'project_id': 'c770710991d54aa6a6a5427d01453bc4', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['fed8ab11-15fc-4ad5-a3b9-cdff48a93ae1', '4e22eb94-baf7-4c5d-a8c9-428022521551'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-37969603', 'ctest-vn4-13521585'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-37969603', 'ctest-policy1-35034421']], 'subnet_ipam': [{'subnet_cidr': '149.188.232.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '2954:df60:fdb6:21aa:fc49:86ab::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2026-08-20 10:53:43,363 - DEBUG - Requesting: http://10.0.0.177:8082/domains 2026-08-20 10:53:43,728 - DEBUG - Requesting: http://10.0.0.177:8082/domains 2026-08-20 10:53:43,755 - DEBUG - Requesting: http://10.0.0.177:8082/domain/74d629f6-c250-46e5-ad00-d05ee3889da0 2026-08-20 10:53:43,769 - DEBUG - Requesting: http://10.0.0.177:8082/project/c7707109-91d5-4aa6-a6a5-427d01453bc4 2026-08-20 10:53:43,851 - DEBUG - Requesting: http://10.0.0.177:8082/virtual-network/c3f54d7d-f5b6-4c93-8cd9-e61884115ade 2026-08-20 10:53:43,864 - DEBUG - Requesting: http://10.0.0.177:8082/virtual-network/c3f54d7d-f5b6-4c93-8cd9-e61884115ade 2026-08-20 10:53:43,874 - DEBUG - Requesting: http://10.0.0.177:8082/routing-instance/e5c083c4-0782-410e-ad86-0b52fa9f19bf 2026-08-20 10:53:43,882 - DEBUG - Requesting: http://10.0.0.177:8082/routing-instance/e5c083c4-0782-410e-ad86-0b52fa9f19bf 2026-08-20 10:53:43,888 - DEBUG - Requesting: http://10.0.0.177:8082/route-target/5b02b3be-b85a-4029-9724-464f040d7132 2026-08-20 10:53:43,895 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-08-20 10:53:43,895 - DEBUG - Requesting: http://10.0.0.177:8082/virtual-network/c3f54d7d-f5b6-4c93-8cd9-e61884115ade 2026-08-20 10:53:43,905 - DEBUG - Requesting: http://10.0.0.177:8082/routing-instance/e5c083c4-0782-410e-ad86-0b52fa9f19bf 2026-08-20 10:53:43,919 - INFO - Verified VN network id 11 for VN c3f54d7d-f5b6-4c93-8cd9-e61884115ade 2026-08-20 10:53:43,920 - INFO - Verifications in API Server for VN ctest-vn4-13521585 passed 2026-08-20 10:53:43,920 - DEBUG - Requesting: http://10.0.0.177:8082/virtual-network/c3f54d7d-f5b6-4c93-8cd9-e61884115ade 2026-08-20 10:53:43,933 - DEBUG - Requesting: http://10.0.0.177:8082/routing-instance/e5c083c4-0782-410e-ad86-0b52fa9f19bf 2026-08-20 10:53:43,943 - DEBUG - Requesting: http://10.0.0.177:8082/routing-instance/e5c083c4-0782-410e-ad86-0b52fa9f19bf 2026-08-20 10:53:43,951 - DEBUG - Requesting: http://10.0.0.177:8082/route-target/5b02b3be-b85a-4029-9724-464f040d7132 2026-08-20 10:53:43,964 - DEBUG - Control-node 10.0.0.177 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-37969603:ctest-vn4-13521585', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-37969603', 'owner-access': '7', 'group': 'manager', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '14120277410078674067', 'uuid-lslong': '10149396228225456862'}, 'enable': 'true', 'created': '2026-08-20T10:53:42', 'last-modified': '2026-08-20T10:53:43', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.810567'} 2026-08-20 10:53:43,972 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-08-20 10:53:43,972 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-13521585 passed 2026-08-20 10:53:43,972 - DEBUG - ====Verifying policy data for ctest-vn4-13521585 in API_Server ====== 2026-08-20 10:53:43,972 - DEBUG - Requesting: http://10.0.0.177:8082/domains 2026-08-20 10:53:43,979 - DEBUG - Requesting: http://10.0.0.177:8082/domain/74d629f6-c250-46e5-ad00-d05ee3889da0 2026-08-20 10:53:43,990 - DEBUG - Requesting: http://10.0.0.177:8082/project/c7707109-91d5-4aa6-a6a5-427d01453bc4 2026-08-20 10:53:44,062 - DEBUG - Requesting: http://10.0.0.177:8082/virtual-network/c3f54d7d-f5b6-4c93-8cd9-e61884115ade 2026-08-20 10:53:44,072 - DEBUG - ==>Verifying data for policy with id: e24b3c54-14d8-4c83-af09-38aeda21f4bf, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-37969603', 'ctest-policy1-35034421'] 2026-08-20 10:53:44,072 - INFO - VN ctest-vn4-13521585 Policy verification: verify_vn_policy_in_api_server, status: True 2026-08-20 10:53:44,072 - DEBUG - Verifying the vn in opserver 2026-08-20 10:53:44,073 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-37969603:ctest-vn4-13521585 virtual network link through opserver 10.0.0.177 2026-08-20 10:53:44,073 - DEBUG - Requesting: http://10.0.0.177:8081/analytics/uves/virtual-networks 2026-08-20 10:53:44,439 - DEBUG - Requesting: http://10.0.0.177:8081/analytics/uves/virtual-networks 2026-08-20 10:53:44,497 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-37969603:ctest-vn4-13521585', 'href': 'http://10.0.0.177:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-37969603:ctest-vn4-13521585?flat'} 2026-08-20 10:53:44,497 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-37969603:ctest-vn4-13521585 is found in opserver 2026-08-20 10:53:44,507 - DEBUG - Do not have enough data to verify VN in agent 2026-08-20 10:53:44,512 - DEBUG - VRF ids for VN ctest-vn4-13521585: {} 2026-08-20 10:53:44,512 - DEBUG - ====Verifying data for ctest-policy1-35034421 in API_Server ====== 2026-08-20 10:53:44,512 - DEBUG - Requesting: http://10.0.0.177:8082/domains 2026-08-20 10:53:44,520 - DEBUG - Requesting: http://10.0.0.177:8082/domain/74d629f6-c250-46e5-ad00-d05ee3889da0 2026-08-20 10:53:44,532 - DEBUG - Requesting: http://10.0.0.177:8082/project/c7707109-91d5-4aa6-a6a5-427d01453bc4 2026-08-20 10:53:44,611 - DEBUG - Requesting: http://10.0.0.177:8082/network-policy/e24b3c54-14d8-4c83-af09-38aeda21f4bf 2026-08-20 10:53:44,624 - INFO - Verified policy ctest-policy1-35034421 in API Server, Result: True 2026-08-20 10:53:44,624 - INFO - Done with setup and verification, moving onto test .. 2026-08-20 10:53:44,636 - INFO - Deleting VN ctest-vn4-13521585 2026-08-20 10:53:44,786 - DEBUG - Response for deleting network () 2026-08-20 10:53:44,786 - DEBUG - Requesting: http://10.0.0.177:8082/routing-instance/e5c083c4-0782-410e-ad86-0b52fa9f19bf 2026-08-20 10:53:44,792 - DEBUG - Response Code: 404 2026-08-20 10:53:44,792 - DEBUG - Requesting: http://10.0.0.177:8082/domains 2026-08-20 10:53:44,797 - DEBUG - Requesting: http://10.0.0.177:8082/domain/74d629f6-c250-46e5-ad00-d05ee3889da0 2026-08-20 10:53:44,852 - DEBUG - Requesting: http://10.0.0.177:8082/project/c7707109-91d5-4aa6-a6a5-427d01453bc4 2026-08-20 10:53:44,928 - INFO - Validated that VN ctest-vn4-13521585 is not found in API Server 2026-08-20 10:53:44,938 - DEBUG - VN ctest-vn4-13521585 is not present in Agent 10.0.0.177 2026-08-20 10:53:44,938 - INFO - Validated that VN ctest-vn4-13521585 is not in any agent 2026-08-20 10:53:44,954 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-13521585 info 2026-08-20 10:53:44,980 - INFO - Deleted policy ctest-policy1-35034421 2026-08-20 10:53:45,174 - DEBUG - policy ctest-policy1-35034421 is not found in API Server 2026-08-20 10:53:45,447 - DEBUG - No XMPP flaps were noticed during the test