2026-11-30 10:06:06,724 - INFO - Domain Default found not creating 2026-11-30 10:06:06,900 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-00701097 not found, creating it 2026-11-30 10:06:07,353 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-00701097, ID : b7e4a2c0-a634-4826-9704-3e29b9242694 2026-11-30 10:06:09,095 - INFO - ================================================================================ 2026-11-30 10:06:09,095 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-11-30 10:06:09,357 - DEBUG - Nothing to compare xmpp stats {'10.0.0.177': {'10.20.0.25': '0'}} with 2026-11-30 10:06:09,357 - INFO - Initial checks done. Running the testcase now 2026-11-30 10:06:09,357 - INFO - 2026-11-30 10:06:09,357 - INFO - ================================================================================ 2026-11-30 10:06:09,357 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-11-30 10:06:09,357 - 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-11-30 10:06:09,654 - DEBUG - Nothing to compare xmpp stats {'10.0.0.177': {'10.20.0.25': '0'}} with 2026-11-30 10:06:09,654 - INFO - Initial checks done. Running the testcase now 2026-11-30 10:06:09,654 - INFO - 2026-11-30 10:06:10,086 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-00701097:ctest-vn4-18097023, 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-00701097:ctest-vn4-18097023, 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-00701097:ctest-vn4-18097023, 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-00701097:ctest-vn4-18097023, 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-11-30 10:06:10,596 - DEBUG - Response for create_network : {'network': {'id': '4b66f6da-4b4d-4c7b-b9c6-3117ea9928f4', 'name': 'ctest-vn4-18097023', 'tenant_id': 'b7e4a2c0a634482697043e29b9242694', 'project_id': 'b7e4a2c0a634482697043e29b9242694', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'tags': [], 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-00701097', 'ctest-vn4-18097023'], 'port_security_enabled': True, 'description': ''}} 2026-11-30 10:06:10,756 - DEBUG - Response for create_subnet : {'subnet': {'id': '263025dd-9ade-4166-9a1b-0c2973783447', 'name': '', 'tenant_id': 'b7e4a2c0a634482697043e29b9242694', 'network_id': '4b66f6da-4b4d-4c7b-b9c6-3117ea9928f4', 'ip_version': 4, 'cidr': '223.166.216.128/26', 'allocation_pools': [{'start': '223.166.216.130', 'end': '223.166.216.190'}], 'gateway_ip': '223.166.216.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '223.166.216.130', 'tags': [], 'project_id': 'b7e4a2c0a634482697043e29b9242694'}} 2026-11-30 10:06:10,944 - DEBUG - Response for create_subnet : {'subnet': {'id': '0d1fe3b0-7f64-45d8-9cab-a81b753c97c2', 'name': '', 'tenant_id': 'b7e4a2c0a634482697043e29b9242694', 'network_id': '4b66f6da-4b4d-4c7b-b9c6-3117ea9928f4', 'ip_version': 6, 'cidr': '3d0e:cd4c:561:1d80:95fc:2a68::/96', 'allocation_pools': [{'start': '3d0e:cd4c:561:1d80:95fc:2a68:0:2', 'end': '3d0e:cd4c:561:1d80:95fc:2a68:ffff:fffe'}], 'gateway_ip': '3d0e:cd4c:561:1d80:95fc:2a68:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '3d0e:cd4c:561:1d80:95fc:2a68:0:2', 'tags': [], 'project_id': 'b7e4a2c0a634482697043e29b9242694'}} 2026-11-30 10:06:10,963 - INFO - Created VN ctest-vn4-18097023 2026-11-30 10:06:11,019 - DEBUG - VN ctest-vn4-18097023 UUID is 4b66f6da-4b4d-4c7b-b9c6-3117ea9928f4 2026-11-30 10:06:11,208 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '4b66f6da-4b4d-4c7b-b9c6-3117ea9928f4', 'name': 'ctest-vn4-18097023', 'tenant_id': 'b7e4a2c0a634482697043e29b9242694', 'project_id': 'b7e4a2c0a634482697043e29b9242694', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'tags': [], 'subnets': ['263025dd-9ade-4166-9a1b-0c2973783447', '0d1fe3b0-7f64-45d8-9cab-a81b753c97c2'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-00701097', 'ctest-vn4-18097023'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-00701097', 'ctest-policy1-02988942']], 'subnet_ipam': [{'subnet_cidr': '223.166.216.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '3d0e:cd4c:561:1d80:95fc:2a68::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2026-11-30 10:06:11,367 - DEBUG - Requesting: http://10.0.0.177:8082/domains 2026-11-30 10:06:11,736 - DEBUG - Requesting: http://10.0.0.177:8082/domains 2026-11-30 10:06:11,764 - DEBUG - Requesting: http://10.0.0.177:8082/domain/e57af8ce-9534-4b77-8b29-8894f5f9bba0 2026-11-30 10:06:11,777 - DEBUG - Requesting: http://10.0.0.177:8082/project/b7e4a2c0-a634-4826-9704-3e29b9242694 2026-11-30 10:06:11,860 - DEBUG - Requesting: http://10.0.0.177:8082/virtual-network/4b66f6da-4b4d-4c7b-b9c6-3117ea9928f4 2026-11-30 10:06:11,875 - DEBUG - Requesting: http://10.0.0.177:8082/virtual-network/4b66f6da-4b4d-4c7b-b9c6-3117ea9928f4 2026-11-30 10:06:11,889 - DEBUG - Requesting: http://10.0.0.177:8082/routing-instance/7e2eec24-f01a-480c-84f3-ba5cc372b299 2026-11-30 10:06:11,899 - DEBUG - Requesting: http://10.0.0.177:8082/routing-instance/7e2eec24-f01a-480c-84f3-ba5cc372b299 2026-11-30 10:06:11,907 - DEBUG - Requesting: http://10.0.0.177:8082/route-target/6e0f3963-3e39-4ecd-8405-c81cc85e027f 2026-11-30 10:06:11,914 - DEBUG - Route Targets: ['target:64512:8000005'] 2026-11-30 10:06:11,914 - DEBUG - Requesting: http://10.0.0.177:8082/virtual-network/4b66f6da-4b4d-4c7b-b9c6-3117ea9928f4 2026-11-30 10:06:11,923 - DEBUG - Requesting: http://10.0.0.177:8082/routing-instance/7e2eec24-f01a-480c-84f3-ba5cc372b299 2026-11-30 10:06:11,937 - INFO - Verified VN network id 12 for VN 4b66f6da-4b4d-4c7b-b9c6-3117ea9928f4 2026-11-30 10:06:11,937 - INFO - Verifications in API Server for VN ctest-vn4-18097023 passed 2026-11-30 10:06:11,937 - DEBUG - Requesting: http://10.0.0.177:8082/virtual-network/4b66f6da-4b4d-4c7b-b9c6-3117ea9928f4 2026-11-30 10:06:11,947 - DEBUG - Requesting: http://10.0.0.177:8082/routing-instance/7e2eec24-f01a-480c-84f3-ba5cc372b299 2026-11-30 10:06:11,954 - DEBUG - Requesting: http://10.0.0.177:8082/routing-instance/7e2eec24-f01a-480c-84f3-ba5cc372b299 2026-11-30 10:06:11,961 - DEBUG - Requesting: http://10.0.0.177:8082/route-target/6e0f3963-3e39-4ecd-8405-c81cc85e027f 2026-11-30 10:06:11,973 - DEBUG - Control-node 10.0.0.177 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-00701097:ctest-vn4-18097023', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-00701097', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '5433301417895742587', 'uuid-lslong': '13386440921195292916'}, 'enable': 'true', 'created': '2026-11-30T10:06:10', 'last-modified': '2026-11-30T10:06:11', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.789171'} 2026-11-30 10:06:11,980 - DEBUG - Route Targets: ['target:64512:8000005'] 2026-11-30 10:06:11,980 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-18097023 passed 2026-11-30 10:06:11,980 - DEBUG - ====Verifying policy data for ctest-vn4-18097023 in API_Server ====== 2026-11-30 10:06:11,981 - DEBUG - Requesting: http://10.0.0.177:8082/domains 2026-11-30 10:06:11,986 - DEBUG - Requesting: http://10.0.0.177:8082/domain/e57af8ce-9534-4b77-8b29-8894f5f9bba0 2026-11-30 10:06:11,997 - DEBUG - Requesting: http://10.0.0.177:8082/project/b7e4a2c0-a634-4826-9704-3e29b9242694 2026-11-30 10:06:12,066 - DEBUG - Requesting: http://10.0.0.177:8082/virtual-network/4b66f6da-4b4d-4c7b-b9c6-3117ea9928f4 2026-11-30 10:06:12,076 - DEBUG - ==>Verifying data for policy with id: 4f6c9c71-387d-4347-baec-f35c1c92e522, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-00701097', 'ctest-policy1-02988942'] 2026-11-30 10:06:12,076 - INFO - VN ctest-vn4-18097023 Policy verification: verify_vn_policy_in_api_server, status: True 2026-11-30 10:06:12,076 - DEBUG - Verifying the vn in opserver 2026-11-30 10:06:12,077 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-00701097:ctest-vn4-18097023 virtual network link through opserver 10.0.0.177 2026-11-30 10:06:12,077 - DEBUG - Requesting: http://10.0.0.177:8081/analytics/uves/virtual-networks 2026-11-30 10:06:12,441 - DEBUG - Requesting: http://10.0.0.177:8081/analytics/uves/virtual-networks 2026-11-30 10:06:12,493 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-00701097:ctest-vn4-18097023', 'href': 'http://10.0.0.177:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-00701097:ctest-vn4-18097023?flat'} 2026-11-30 10:06:12,493 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-00701097:ctest-vn4-18097023 is found in opserver 2026-11-30 10:06:12,504 - DEBUG - Do not have enough data to verify VN in agent 2026-11-30 10:06:12,509 - DEBUG - VRF ids for VN ctest-vn4-18097023: {} 2026-11-30 10:06:12,510 - DEBUG - ====Verifying data for ctest-policy1-02988942 in API_Server ====== 2026-11-30 10:06:12,510 - DEBUG - Requesting: http://10.0.0.177:8082/domains 2026-11-30 10:06:12,516 - DEBUG - Requesting: http://10.0.0.177:8082/domain/e57af8ce-9534-4b77-8b29-8894f5f9bba0 2026-11-30 10:06:12,527 - DEBUG - Requesting: http://10.0.0.177:8082/project/b7e4a2c0-a634-4826-9704-3e29b9242694 2026-11-30 10:06:12,599 - DEBUG - Requesting: http://10.0.0.177:8082/network-policy/4f6c9c71-387d-4347-baec-f35c1c92e522 2026-11-30 10:06:12,609 - INFO - Verified policy ctest-policy1-02988942 in API Server, Result: True 2026-11-30 10:06:12,609 - INFO - Done with setup and verification, moving onto test .. 2026-11-30 10:06:12,617 - INFO - Deleting VN ctest-vn4-18097023 2026-11-30 10:06:12,721 - DEBUG - Response for deleting network () 2026-11-30 10:06:12,721 - DEBUG - Requesting: http://10.0.0.177:8082/routing-instance/7e2eec24-f01a-480c-84f3-ba5cc372b299 2026-11-30 10:06:12,726 - DEBUG - Response Code: 404 2026-11-30 10:06:12,726 - DEBUG - Requesting: http://10.0.0.177:8082/domains 2026-11-30 10:06:12,731 - DEBUG - Requesting: http://10.0.0.177:8082/domain/e57af8ce-9534-4b77-8b29-8894f5f9bba0 2026-11-30 10:06:12,784 - DEBUG - Requesting: http://10.0.0.177:8082/project/b7e4a2c0-a634-4826-9704-3e29b9242694 2026-11-30 10:06:12,855 - INFO - Validated that VN ctest-vn4-18097023 is not found in API Server 2026-11-30 10:06:12,870 - DEBUG - VN ctest-vn4-18097023 is not present in Agent 10.0.0.177 2026-11-30 10:06:12,870 - INFO - Validated that VN ctest-vn4-18097023 is not in any agent 2026-11-30 10:06:12,885 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-18097023 info 2026-11-30 10:06:12,910 - INFO - Deleted policy ctest-policy1-02988942 2026-11-30 10:06:13,079 - DEBUG - policy ctest-policy1-02988942 is not found in API Server 2026-11-30 10:06:13,343 - DEBUG - No XMPP flaps were noticed during the test