2026-01-28 21:35:40,473 - INFO - Domain Default found not creating 2026-01-28 21:35:40,624 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-81067265 not found, creating it 2026-01-28 21:35:41,133 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-81067265, ID : 6e08452e-3c01-4169-b21b-5d36c67501fc 2026-01-28 21:35:42,595 - INFO - ================================================================================ 2026-01-28 21:35:42,595 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-01-28 21:35:42,853 - DEBUG - Nothing to compare xmpp stats {'10.0.0.38': {'10.20.0.17': '0'}} with 2026-01-28 21:35:42,853 - INFO - Initial checks done. Running the testcase now 2026-01-28 21:35:42,853 - INFO - 2026-01-28 21:35:42,853 - INFO - ================================================================================ 2026-01-28 21:35:42,853 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-01-28 21:35:42,853 - 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 21:35:43,141 - DEBUG - Nothing to compare xmpp stats {'10.0.0.38': {'10.20.0.17': '0'}} with 2026-01-28 21:35:43,141 - INFO - Initial checks done. Running the testcase now 2026-01-28 21:35:43,141 - INFO - 2026-01-28 21:35:43,494 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-81067265:ctest-vn4-72449308, 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-81067265:ctest-vn4-72449308, 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-81067265:ctest-vn4-72449308, 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-81067265:ctest-vn4-72449308, 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 21:35:43,999 - DEBUG - Response for create_network : {'network': {'id': 'ad1b7f54-0a13-440b-9133-1cf3ab4b713b', 'name': 'ctest-vn4-72449308', 'tenant_id': '6e08452e3c014169b21b5d36c67501fc', 'project_id': '6e08452e3c014169b21b5d36c67501fc', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-81067265', 'ctest-vn4-72449308'], 'port_security_enabled': True, 'description': ''}} 2026-01-28 21:35:44,164 - DEBUG - Response for create_subnet : {'subnet': {'id': '1d872b64-a97a-42f1-ad88-41e646b1e079', 'name': '', 'tenant_id': '6e08452e3c014169b21b5d36c67501fc', 'network_id': 'ad1b7f54-0a13-440b-9133-1cf3ab4b713b', 'ip_version': 4, 'cidr': '54.199.194.0/26', 'allocation_pools': [{'start': '54.199.194.2', 'end': '54.199.194.62'}], 'gateway_ip': '54.199.194.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '54.199.194.2', 'tags': [], 'project_id': '6e08452e3c014169b21b5d36c67501fc'}} 2026-01-28 21:35:44,317 - DEBUG - Response for create_subnet : {'subnet': {'id': '4c45c2c7-59c3-496e-ae98-48351ab41d9b', 'name': '', 'tenant_id': '6e08452e3c014169b21b5d36c67501fc', 'network_id': 'ad1b7f54-0a13-440b-9133-1cf3ab4b713b', 'ip_version': 6, 'cidr': '3f04:aae2:8502:763f:b912:8206::/96', 'allocation_pools': [{'start': '3f04:aae2:8502:763f:b912:8206:0:2', 'end': '3f04:aae2:8502:763f:b912:8206:ffff:fffe'}], 'gateway_ip': '3f04:aae2:8502:763f:b912:8206:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '3f04:aae2:8502:763f:b912:8206:0:2', 'tags': [], 'project_id': '6e08452e3c014169b21b5d36c67501fc'}} 2026-01-28 21:35:44,336 - INFO - Created VN ctest-vn4-72449308 2026-01-28 21:35:44,387 - DEBUG - VN ctest-vn4-72449308 UUID is ad1b7f54-0a13-440b-9133-1cf3ab4b713b 2026-01-28 21:35:44,584 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'ad1b7f54-0a13-440b-9133-1cf3ab4b713b', 'name': 'ctest-vn4-72449308', 'tenant_id': '6e08452e3c014169b21b5d36c67501fc', 'project_id': '6e08452e3c014169b21b5d36c67501fc', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['1d872b64-a97a-42f1-ad88-41e646b1e079', '4c45c2c7-59c3-496e-ae98-48351ab41d9b'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-81067265', 'ctest-vn4-72449308'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-81067265', 'ctest-policy1-78870440']], 'subnet_ipam': [{'subnet_cidr': '54.199.194.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '3f04:aae2:8502:763f:b912:8206::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2026-01-28 21:35:44,739 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2026-01-28 21:35:45,033 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2026-01-28 21:35:45,062 - DEBUG - Requesting: http://10.0.0.38:8082/domain/5baedca6-d545-46d8-972e-8d9bb19a5e4c 2026-01-28 21:35:45,074 - DEBUG - Requesting: http://10.0.0.38:8082/project/6e08452e-3c01-4169-b21b-5d36c67501fc 2026-01-28 21:35:45,153 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/ad1b7f54-0a13-440b-9133-1cf3ab4b713b 2026-01-28 21:35:45,165 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/ad1b7f54-0a13-440b-9133-1cf3ab4b713b 2026-01-28 21:35:45,173 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/fdd4de94-5626-4802-8531-955cad4412b5 2026-01-28 21:35:45,178 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/fdd4de94-5626-4802-8531-955cad4412b5 2026-01-28 21:35:45,184 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/a85217f5-2756-42b2-8f92-f8883a2988ac 2026-01-28 21:35:45,189 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-01-28 21:35:45,189 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/ad1b7f54-0a13-440b-9133-1cf3ab4b713b 2026-01-28 21:35:45,196 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/fdd4de94-5626-4802-8531-955cad4412b5 2026-01-28 21:35:45,206 - INFO - Verified VN network id 11 for VN ad1b7f54-0a13-440b-9133-1cf3ab4b713b 2026-01-28 21:35:45,206 - INFO - Verifications in API Server for VN ctest-vn4-72449308 passed 2026-01-28 21:35:45,207 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/ad1b7f54-0a13-440b-9133-1cf3ab4b713b 2026-01-28 21:35:45,214 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/fdd4de94-5626-4802-8531-955cad4412b5 2026-01-28 21:35:45,220 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/fdd4de94-5626-4802-8531-955cad4412b5 2026-01-28 21:35:45,225 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/a85217f5-2756-42b2-8f92-f8883a2988ac 2026-01-28 21:35:45,235 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-81067265:ctest-vn4-72449308', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-81067265', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '12473703591855735819', 'uuid-lslong': '10462738192188272955'}, 'enable': 'true', 'created': '2026-01-28T21:35:43', 'last-modified': '2026-01-28T21:35:44', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.685299'} 2026-01-28 21:35:45,240 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-01-28 21:35:45,240 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-72449308 passed 2026-01-28 21:35:45,241 - DEBUG - ====Verifying policy data for ctest-vn4-72449308 in API_Server ====== 2026-01-28 21:35:45,241 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2026-01-28 21:35:45,245 - DEBUG - Requesting: http://10.0.0.38:8082/domain/5baedca6-d545-46d8-972e-8d9bb19a5e4c 2026-01-28 21:35:45,254 - DEBUG - Requesting: http://10.0.0.38:8082/project/6e08452e-3c01-4169-b21b-5d36c67501fc 2026-01-28 21:35:45,320 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/ad1b7f54-0a13-440b-9133-1cf3ab4b713b 2026-01-28 21:35:45,328 - DEBUG - ==>Verifying data for policy with id: ed664abf-7b55-4dcc-8263-75818fb60cb3, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-81067265', 'ctest-policy1-78870440'] 2026-01-28 21:35:45,328 - INFO - VN ctest-vn4-72449308 Policy verification: verify_vn_policy_in_api_server, status: True 2026-01-28 21:35:45,328 - DEBUG - Verifying the vn in opserver 2026-01-28 21:35:45,328 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-81067265:ctest-vn4-72449308 virtual network link through opserver 10.0.0.38 2026-01-28 21:35:45,328 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks 2026-01-28 21:35:45,619 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks 2026-01-28 21:35:45,680 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-81067265:ctest-vn4-72449308', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-81067265:ctest-vn4-72449308?flat'} 2026-01-28 21:35:45,680 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-81067265:ctest-vn4-72449308 is found in opserver 2026-01-28 21:35:45,689 - DEBUG - Do not have enough data to verify VN in agent 2026-01-28 21:35:45,693 - DEBUG - VRF ids for VN ctest-vn4-72449308: {} 2026-01-28 21:35:45,693 - DEBUG - ====Verifying data for ctest-policy1-78870440 in API_Server ====== 2026-01-28 21:35:45,693 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2026-01-28 21:35:45,698 - DEBUG - Requesting: http://10.0.0.38:8082/domain/5baedca6-d545-46d8-972e-8d9bb19a5e4c 2026-01-28 21:35:45,707 - DEBUG - Requesting: http://10.0.0.38:8082/project/6e08452e-3c01-4169-b21b-5d36c67501fc 2026-01-28 21:35:45,783 - DEBUG - Requesting: http://10.0.0.38:8082/network-policy/ed664abf-7b55-4dcc-8263-75818fb60cb3 2026-01-28 21:35:45,792 - INFO - Verified policy ctest-policy1-78870440 in API Server, Result: True 2026-01-28 21:35:45,792 - INFO - Done with setup and verification, moving onto test .. 2026-01-28 21:35:45,799 - INFO - Deleting VN ctest-vn4-72449308 2026-01-28 21:35:45,914 - DEBUG - Response for deleting network () 2026-01-28 21:35:45,914 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/fdd4de94-5626-4802-8531-955cad4412b5 2026-01-28 21:35:45,918 - DEBUG - Response Code: 404 2026-01-28 21:35:45,918 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2026-01-28 21:35:45,922 - DEBUG - Requesting: http://10.0.0.38:8082/domain/5baedca6-d545-46d8-972e-8d9bb19a5e4c 2026-01-28 21:35:45,976 - DEBUG - Requesting: http://10.0.0.38:8082/project/6e08452e-3c01-4169-b21b-5d36c67501fc 2026-01-28 21:35:46,044 - INFO - Validated that VN ctest-vn4-72449308 is not found in API Server 2026-01-28 21:35:46,053 - DEBUG - VN ctest-vn4-72449308 is not present in Agent 10.0.0.38 2026-01-28 21:35:46,053 - INFO - Validated that VN ctest-vn4-72449308 is not in any agent 2026-01-28 21:35:46,064 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-72449308 info 2026-01-28 21:35:46,087 - INFO - Deleted policy ctest-policy1-78870440 2026-01-28 21:35:46,255 - DEBUG - policy ctest-policy1-78870440 is not found in API Server 2026-01-28 21:35:46,512 - DEBUG - No XMPP flaps were noticed during the test
2026-01-28 21:35:46,513 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04]
2026-01-28 21:35:46,513 - INFO - -------------------------------------------------------------------------------- 2026-01-28 21:35:46,804 - DEBUG - No XMPP flaps were noticed during the test
2026-01-28 21:35:46,804 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04]
2026-01-28 21:35:46,804 - INFO - -------------------------------------------------------------------------------- 2026-01-28 21:35:47,470 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-81067265, ID : 6e08452e-3c01-4169-b21b-5d36c67501fc