2026-11-05 18:04:37,608 - INFO - Domain Default found not creating 2026-11-05 18:04:37,792 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-92304895 not found, creating it 2026-11-05 18:04:38,294 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-92304895, ID : ceecc230-51de-4787-a0ec-d8911cbc531d 2026-11-05 18:04:39,939 - INFO - ================================================================================ 2026-11-05 18:04:39,939 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-11-05 18:04:40,199 - DEBUG - Nothing to compare xmpp stats {'10.0.0.38': {'10.20.0.25': '0'}} with 2026-11-05 18:04:40,199 - INFO - Initial checks done. Running the testcase now 2026-11-05 18:04:40,199 - INFO - 2026-11-05 18:04:40,199 - INFO - ================================================================================ 2026-11-05 18:04:40,199 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-11-05 18:04:40,200 - 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-05 18:04:40,494 - DEBUG - Nothing to compare xmpp stats {'10.0.0.38': {'10.20.0.25': '0'}} with 2026-11-05 18:04:40,494 - INFO - Initial checks done. Running the testcase now 2026-11-05 18:04:40,494 - INFO - 2026-11-05 18:04:40,896 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-92304895:ctest-vn4-41915853, 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-92304895:ctest-vn4-41915853, 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-92304895:ctest-vn4-41915853, 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-92304895:ctest-vn4-41915853, 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-05 18:04:41,455 - DEBUG - Response for create_network : {'network': {'id': 'ea1678a6-f964-4f52-a14e-356c108749bb', 'name': 'ctest-vn4-41915853', 'tenant_id': 'ceecc23051de4787a0ecd8911cbc531d', 'project_id': 'ceecc23051de4787a0ecd8911cbc531d', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'tags': [], 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-92304895', 'ctest-vn4-41915853'], 'port_security_enabled': True, 'description': ''}} 2026-11-05 18:04:41,613 - DEBUG - Response for create_subnet : {'subnet': {'id': '6e7944a5-c3d8-49a5-b07c-5d46010a0613', 'name': '', 'tenant_id': 'ceecc23051de4787a0ecd8911cbc531d', 'network_id': 'ea1678a6-f964-4f52-a14e-356c108749bb', 'ip_version': 4, 'cidr': '75.137.105.0/26', 'allocation_pools': [{'start': '75.137.105.2', 'end': '75.137.105.62'}], 'gateway_ip': '75.137.105.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '75.137.105.2', 'tags': [], 'project_id': 'ceecc23051de4787a0ecd8911cbc531d'}} 2026-11-05 18:04:41,801 - DEBUG - Response for create_subnet : {'subnet': {'id': '4ee9fb9a-3a5d-484b-b2ed-7d997d986db3', 'name': '', 'tenant_id': 'ceecc23051de4787a0ecd8911cbc531d', 'network_id': 'ea1678a6-f964-4f52-a14e-356c108749bb', 'ip_version': 6, 'cidr': '3417:1ea1:1bfa:6ed3:9cef:5544::/96', 'allocation_pools': [{'start': '3417:1ea1:1bfa:6ed3:9cef:5544:0:2', 'end': '3417:1ea1:1bfa:6ed3:9cef:5544:ffff:fffe'}], 'gateway_ip': '3417:1ea1:1bfa:6ed3:9cef:5544:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '3417:1ea1:1bfa:6ed3:9cef:5544:0:2', 'tags': [], 'project_id': 'ceecc23051de4787a0ecd8911cbc531d'}} 2026-11-05 18:04:41,818 - INFO - Created VN ctest-vn4-41915853 2026-11-05 18:04:41,868 - DEBUG - VN ctest-vn4-41915853 UUID is ea1678a6-f964-4f52-a14e-356c108749bb 2026-11-05 18:04:42,074 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'ea1678a6-f964-4f52-a14e-356c108749bb', 'name': 'ctest-vn4-41915853', 'tenant_id': 'ceecc23051de4787a0ecd8911cbc531d', 'project_id': 'ceecc23051de4787a0ecd8911cbc531d', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'tags': [], 'subnets': ['6e7944a5-c3d8-49a5-b07c-5d46010a0613', '4ee9fb9a-3a5d-484b-b2ed-7d997d986db3'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-92304895', 'ctest-vn4-41915853'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-92304895', 'ctest-policy1-11366185']], 'subnet_ipam': [{'subnet_cidr': '75.137.105.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '3417:1ea1:1bfa:6ed3:9cef:5544::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2026-11-05 18:04:42,233 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2026-11-05 18:04:42,569 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2026-11-05 18:04:42,600 - DEBUG - Requesting: http://10.0.0.38:8082/domain/78d1aae8-0a5e-4ba8-910c-081207712475 2026-11-05 18:04:42,613 - DEBUG - Requesting: http://10.0.0.38:8082/project/ceecc230-51de-4787-a0ec-d8911cbc531d 2026-11-05 18:04:42,695 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/ea1678a6-f964-4f52-a14e-356c108749bb 2026-11-05 18:04:42,706 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/ea1678a6-f964-4f52-a14e-356c108749bb 2026-11-05 18:04:42,715 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/21eac444-f601-4b2b-b225-cd309d2b557b 2026-11-05 18:04:42,722 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/21eac444-f601-4b2b-b225-cd309d2b557b 2026-11-05 18:04:42,728 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/9fb89b71-7fdd-4c3b-beaa-49eb60440e96 2026-11-05 18:04:42,734 - DEBUG - Route Targets: ['target:64512:8000005'] 2026-11-05 18:04:42,734 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/ea1678a6-f964-4f52-a14e-356c108749bb 2026-11-05 18:04:42,744 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/21eac444-f601-4b2b-b225-cd309d2b557b 2026-11-05 18:04:42,758 - INFO - Verified VN network id 10 for VN ea1678a6-f964-4f52-a14e-356c108749bb 2026-11-05 18:04:42,758 - INFO - Verifications in API Server for VN ctest-vn4-41915853 passed 2026-11-05 18:04:42,758 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/ea1678a6-f964-4f52-a14e-356c108749bb 2026-11-05 18:04:42,767 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/21eac444-f601-4b2b-b225-cd309d2b557b 2026-11-05 18:04:42,774 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/21eac444-f601-4b2b-b225-cd309d2b557b 2026-11-05 18:04:42,780 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/9fb89b71-7fdd-4c3b-beaa-49eb60440e96 2026-11-05 18:04:42,792 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-92304895:ctest-vn4-41915853', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-92304895', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '16867802112906776402', 'uuid-lslong': '11623286426539870651'}, 'enable': 'true', 'created': '2026-11-05T18:04:41', 'last-modified': '2026-11-05T18:04:42', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.748375'} 2026-11-05 18:04:42,798 - DEBUG - Route Targets: ['target:64512:8000005'] 2026-11-05 18:04:42,798 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-41915853 passed 2026-11-05 18:04:42,798 - DEBUG - ====Verifying policy data for ctest-vn4-41915853 in API_Server ====== 2026-11-05 18:04:42,798 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2026-11-05 18:04:42,803 - DEBUG - Requesting: http://10.0.0.38:8082/domain/78d1aae8-0a5e-4ba8-910c-081207712475 2026-11-05 18:04:42,813 - DEBUG - Requesting: http://10.0.0.38:8082/project/ceecc230-51de-4787-a0ec-d8911cbc531d 2026-11-05 18:04:42,900 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/ea1678a6-f964-4f52-a14e-356c108749bb 2026-11-05 18:04:42,909 - DEBUG - ==>Verifying data for policy with id: 33f47ec9-437c-41bc-a486-7f2fe499e803, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-92304895', 'ctest-policy1-11366185'] 2026-11-05 18:04:42,909 - INFO - VN ctest-vn4-41915853 Policy verification: verify_vn_policy_in_api_server, status: True 2026-11-05 18:04:42,909 - DEBUG - Verifying the vn in opserver 2026-11-05 18:04:42,909 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-92304895:ctest-vn4-41915853 virtual network link through opserver 10.0.0.38 2026-11-05 18:04:42,910 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks 2026-11-05 18:04:43,234 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks 2026-11-05 18:04:43,291 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-92304895:ctest-vn4-41915853', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-92304895:ctest-vn4-41915853?flat'} 2026-11-05 18:04:43,291 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-92304895:ctest-vn4-41915853 is found in opserver 2026-11-05 18:04:43,305 - DEBUG - Do not have enough data to verify VN in agent 2026-11-05 18:04:43,309 - DEBUG - VRF ids for VN ctest-vn4-41915853: {} 2026-11-05 18:04:43,309 - DEBUG - ====Verifying data for ctest-policy1-11366185 in API_Server ====== 2026-11-05 18:04:43,309 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2026-11-05 18:04:43,316 - DEBUG - Requesting: http://10.0.0.38:8082/domain/78d1aae8-0a5e-4ba8-910c-081207712475 2026-11-05 18:04:43,328 - DEBUG - Requesting: http://10.0.0.38:8082/project/ceecc230-51de-4787-a0ec-d8911cbc531d 2026-11-05 18:04:43,402 - DEBUG - Requesting: http://10.0.0.38:8082/network-policy/33f47ec9-437c-41bc-a486-7f2fe499e803 2026-11-05 18:04:43,411 - INFO - Verified policy ctest-policy1-11366185 in API Server, Result: True 2026-11-05 18:04:43,411 - INFO - Done with setup and verification, moving onto test .. 2026-11-05 18:04:43,419 - INFO - Deleting VN ctest-vn4-41915853 2026-11-05 18:04:43,545 - DEBUG - Response for deleting network () 2026-11-05 18:04:43,545 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/21eac444-f601-4b2b-b225-cd309d2b557b 2026-11-05 18:04:43,556 - DEBUG - Response Code: 404 2026-11-05 18:04:43,556 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2026-11-05 18:04:43,566 - DEBUG - Requesting: http://10.0.0.38:8082/domain/78d1aae8-0a5e-4ba8-910c-081207712475 2026-11-05 18:04:43,617 - DEBUG - Requesting: http://10.0.0.38:8082/project/ceecc230-51de-4787-a0ec-d8911cbc531d 2026-11-05 18:04:43,701 - INFO - Validated that VN ctest-vn4-41915853 is not found in API Server 2026-11-05 18:04:43,712 - DEBUG - VN ctest-vn4-41915853 is not present in Agent 10.0.0.38 2026-11-05 18:04:43,712 - INFO - Validated that VN ctest-vn4-41915853 is not in any agent 2026-11-05 18:04:43,726 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-41915853 info 2026-11-05 18:04:43,750 - INFO - Deleted policy ctest-policy1-11366185 2026-11-05 18:04:43,908 - DEBUG - policy ctest-policy1-11366185 is not found in API Server 2026-11-05 18:04:44,164 - DEBUG - No XMPP flaps were noticed during the test
2026-11-05 18:04:44,164 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04]
2026-11-05 18:04:44,164 - INFO - -------------------------------------------------------------------------------- 2026-11-05 18:04:44,450 - DEBUG - No XMPP flaps were noticed during the test
2026-11-05 18:04:44,450 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:05]
2026-11-05 18:04:44,450 - INFO - -------------------------------------------------------------------------------- 2026-11-05 18:04:45,180 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-92304895, ID : ceecc230-51de-4787-a0ec-d8911cbc531d