2026-06-01 15:48:44,230 - INFO - Domain Default found not creating 2026-06-01 15:48:44,396 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-66416444 not found, creating it 2026-06-01 15:48:44,851 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-66416444, ID : 0bae86f6-5280-4edc-8345-9a02d1f9d028 2026-06-01 15:48:46,298 - INFO - ================================================================================ 2026-06-01 15:48:46,299 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-06-01 15:48:46,554 - DEBUG - Nothing to compare xmpp stats {'10.0.0.38': {'10.20.0.18': '0'}} with 2026-06-01 15:48:46,554 - INFO - Initial checks done. Running the testcase now 2026-06-01 15:48:46,554 - INFO - 2026-06-01 15:48:46,555 - INFO - ================================================================================ 2026-06-01 15:48:46,555 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-06-01 15:48:46,555 - 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-06-01 15:48:46,846 - DEBUG - Nothing to compare xmpp stats {'10.0.0.38': {'10.20.0.18': '0'}} with 2026-06-01 15:48:46,846 - INFO - Initial checks done. Running the testcase now 2026-06-01 15:48:46,846 - INFO - 2026-06-01 15:48:47,199 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-66416444:ctest-vn4-60566434, 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-66416444:ctest-vn4-60566434, 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-66416444:ctest-vn4-60566434, 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-66416444:ctest-vn4-60566434, 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-06-01 15:48:47,716 - DEBUG - Response for create_network : {'network': {'id': '1788a7e1-b926-4d55-8b87-c71eb514ce03', 'name': 'ctest-vn4-60566434', 'tenant_id': '0bae86f652804edc83459a02d1f9d028', 'project_id': '0bae86f652804edc83459a02d1f9d028', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-66416444', 'ctest-vn4-60566434'], 'port_security_enabled': True, 'description': ''}} 2026-06-01 15:48:47,874 - DEBUG - Response for create_subnet : {'subnet': {'id': '28fb0561-e890-446f-8da6-d99ea9215e96', 'name': '', 'tenant_id': '0bae86f652804edc83459a02d1f9d028', 'network_id': '1788a7e1-b926-4d55-8b87-c71eb514ce03', 'ip_version': 4, 'cidr': '77.4.153.128/26', 'allocation_pools': [{'start': '77.4.153.130', 'end': '77.4.153.190'}], 'gateway_ip': '77.4.153.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '77.4.153.130', 'tags': [], 'project_id': '0bae86f652804edc83459a02d1f9d028'}} 2026-06-01 15:48:48,021 - DEBUG - Response for create_subnet : {'subnet': {'id': '9090ea79-363e-4463-a895-d233c2c55263', 'name': '', 'tenant_id': '0bae86f652804edc83459a02d1f9d028', 'network_id': '1788a7e1-b926-4d55-8b87-c71eb514ce03', 'ip_version': 6, 'cidr': '3b9d:c717:f17b:7cfe:be98:2c47::/96', 'allocation_pools': [{'start': '3b9d:c717:f17b:7cfe:be98:2c47:0:2', 'end': '3b9d:c717:f17b:7cfe:be98:2c47:ffff:fffe'}], 'gateway_ip': '3b9d:c717:f17b:7cfe:be98:2c47:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '3b9d:c717:f17b:7cfe:be98:2c47:0:2', 'tags': [], 'project_id': '0bae86f652804edc83459a02d1f9d028'}} 2026-06-01 15:48:48,041 - INFO - Created VN ctest-vn4-60566434 2026-06-01 15:48:48,093 - DEBUG - VN ctest-vn4-60566434 UUID is 1788a7e1-b926-4d55-8b87-c71eb514ce03 2026-06-01 15:48:48,291 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '1788a7e1-b926-4d55-8b87-c71eb514ce03', 'name': 'ctest-vn4-60566434', 'tenant_id': '0bae86f652804edc83459a02d1f9d028', 'project_id': '0bae86f652804edc83459a02d1f9d028', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['28fb0561-e890-446f-8da6-d99ea9215e96', '9090ea79-363e-4463-a895-d233c2c55263'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-66416444', 'ctest-vn4-60566434'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-66416444', 'ctest-policy1-81928773']], 'subnet_ipam': [{'subnet_cidr': '77.4.153.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '3b9d:c717:f17b:7cfe:be98:2c47::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2026-06-01 15:48:48,457 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2026-06-01 15:48:48,752 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2026-06-01 15:48:48,781 - DEBUG - Requesting: http://10.0.0.38:8082/domain/8b2a8a80-1e9d-467d-aef7-a6d7d2622cea 2026-06-01 15:48:48,794 - DEBUG - Requesting: http://10.0.0.38:8082/project/0bae86f6-5280-4edc-8345-9a02d1f9d028 2026-06-01 15:48:48,866 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/1788a7e1-b926-4d55-8b87-c71eb514ce03 2026-06-01 15:48:48,880 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/1788a7e1-b926-4d55-8b87-c71eb514ce03 2026-06-01 15:48:48,891 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/cdc6c520-9088-4b38-aa20-96f8d48f06b5 2026-06-01 15:48:48,899 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/cdc6c520-9088-4b38-aa20-96f8d48f06b5 2026-06-01 15:48:48,907 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/43044385-40de-4709-98d4-b5c0cb088cdb 2026-06-01 15:48:48,914 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-06-01 15:48:48,914 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/1788a7e1-b926-4d55-8b87-c71eb514ce03 2026-06-01 15:48:48,925 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/cdc6c520-9088-4b38-aa20-96f8d48f06b5 2026-06-01 15:48:48,942 - INFO - Verified VN network id 11 for VN 1788a7e1-b926-4d55-8b87-c71eb514ce03 2026-06-01 15:48:48,942 - INFO - Verifications in API Server for VN ctest-vn4-60566434 passed 2026-06-01 15:48:48,942 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/1788a7e1-b926-4d55-8b87-c71eb514ce03 2026-06-01 15:48:48,953 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/cdc6c520-9088-4b38-aa20-96f8d48f06b5 2026-06-01 15:48:48,962 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/cdc6c520-9088-4b38-aa20-96f8d48f06b5 2026-06-01 15:48:48,969 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/43044385-40de-4709-98d4-b5c0cb088cdb 2026-06-01 15:48:48,981 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-66416444:ctest-vn4-60566434', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-66416444', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '1695789847620767061', 'uuid-lslong': '10054223627828907523'}, 'enable': 'true', 'created': '2026-06-01T15:48:47', 'last-modified': '2026-06-01T15:48:48', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.715604'} 2026-06-01 15:48:48,988 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-06-01 15:48:48,989 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-60566434 passed 2026-06-01 15:48:48,989 - DEBUG - ====Verifying policy data for ctest-vn4-60566434 in API_Server ====== 2026-06-01 15:48:48,989 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2026-06-01 15:48:48,995 - DEBUG - Requesting: http://10.0.0.38:8082/domain/8b2a8a80-1e9d-467d-aef7-a6d7d2622cea 2026-06-01 15:48:49,006 - DEBUG - Requesting: http://10.0.0.38:8082/project/0bae86f6-5280-4edc-8345-9a02d1f9d028 2026-06-01 15:48:49,073 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/1788a7e1-b926-4d55-8b87-c71eb514ce03 2026-06-01 15:48:49,082 - DEBUG - ==>Verifying data for policy with id: eb3d9c4a-1c1d-4911-85cf-1aa971f2da35, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-66416444', 'ctest-policy1-81928773'] 2026-06-01 15:48:49,082 - INFO - VN ctest-vn4-60566434 Policy verification: verify_vn_policy_in_api_server, status: True 2026-06-01 15:48:49,082 - DEBUG - Verifying the vn in opserver 2026-06-01 15:48:49,082 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-66416444:ctest-vn4-60566434 virtual network link through opserver 10.0.0.38 2026-06-01 15:48:49,082 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks 2026-06-01 15:48:49,374 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks 2026-06-01 15:48:49,434 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-66416444:ctest-vn4-60566434', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-66416444:ctest-vn4-60566434?flat'} 2026-06-01 15:48:49,434 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-66416444:ctest-vn4-60566434 is found in opserver 2026-06-01 15:48:49,445 - DEBUG - Do not have enough data to verify VN in agent 2026-06-01 15:48:49,451 - DEBUG - VRF ids for VN ctest-vn4-60566434: {} 2026-06-01 15:48:49,451 - DEBUG - ====Verifying data for ctest-policy1-81928773 in API_Server ====== 2026-06-01 15:48:49,451 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2026-06-01 15:48:49,457 - DEBUG - Requesting: http://10.0.0.38:8082/domain/8b2a8a80-1e9d-467d-aef7-a6d7d2622cea 2026-06-01 15:48:49,470 - DEBUG - Requesting: http://10.0.0.38:8082/project/0bae86f6-5280-4edc-8345-9a02d1f9d028 2026-06-01 15:48:49,544 - DEBUG - Requesting: http://10.0.0.38:8082/network-policy/eb3d9c4a-1c1d-4911-85cf-1aa971f2da35 2026-06-01 15:48:49,554 - INFO - Verified policy ctest-policy1-81928773 in API Server, Result: True 2026-06-01 15:48:49,554 - INFO - Done with setup and verification, moving onto test .. 2026-06-01 15:48:49,563 - INFO - Deleting VN ctest-vn4-60566434 2026-06-01 15:48:49,683 - DEBUG - Response for deleting network () 2026-06-01 15:48:49,683 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/cdc6c520-9088-4b38-aa20-96f8d48f06b5 2026-06-01 15:48:49,688 - DEBUG - Response Code: 404 2026-06-01 15:48:49,688 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2026-06-01 15:48:49,696 - DEBUG - Requesting: http://10.0.0.38:8082/domain/8b2a8a80-1e9d-467d-aef7-a6d7d2622cea 2026-06-01 15:48:49,749 - DEBUG - Requesting: http://10.0.0.38:8082/project/0bae86f6-5280-4edc-8345-9a02d1f9d028 2026-06-01 15:48:49,819 - INFO - Validated that VN ctest-vn4-60566434 is not found in API Server 2026-06-01 15:48:49,830 - DEBUG - VN ctest-vn4-60566434 is not present in Agent 10.0.0.38 2026-06-01 15:48:49,830 - INFO - Validated that VN ctest-vn4-60566434 is not in any agent 2026-06-01 15:48:49,847 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-60566434 info 2026-06-01 15:48:49,869 - INFO - Deleted policy ctest-policy1-81928773 2026-06-01 15:48:50,029 - DEBUG - policy ctest-policy1-81928773 is not found in API Server 2026-06-01 15:48:50,287 - DEBUG - No XMPP flaps were noticed during the test 2026-06-01 15:48:50,287 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04] 2026-06-01 15:48:50,287 - INFO - -------------------------------------------------------------------------------- 2026-06-01 15:48:50,575 - DEBUG - No XMPP flaps were noticed during the test 2026-06-01 15:48:50,575 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04] 2026-06-01 15:48:50,575 - INFO - -------------------------------------------------------------------------------- 2026-06-01 15:48:51,267 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-66416444, ID : 0bae86f6-5280-4edc-8345-9a02d1f9d028