2026-06-01 16:55:58,142 - INFO - Domain Default found not creating 2026-06-01 16:55:58,325 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-92644382 not found, creating it 2026-06-01 16:55:58,787 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-92644382, ID : 9db4deeb-d843-4495-aa6b-9f2fbd1ffbfd 2026-06-01 16:56:00,287 - INFO - ================================================================================ 2026-06-01 16:56:00,287 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-06-01 16:56:00,547 - DEBUG - Nothing to compare xmpp stats {'10.0.0.38': {'10.20.0.129': '0'}} with 2026-06-01 16:56:00,547 - INFO - Initial checks done. Running the testcase now 2026-06-01 16:56:00,548 - INFO - 2026-06-01 16:56:00,548 - INFO - ================================================================================ 2026-06-01 16:56:00,548 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-06-01 16:56:00,548 - 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 16:56:00,836 - DEBUG - Nothing to compare xmpp stats {'10.0.0.38': {'10.20.0.129': '0'}} with 2026-06-01 16:56:00,836 - INFO - Initial checks done. Running the testcase now 2026-06-01 16:56:00,836 - INFO - 2026-06-01 16:56:01,204 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-92644382:ctest-vn4-75421591, 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-92644382:ctest-vn4-75421591, 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-92644382:ctest-vn4-75421591, 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-92644382:ctest-vn4-75421591, 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 16:56:01,727 - DEBUG - Response for create_network : {'network': {'id': '58bb41a7-e94d-4a43-bdca-bdf793a914d1', 'name': 'ctest-vn4-75421591', 'tenant_id': '9db4deebd8434495aa6b9f2fbd1ffbfd', 'project_id': '9db4deebd8434495aa6b9f2fbd1ffbfd', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-92644382', 'ctest-vn4-75421591'], 'port_security_enabled': True, 'description': ''}} 2026-06-01 16:56:01,918 - DEBUG - Response for create_subnet : {'subnet': {'id': '505b269f-7926-4455-8eb0-5292f4e9428b', 'name': '', 'tenant_id': '9db4deebd8434495aa6b9f2fbd1ffbfd', 'network_id': '58bb41a7-e94d-4a43-bdca-bdf793a914d1', 'ip_version': 4, 'cidr': '87.197.250.64/26', 'allocation_pools': [{'start': '87.197.250.66', 'end': '87.197.250.126'}], 'gateway_ip': '87.197.250.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '87.197.250.66', 'tags': [], 'project_id': '9db4deebd8434495aa6b9f2fbd1ffbfd'}} 2026-06-01 16:56:02,075 - DEBUG - Response for create_subnet : {'subnet': {'id': 'c202d1bd-7e3d-4422-9a32-7805bcbcaf9b', 'name': '', 'tenant_id': '9db4deebd8434495aa6b9f2fbd1ffbfd', 'network_id': '58bb41a7-e94d-4a43-bdca-bdf793a914d1', 'ip_version': 6, 'cidr': '3a6f:f0ef:94f7:aeee:8a5e:fe22::/96', 'allocation_pools': [{'start': '3a6f:f0ef:94f7:aeee:8a5e:fe22:0:2', 'end': '3a6f:f0ef:94f7:aeee:8a5e:fe22:ffff:fffe'}], 'gateway_ip': '3a6f:f0ef:94f7:aeee:8a5e:fe22:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '3a6f:f0ef:94f7:aeee:8a5e:fe22:0:2', 'tags': [], 'project_id': '9db4deebd8434495aa6b9f2fbd1ffbfd'}} 2026-06-01 16:56:02,095 - INFO - Created VN ctest-vn4-75421591 2026-06-01 16:56:02,148 - DEBUG - VN ctest-vn4-75421591 UUID is 58bb41a7-e94d-4a43-bdca-bdf793a914d1 2026-06-01 16:56:02,360 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '58bb41a7-e94d-4a43-bdca-bdf793a914d1', 'name': 'ctest-vn4-75421591', 'tenant_id': '9db4deebd8434495aa6b9f2fbd1ffbfd', 'project_id': '9db4deebd8434495aa6b9f2fbd1ffbfd', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['505b269f-7926-4455-8eb0-5292f4e9428b', 'c202d1bd-7e3d-4422-9a32-7805bcbcaf9b'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-92644382', 'ctest-vn4-75421591'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-92644382', 'ctest-policy1-40757864']], 'subnet_ipam': [{'subnet_cidr': '87.197.250.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '3a6f:f0ef:94f7:aeee:8a5e:fe22::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2026-06-01 16:56:02,528 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2026-06-01 16:56:02,824 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2026-06-01 16:56:02,856 - DEBUG - Requesting: http://10.0.0.38:8082/domain/0d44d57d-20aa-4b4e-84cd-9570c3803a31 2026-06-01 16:56:02,871 - DEBUG - Requesting: http://10.0.0.38:8082/project/9db4deeb-d843-4495-aa6b-9f2fbd1ffbfd 2026-06-01 16:56:02,942 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/58bb41a7-e94d-4a43-bdca-bdf793a914d1 2026-06-01 16:56:02,959 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/58bb41a7-e94d-4a43-bdca-bdf793a914d1 2026-06-01 16:56:02,970 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/664b2780-58ad-4d60-8911-5c8be1c11c3f 2026-06-01 16:56:02,977 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/664b2780-58ad-4d60-8911-5c8be1c11c3f 2026-06-01 16:56:02,988 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/31848dbe-d32d-4b5f-b898-5c8da384f390 2026-06-01 16:56:02,995 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-06-01 16:56:02,995 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/58bb41a7-e94d-4a43-bdca-bdf793a914d1 2026-06-01 16:56:03,005 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/664b2780-58ad-4d60-8911-5c8be1c11c3f 2026-06-01 16:56:03,021 - INFO - Verified VN network id 11 for VN 58bb41a7-e94d-4a43-bdca-bdf793a914d1 2026-06-01 16:56:03,021 - INFO - Verifications in API Server for VN ctest-vn4-75421591 passed 2026-06-01 16:56:03,021 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/58bb41a7-e94d-4a43-bdca-bdf793a914d1 2026-06-01 16:56:03,031 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/664b2780-58ad-4d60-8911-5c8be1c11c3f 2026-06-01 16:56:03,037 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/664b2780-58ad-4d60-8911-5c8be1c11c3f 2026-06-01 16:56:03,045 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/31848dbe-d32d-4b5f-b898-5c8da384f390 2026-06-01 16:56:03,056 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-92644382:ctest-vn4-75421591', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-92644382', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '6393776285412051523', 'uuid-lslong': '13675952089495835857'}, 'enable': 'true', 'created': '2026-06-01T16:56:01', 'last-modified': '2026-06-01T16:56:02', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.712873'} 2026-06-01 16:56:03,062 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-06-01 16:56:03,063 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-75421591 passed 2026-06-01 16:56:03,063 - DEBUG - ====Verifying policy data for ctest-vn4-75421591 in API_Server ====== 2026-06-01 16:56:03,063 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2026-06-01 16:56:03,068 - DEBUG - Requesting: http://10.0.0.38:8082/domain/0d44d57d-20aa-4b4e-84cd-9570c3803a31 2026-06-01 16:56:03,086 - DEBUG - Requesting: http://10.0.0.38:8082/project/9db4deeb-d843-4495-aa6b-9f2fbd1ffbfd 2026-06-01 16:56:03,163 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/58bb41a7-e94d-4a43-bdca-bdf793a914d1 2026-06-01 16:56:03,172 - DEBUG - ==>Verifying data for policy with id: 7ed0a76d-fd94-413e-a15f-afbeb7110ea5, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-92644382', 'ctest-policy1-40757864'] 2026-06-01 16:56:03,172 - INFO - VN ctest-vn4-75421591 Policy verification: verify_vn_policy_in_api_server, status: True 2026-06-01 16:56:03,172 - DEBUG - Verifying the vn in opserver 2026-06-01 16:56:03,172 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-92644382:ctest-vn4-75421591 virtual network link through opserver 10.0.0.38 2026-06-01 16:56:03,172 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks 2026-06-01 16:56:03,470 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks 2026-06-01 16:56:03,540 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-92644382:ctest-vn4-75421591', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-92644382:ctest-vn4-75421591?flat'} 2026-06-01 16:56:03,540 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-92644382:ctest-vn4-75421591 is found in opserver 2026-06-01 16:56:03,550 - DEBUG - Do not have enough data to verify VN in agent 2026-06-01 16:56:03,556 - DEBUG - VRF ids for VN ctest-vn4-75421591: {} 2026-06-01 16:56:03,556 - DEBUG - ====Verifying data for ctest-policy1-40757864 in API_Server ====== 2026-06-01 16:56:03,556 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2026-06-01 16:56:03,562 - DEBUG - Requesting: http://10.0.0.38:8082/domain/0d44d57d-20aa-4b4e-84cd-9570c3803a31 2026-06-01 16:56:03,573 - DEBUG - Requesting: http://10.0.0.38:8082/project/9db4deeb-d843-4495-aa6b-9f2fbd1ffbfd 2026-06-01 16:56:03,641 - DEBUG - Requesting: http://10.0.0.38:8082/network-policy/7ed0a76d-fd94-413e-a15f-afbeb7110ea5 2026-06-01 16:56:03,650 - INFO - Verified policy ctest-policy1-40757864 in API Server, Result: True 2026-06-01 16:56:03,651 - INFO - Done with setup and verification, moving onto test .. 2026-06-01 16:56:03,659 - INFO - Deleting VN ctest-vn4-75421591 2026-06-01 16:56:03,783 - DEBUG - Response for deleting network () 2026-06-01 16:56:03,783 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/664b2780-58ad-4d60-8911-5c8be1c11c3f 2026-06-01 16:56:03,788 - DEBUG - Response Code: 404 2026-06-01 16:56:03,788 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2026-06-01 16:56:03,793 - DEBUG - Requesting: http://10.0.0.38:8082/domain/0d44d57d-20aa-4b4e-84cd-9570c3803a31 2026-06-01 16:56:03,845 - DEBUG - Requesting: http://10.0.0.38:8082/project/9db4deeb-d843-4495-aa6b-9f2fbd1ffbfd 2026-06-01 16:56:03,916 - INFO - Validated that VN ctest-vn4-75421591 is not found in API Server 2026-06-01 16:56:03,927 - DEBUG - VN ctest-vn4-75421591 is not present in Agent 10.0.0.38 2026-06-01 16:56:03,927 - INFO - Validated that VN ctest-vn4-75421591 is not in any agent 2026-06-01 16:56:03,943 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-75421591 info 2026-06-01 16:56:03,964 - INFO - Deleted policy ctest-policy1-40757864 2026-06-01 16:56:04,128 - DEBUG - policy ctest-policy1-40757864 is not found in API Server 2026-06-01 16:56:04,390 - DEBUG - No XMPP flaps were noticed during the test