2026-03-03 16:32:57,462 - INFO - Domain Default found not creating 2026-03-03 16:32:57,652 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-22638092 not found, creating it 2026-03-03 16:32:58,146 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-22638092, ID : 014354cb-5df6-4b1e-8208-06f2ca346e05 2026-03-03 16:32:59,709 - INFO - ================================================================================ 2026-03-03 16:32:59,709 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-03-03 16:32:59,966 - DEBUG - Nothing to compare xmpp stats {'10.0.0.38': {'10.20.0.254': '0'}} with 2026-03-03 16:32:59,966 - INFO - Initial checks done. Running the testcase now 2026-03-03 16:32:59,966 - INFO - 2026-03-03 16:32:59,966 - INFO - ================================================================================ 2026-03-03 16:32:59,966 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-03-03 16:32:59,966 - 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-03-03 16:33:00,266 - DEBUG - Nothing to compare xmpp stats {'10.0.0.38': {'10.20.0.254': '0'}} with 2026-03-03 16:33:00,266 - INFO - Initial checks done. Running the testcase now 2026-03-03 16:33:00,266 - INFO - 2026-03-03 16:33:00,627 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-22638092:ctest-vn4-58228789, 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-22638092:ctest-vn4-58228789, 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-22638092:ctest-vn4-58228789, 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-22638092:ctest-vn4-58228789, 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-03-03 16:33:01,162 - DEBUG - Response for create_network : {'network': {'id': '359bb911-20f6-4181-802e-f9a59ec7084b', 'name': 'ctest-vn4-58228789', 'tenant_id': '014354cb5df64b1e820806f2ca346e05', 'project_id': '014354cb5df64b1e820806f2ca346e05', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-22638092', 'ctest-vn4-58228789'], 'port_security_enabled': True, 'description': ''}} 2026-03-03 16:33:01,394 - DEBUG - Response for create_subnet : {'subnet': {'id': '3096b6c0-645a-4051-8a75-aaabdd726bb9', 'name': '', 'tenant_id': '014354cb5df64b1e820806f2ca346e05', 'network_id': '359bb911-20f6-4181-802e-f9a59ec7084b', 'ip_version': 4, 'cidr': '97.60.73.192/26', 'allocation_pools': [{'start': '97.60.73.194', 'end': '97.60.73.254'}], 'gateway_ip': '97.60.73.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '97.60.73.194', 'tags': [], 'project_id': '014354cb5df64b1e820806f2ca346e05'}} 2026-03-03 16:33:01,563 - DEBUG - Response for create_subnet : {'subnet': {'id': '8b780e0a-28be-4672-8bd9-46277f0d7ae8', 'name': '', 'tenant_id': '014354cb5df64b1e820806f2ca346e05', 'network_id': '359bb911-20f6-4181-802e-f9a59ec7084b', 'ip_version': 6, 'cidr': '21b1:3471:dc2:2930:5fa8:dc8c::/96', 'allocation_pools': [{'start': '21b1:3471:dc2:2930:5fa8:dc8c:0:2', 'end': '21b1:3471:dc2:2930:5fa8:dc8c:ffff:fffe'}], 'gateway_ip': '21b1:3471:dc2:2930:5fa8:dc8c:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '21b1:3471:dc2:2930:5fa8:dc8c:0:2', 'tags': [], 'project_id': '014354cb5df64b1e820806f2ca346e05'}} 2026-03-03 16:33:01,587 - INFO - Created VN ctest-vn4-58228789 2026-03-03 16:33:01,639 - DEBUG - VN ctest-vn4-58228789 UUID is 359bb911-20f6-4181-802e-f9a59ec7084b 2026-03-03 16:33:01,880 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '359bb911-20f6-4181-802e-f9a59ec7084b', 'name': 'ctest-vn4-58228789', 'tenant_id': '014354cb5df64b1e820806f2ca346e05', 'project_id': '014354cb5df64b1e820806f2ca346e05', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['3096b6c0-645a-4051-8a75-aaabdd726bb9', '8b780e0a-28be-4672-8bd9-46277f0d7ae8'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-22638092', 'ctest-vn4-58228789'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-22638092', 'ctest-policy1-94757861']], 'subnet_ipam': [{'subnet_cidr': '97.60.73.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '21b1:3471:dc2:2930:5fa8:dc8c::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2026-03-03 16:33:02,047 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2026-03-03 16:33:02,345 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2026-03-03 16:33:02,382 - DEBUG - Requesting: http://10.0.0.38:8082/domain/b6ee9112-c7ec-4ca0-a0a0-fe1304e94b09 2026-03-03 16:33:02,396 - DEBUG - Requesting: http://10.0.0.38:8082/project/014354cb-5df6-4b1e-8208-06f2ca346e05 2026-03-03 16:33:02,472 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/359bb911-20f6-4181-802e-f9a59ec7084b 2026-03-03 16:33:02,484 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/359bb911-20f6-4181-802e-f9a59ec7084b 2026-03-03 16:33:02,494 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/a77e2693-8c80-460c-b2dc-08381322b814 2026-03-03 16:33:02,502 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/a77e2693-8c80-460c-b2dc-08381322b814 2026-03-03 16:33:02,511 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/3bea7a2e-c590-4de0-a1d9-cc7344a75c8e 2026-03-03 16:33:02,518 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-03-03 16:33:02,518 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/359bb911-20f6-4181-802e-f9a59ec7084b 2026-03-03 16:33:02,528 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/a77e2693-8c80-460c-b2dc-08381322b814 2026-03-03 16:33:02,542 - INFO - Verified VN network id 11 for VN 359bb911-20f6-4181-802e-f9a59ec7084b 2026-03-03 16:33:02,542 - INFO - Verifications in API Server for VN ctest-vn4-58228789 passed 2026-03-03 16:33:02,542 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/359bb911-20f6-4181-802e-f9a59ec7084b 2026-03-03 16:33:02,554 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/a77e2693-8c80-460c-b2dc-08381322b814 2026-03-03 16:33:02,562 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/a77e2693-8c80-460c-b2dc-08381322b814 2026-03-03 16:33:02,569 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/3bea7a2e-c590-4de0-a1d9-cc7344a75c8e 2026-03-03 16:33:02,583 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-22638092:ctest-vn4-58228789', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-22638092', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '3862884588618924417', 'uuid-lslong': '9236594375512229963'}, 'enable': 'true', 'created': '2026-03-03T16:33:01', 'last-modified': '2026-03-03T16:33:01', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.743527'} 2026-03-03 16:33:02,592 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-03-03 16:33:02,592 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-58228789 passed 2026-03-03 16:33:02,592 - DEBUG - ====Verifying policy data for ctest-vn4-58228789 in API_Server ====== 2026-03-03 16:33:02,592 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2026-03-03 16:33:02,599 - DEBUG - Requesting: http://10.0.0.38:8082/domain/b6ee9112-c7ec-4ca0-a0a0-fe1304e94b09 2026-03-03 16:33:02,610 - DEBUG - Requesting: http://10.0.0.38:8082/project/014354cb-5df6-4b1e-8208-06f2ca346e05 2026-03-03 16:33:02,681 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/359bb911-20f6-4181-802e-f9a59ec7084b 2026-03-03 16:33:02,691 - DEBUG - ==>Verifying data for policy with id: c4c508d0-1435-42b3-848c-ba694ff2be5a, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-22638092', 'ctest-policy1-94757861'] 2026-03-03 16:33:02,691 - INFO - VN ctest-vn4-58228789 Policy verification: verify_vn_policy_in_api_server, status: True 2026-03-03 16:33:02,691 - DEBUG - Verifying the vn in opserver 2026-03-03 16:33:02,691 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-22638092:ctest-vn4-58228789 virtual network link through opserver 10.0.0.38 2026-03-03 16:33:02,691 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks 2026-03-03 16:33:02,989 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks 2026-03-03 16:33:03,058 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-22638092:ctest-vn4-58228789', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-22638092:ctest-vn4-58228789?flat'} 2026-03-03 16:33:03,058 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-22638092:ctest-vn4-58228789 is found in opserver 2026-03-03 16:33:03,068 - DEBUG - Do not have enough data to verify VN in agent 2026-03-03 16:33:03,073 - DEBUG - VRF ids for VN ctest-vn4-58228789: {} 2026-03-03 16:33:03,073 - DEBUG - ====Verifying data for ctest-policy1-94757861 in API_Server ====== 2026-03-03 16:33:03,073 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2026-03-03 16:33:03,080 - DEBUG - Requesting: http://10.0.0.38:8082/domain/b6ee9112-c7ec-4ca0-a0a0-fe1304e94b09 2026-03-03 16:33:03,094 - DEBUG - Requesting: http://10.0.0.38:8082/project/014354cb-5df6-4b1e-8208-06f2ca346e05 2026-03-03 16:33:03,162 - DEBUG - Requesting: http://10.0.0.38:8082/network-policy/c4c508d0-1435-42b3-848c-ba694ff2be5a 2026-03-03 16:33:03,173 - INFO - Verified policy ctest-policy1-94757861 in API Server, Result: True 2026-03-03 16:33:03,174 - INFO - Done with setup and verification, moving onto test .. 2026-03-03 16:33:03,181 - INFO - Deleting VN ctest-vn4-58228789 2026-03-03 16:33:03,305 - DEBUG - Response for deleting network () 2026-03-03 16:33:03,306 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/a77e2693-8c80-460c-b2dc-08381322b814 2026-03-03 16:33:03,312 - DEBUG - Response Code: 404 2026-03-03 16:33:03,312 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2026-03-03 16:33:03,318 - DEBUG - Requesting: http://10.0.0.38:8082/domain/b6ee9112-c7ec-4ca0-a0a0-fe1304e94b09 2026-03-03 16:33:03,372 - DEBUG - Requesting: http://10.0.0.38:8082/project/014354cb-5df6-4b1e-8208-06f2ca346e05 2026-03-03 16:33:03,445 - INFO - Validated that VN ctest-vn4-58228789 is not found in API Server 2026-03-03 16:33:03,454 - DEBUG - VN ctest-vn4-58228789 is not present in Agent 10.0.0.38 2026-03-03 16:33:03,454 - INFO - Validated that VN ctest-vn4-58228789 is not in any agent 2026-03-03 16:33:03,471 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-58228789 info 2026-03-03 16:33:03,498 - INFO - Deleted policy ctest-policy1-94757861 2026-03-03 16:33:03,663 - DEBUG - policy ctest-policy1-94757861 is not found in API Server 2026-03-03 16:33:03,927 - DEBUG - No XMPP flaps were noticed during the test 2026-03-03 16:33:03,927 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04] 2026-03-03 16:33:03,928 - INFO - -------------------------------------------------------------------------------- 2026-03-03 16:33:04,213 - DEBUG - No XMPP flaps were noticed during the test 2026-03-03 16:33:04,213 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:05] 2026-03-03 16:33:04,213 - INFO - -------------------------------------------------------------------------------- 2026-03-03 16:33:04,936 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-22638092, ID : 014354cb-5df6-4b1e-8208-06f2ca346e05