2026-02-05 02:07:00,549 - INFO - Domain Default found not creating 2026-02-05 02:07:00,720 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-24603610 not found, creating it 2026-02-05 02:07:01,190 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-24603610, ID : 96aa1fb0-2ad0-4692-b89f-42f803abca62 2026-02-05 02:07:02,662 - INFO - ================================================================================ 2026-02-05 02:07:02,662 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-02-05 02:07:02,915 - DEBUG - Nothing to compare xmpp stats {'10.0.0.141': {'10.20.0.254': '0'}} with 2026-02-05 02:07:02,915 - INFO - Initial checks done. Running the testcase now 2026-02-05 02:07:02,915 - INFO - 2026-02-05 02:07:02,915 - INFO - ================================================================================ 2026-02-05 02:07:02,915 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-02-05 02:07:02,915 - 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-02-05 02:07:03,203 - DEBUG - Nothing to compare xmpp stats {'10.0.0.141': {'10.20.0.254': '0'}} with 2026-02-05 02:07:03,203 - INFO - Initial checks done. Running the testcase now 2026-02-05 02:07:03,203 - INFO - 2026-02-05 02:07:03,554 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-24603610:ctest-vn4-34691382, 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-24603610:ctest-vn4-34691382, 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-24603610:ctest-vn4-34691382, 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-24603610:ctest-vn4-34691382, 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-02-05 02:07:04,071 - DEBUG - Response for create_network : {'network': {'id': 'a7ee4737-3e4e-4417-9437-5be94774b3c5', 'name': 'ctest-vn4-34691382', 'tenant_id': '96aa1fb02ad04692b89f42f803abca62', 'project_id': '96aa1fb02ad04692b89f42f803abca62', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-24603610', 'ctest-vn4-34691382'], 'port_security_enabled': True, 'description': ''}} 2026-02-05 02:07:04,225 - DEBUG - Response for create_subnet : {'subnet': {'id': '6c9d0925-b3fe-4a9f-8edc-6ef35f5f51e5', 'name': '', 'tenant_id': '96aa1fb02ad04692b89f42f803abca62', 'network_id': 'a7ee4737-3e4e-4417-9437-5be94774b3c5', 'ip_version': 4, 'cidr': '96.83.233.0/26', 'allocation_pools': [{'start': '96.83.233.2', 'end': '96.83.233.62'}], 'gateway_ip': '96.83.233.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '96.83.233.2', 'tags': [], 'project_id': '96aa1fb02ad04692b89f42f803abca62'}} 2026-02-05 02:07:04,403 - DEBUG - Response for create_subnet : {'subnet': {'id': '65991e29-ae48-46da-a585-6c55c848e66e', 'name': '', 'tenant_id': '96aa1fb02ad04692b89f42f803abca62', 'network_id': 'a7ee4737-3e4e-4417-9437-5be94774b3c5', 'ip_version': 6, 'cidr': '200d:7d9b:e268:6aa5:33b3:f6b::/96', 'allocation_pools': [{'start': '200d:7d9b:e268:6aa5:33b3:f6b:0:2', 'end': '200d:7d9b:e268:6aa5:33b3:f6b:ffff:fffe'}], 'gateway_ip': '200d:7d9b:e268:6aa5:33b3:f6b:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '200d:7d9b:e268:6aa5:33b3:f6b:0:2', 'tags': [], 'project_id': '96aa1fb02ad04692b89f42f803abca62'}} 2026-02-05 02:07:04,421 - INFO - Created VN ctest-vn4-34691382 2026-02-05 02:07:04,470 - DEBUG - VN ctest-vn4-34691382 UUID is a7ee4737-3e4e-4417-9437-5be94774b3c5 2026-02-05 02:07:04,673 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'a7ee4737-3e4e-4417-9437-5be94774b3c5', 'name': 'ctest-vn4-34691382', 'tenant_id': '96aa1fb02ad04692b89f42f803abca62', 'project_id': '96aa1fb02ad04692b89f42f803abca62', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['6c9d0925-b3fe-4a9f-8edc-6ef35f5f51e5', '65991e29-ae48-46da-a585-6c55c848e66e'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-24603610', 'ctest-vn4-34691382'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-24603610', 'ctest-policy1-09177507']], 'subnet_ipam': [{'subnet_cidr': '96.83.233.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '200d:7d9b:e268:6aa5:33b3:f6b::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2026-02-05 02:07:04,834 - DEBUG - Requesting: http://10.0.0.141:8082/domains 2026-02-05 02:07:05,127 - DEBUG - Requesting: http://10.0.0.141:8082/domains 2026-02-05 02:07:05,156 - DEBUG - Requesting: http://10.0.0.141:8082/domain/ae6883c1-449b-4b50-8248-b540c9036a3e 2026-02-05 02:07:05,168 - DEBUG - Requesting: http://10.0.0.141:8082/project/96aa1fb0-2ad0-4692-b89f-42f803abca62 2026-02-05 02:07:05,238 - DEBUG - Requesting: http://10.0.0.141:8082/virtual-network/a7ee4737-3e4e-4417-9437-5be94774b3c5 2026-02-05 02:07:05,249 - DEBUG - Requesting: http://10.0.0.141:8082/virtual-network/a7ee4737-3e4e-4417-9437-5be94774b3c5 2026-02-05 02:07:05,258 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/7ef9c94a-7c9a-489a-b4d6-4fec96cc970b 2026-02-05 02:07:05,265 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/7ef9c94a-7c9a-489a-b4d6-4fec96cc970b 2026-02-05 02:07:05,272 - DEBUG - Requesting: http://10.0.0.141:8082/route-target/b4954501-5c90-452a-8b2a-673e5d0bf1dd 2026-02-05 02:07:05,279 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-02-05 02:07:05,279 - DEBUG - Requesting: http://10.0.0.141:8082/virtual-network/a7ee4737-3e4e-4417-9437-5be94774b3c5 2026-02-05 02:07:05,289 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/7ef9c94a-7c9a-489a-b4d6-4fec96cc970b 2026-02-05 02:07:05,306 - INFO - Verified VN network id 11 for VN a7ee4737-3e4e-4417-9437-5be94774b3c5 2026-02-05 02:07:05,306 - INFO - Verifications in API Server for VN ctest-vn4-34691382 passed 2026-02-05 02:07:05,306 - DEBUG - Requesting: http://10.0.0.141:8082/virtual-network/a7ee4737-3e4e-4417-9437-5be94774b3c5 2026-02-05 02:07:05,315 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/7ef9c94a-7c9a-489a-b4d6-4fec96cc970b 2026-02-05 02:07:05,322 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/7ef9c94a-7c9a-489a-b4d6-4fec96cc970b 2026-02-05 02:07:05,328 - DEBUG - Requesting: http://10.0.0.141:8082/route-target/b4954501-5c90-452a-8b2a-673e5d0bf1dd 2026-02-05 02:07:05,342 - DEBUG - Control-node 10.0.0.141 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-24603610:ctest-vn4-34691382', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-24603610', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '12100687551385191447', 'uuid-lslong': '10680106098816758725'}, 'enable': 'true', 'created': '2026-02-05T02:07:04', 'last-modified': '2026-02-05T02:07:04', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.703660'} 2026-02-05 02:07:05,349 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-02-05 02:07:05,349 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-34691382 passed 2026-02-05 02:07:05,349 - DEBUG - ====Verifying policy data for ctest-vn4-34691382 in API_Server ====== 2026-02-05 02:07:05,349 - DEBUG - Requesting: http://10.0.0.141:8082/domains 2026-02-05 02:07:05,355 - DEBUG - Requesting: http://10.0.0.141:8082/domain/ae6883c1-449b-4b50-8248-b540c9036a3e 2026-02-05 02:07:05,365 - DEBUG - Requesting: http://10.0.0.141:8082/project/96aa1fb0-2ad0-4692-b89f-42f803abca62 2026-02-05 02:07:05,436 - DEBUG - Requesting: http://10.0.0.141:8082/virtual-network/a7ee4737-3e4e-4417-9437-5be94774b3c5 2026-02-05 02:07:05,446 - DEBUG - ==>Verifying data for policy with id: 5350c8c6-897d-4872-88f2-d6247f486b1a, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-24603610', 'ctest-policy1-09177507'] 2026-02-05 02:07:05,446 - INFO - VN ctest-vn4-34691382 Policy verification: verify_vn_policy_in_api_server, status: True 2026-02-05 02:07:05,446 - DEBUG - Verifying the vn in opserver 2026-02-05 02:07:05,446 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-24603610:ctest-vn4-34691382 virtual network link through opserver 10.0.0.141 2026-02-05 02:07:05,446 - DEBUG - Requesting: http://10.0.0.141:8081/analytics/uves/virtual-networks 2026-02-05 02:07:05,736 - DEBUG - Requesting: http://10.0.0.141:8081/analytics/uves/virtual-networks 2026-02-05 02:07:05,797 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-24603610:ctest-vn4-34691382', 'href': 'http://10.0.0.141:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-24603610:ctest-vn4-34691382?flat'} 2026-02-05 02:07:05,797 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-24603610:ctest-vn4-34691382 is found in opserver 2026-02-05 02:07:05,806 - DEBUG - Do not have enough data to verify VN in agent 2026-02-05 02:07:05,810 - DEBUG - VRF ids for VN ctest-vn4-34691382: {} 2026-02-05 02:07:05,810 - DEBUG - ====Verifying data for ctest-policy1-09177507 in API_Server ====== 2026-02-05 02:07:05,810 - DEBUG - Requesting: http://10.0.0.141:8082/domains 2026-02-05 02:07:05,815 - DEBUG - Requesting: http://10.0.0.141:8082/domain/ae6883c1-449b-4b50-8248-b540c9036a3e 2026-02-05 02:07:05,827 - DEBUG - Requesting: http://10.0.0.141:8082/project/96aa1fb0-2ad0-4692-b89f-42f803abca62 2026-02-05 02:07:05,894 - DEBUG - Requesting: http://10.0.0.141:8082/network-policy/5350c8c6-897d-4872-88f2-d6247f486b1a 2026-02-05 02:07:05,905 - INFO - Verified policy ctest-policy1-09177507 in API Server, Result: True 2026-02-05 02:07:05,905 - INFO - Done with setup and verification, moving onto test .. 2026-02-05 02:07:05,914 - INFO - Deleting VN ctest-vn4-34691382 2026-02-05 02:07:06,034 - DEBUG - Response for deleting network () 2026-02-05 02:07:06,034 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/7ef9c94a-7c9a-489a-b4d6-4fec96cc970b 2026-02-05 02:07:06,038 - DEBUG - Response Code: 404 2026-02-05 02:07:06,038 - DEBUG - Requesting: http://10.0.0.141:8082/domains 2026-02-05 02:07:06,043 - DEBUG - Requesting: http://10.0.0.141:8082/domain/ae6883c1-449b-4b50-8248-b540c9036a3e 2026-02-05 02:07:06,098 - DEBUG - Requesting: http://10.0.0.141:8082/project/96aa1fb0-2ad0-4692-b89f-42f803abca62 2026-02-05 02:07:06,170 - INFO - Validated that VN ctest-vn4-34691382 is not found in API Server 2026-02-05 02:07:06,180 - DEBUG - VN ctest-vn4-34691382 is not present in Agent 10.0.0.141 2026-02-05 02:07:06,180 - INFO - Validated that VN ctest-vn4-34691382 is not in any agent 2026-02-05 02:07:06,196 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-34691382 info 2026-02-05 02:07:06,221 - INFO - Deleted policy ctest-policy1-09177507 2026-02-05 02:07:06,390 - DEBUG - policy ctest-policy1-09177507 is not found in API Server 2026-02-05 02:07:06,650 - DEBUG - No XMPP flaps were noticed during the test 2026-02-05 02:07:06,650 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04] 2026-02-05 02:07:06,650 - INFO - -------------------------------------------------------------------------------- 2026-02-05 02:07:06,939 - DEBUG - No XMPP flaps were noticed during the test 2026-02-05 02:07:06,940 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04] 2026-02-05 02:07:06,940 - INFO - -------------------------------------------------------------------------------- 2026-02-05 02:07:07,638 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-24603610, ID : 96aa1fb0-2ad0-4692-b89f-42f803abca62