2026-02-27 18:01:04,317 - INFO - Domain Default found not creating 2026-02-27 18:01:04,495 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-88978131 not found, creating it 2026-02-27 18:01:04,973 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-88978131, ID : cd22a8e2-fbb5-410f-9680-d631c37d687f 2026-02-27 18:01:06,656 - INFO - ================================================================================ 2026-02-27 18:01:06,657 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-02-27 18:01:06,913 - DEBUG - Nothing to compare xmpp stats {'10.0.0.22': {'10.20.0.17': '0'}} with 2026-02-27 18:01:06,913 - INFO - Initial checks done. Running the testcase now 2026-02-27 18:01:06,913 - INFO - 2026-02-27 18:01:06,913 - INFO - ================================================================================ 2026-02-27 18:01:06,913 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-02-27 18:01:06,913 - 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-27 18:01:07,206 - DEBUG - Nothing to compare xmpp stats {'10.0.0.22': {'10.20.0.17': '0'}} with 2026-02-27 18:01:07,206 - INFO - Initial checks done. Running the testcase now 2026-02-27 18:01:07,206 - INFO - 2026-02-27 18:01:07,556 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-88978131:ctest-vn4-70082643, 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-88978131:ctest-vn4-70082643, 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-88978131:ctest-vn4-70082643, 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-88978131:ctest-vn4-70082643, 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-27 18:01:08,065 - DEBUG - Response for create_network : {'network': {'id': '7a9482c4-40f8-4054-a183-df09feaa37b9', 'name': 'ctest-vn4-70082643', 'tenant_id': 'cd22a8e2fbb5410f9680d631c37d687f', 'project_id': 'cd22a8e2fbb5410f9680d631c37d687f', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-88978131', 'ctest-vn4-70082643'], 'port_security_enabled': True, 'description': ''}} 2026-02-27 18:01:08,244 - DEBUG - Response for create_subnet : {'subnet': {'id': '15f1782a-44af-4a2d-a369-361a73ce5f3d', 'name': '', 'tenant_id': 'cd22a8e2fbb5410f9680d631c37d687f', 'network_id': '7a9482c4-40f8-4054-a183-df09feaa37b9', 'ip_version': 4, 'cidr': '111.140.97.128/26', 'allocation_pools': [{'start': '111.140.97.130', 'end': '111.140.97.190'}], 'gateway_ip': '111.140.97.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '111.140.97.130', 'tags': [], 'project_id': 'cd22a8e2fbb5410f9680d631c37d687f'}} 2026-02-27 18:01:08,439 - DEBUG - Response for create_subnet : {'subnet': {'id': '0b10a615-7571-43e7-93dc-fcd405201439', 'name': '', 'tenant_id': 'cd22a8e2fbb5410f9680d631c37d687f', 'network_id': '7a9482c4-40f8-4054-a183-df09feaa37b9', 'ip_version': 6, 'cidr': '3a17:e6a3:8c91:f62d:d652:3ad7::/96', 'allocation_pools': [{'start': '3a17:e6a3:8c91:f62d:d652:3ad7:0:2', 'end': '3a17:e6a3:8c91:f62d:d652:3ad7:ffff:fffe'}], 'gateway_ip': '3a17:e6a3:8c91:f62d:d652:3ad7:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '3a17:e6a3:8c91:f62d:d652:3ad7:0:2', 'tags': [], 'project_id': 'cd22a8e2fbb5410f9680d631c37d687f'}} 2026-02-27 18:01:08,460 - INFO - Created VN ctest-vn4-70082643 2026-02-27 18:01:08,511 - DEBUG - VN ctest-vn4-70082643 UUID is 7a9482c4-40f8-4054-a183-df09feaa37b9 2026-02-27 18:01:08,698 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '7a9482c4-40f8-4054-a183-df09feaa37b9', 'name': 'ctest-vn4-70082643', 'tenant_id': 'cd22a8e2fbb5410f9680d631c37d687f', 'project_id': 'cd22a8e2fbb5410f9680d631c37d687f', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['15f1782a-44af-4a2d-a369-361a73ce5f3d', '0b10a615-7571-43e7-93dc-fcd405201439'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-88978131', 'ctest-vn4-70082643'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-88978131', 'ctest-policy1-39582550']], 'subnet_ipam': [{'subnet_cidr': '111.140.97.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '3a17:e6a3:8c91:f62d:d652:3ad7::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2026-02-27 18:01:08,867 - DEBUG - Requesting: http://10.0.0.22:8082/domains 2026-02-27 18:01:09,158 - DEBUG - Requesting: http://10.0.0.22:8082/domains 2026-02-27 18:01:09,189 - DEBUG - Requesting: http://10.0.0.22:8082/domain/6a7c7f1d-356c-4cce-9958-f511dd3ecfaf 2026-02-27 18:01:09,201 - DEBUG - Requesting: http://10.0.0.22:8082/project/cd22a8e2-fbb5-410f-9680-d631c37d687f 2026-02-27 18:01:09,280 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/7a9482c4-40f8-4054-a183-df09feaa37b9 2026-02-27 18:01:09,293 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/7a9482c4-40f8-4054-a183-df09feaa37b9 2026-02-27 18:01:09,304 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/e23054db-0ee6-4ba1-8c54-997f3c2bfb36 2026-02-27 18:01:09,311 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/e23054db-0ee6-4ba1-8c54-997f3c2bfb36 2026-02-27 18:01:09,318 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/53bd7512-820a-410c-b091-abda9c9d9df0 2026-02-27 18:01:09,324 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-02-27 18:01:09,324 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/7a9482c4-40f8-4054-a183-df09feaa37b9 2026-02-27 18:01:09,333 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/e23054db-0ee6-4ba1-8c54-997f3c2bfb36 2026-02-27 18:01:09,345 - INFO - Verified VN network id 11 for VN 7a9482c4-40f8-4054-a183-df09feaa37b9 2026-02-27 18:01:09,346 - INFO - Verifications in API Server for VN ctest-vn4-70082643 passed 2026-02-27 18:01:09,346 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/7a9482c4-40f8-4054-a183-df09feaa37b9 2026-02-27 18:01:09,354 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/e23054db-0ee6-4ba1-8c54-997f3c2bfb36 2026-02-27 18:01:09,360 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/e23054db-0ee6-4ba1-8c54-997f3c2bfb36 2026-02-27 18:01:09,366 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/53bd7512-820a-410c-b091-abda9c9d9df0 2026-02-27 18:01:09,376 - DEBUG - Control-node 10.0.0.22 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-88978131:ctest-vn4-70082643', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-88978131', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '8832828548595597396', 'uuid-lslong': '11638391096075761593'}, 'enable': 'true', 'created': '2026-02-27T18:01:08', 'last-modified': '2026-02-27T18:01:08', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.702131'} 2026-02-27 18:01:09,381 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-02-27 18:01:09,381 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-70082643 passed 2026-02-27 18:01:09,381 - DEBUG - ====Verifying policy data for ctest-vn4-70082643 in API_Server ====== 2026-02-27 18:01:09,382 - DEBUG - Requesting: http://10.0.0.22:8082/domains 2026-02-27 18:01:09,387 - DEBUG - Requesting: http://10.0.0.22:8082/domain/6a7c7f1d-356c-4cce-9958-f511dd3ecfaf 2026-02-27 18:01:09,398 - DEBUG - Requesting: http://10.0.0.22:8082/project/cd22a8e2-fbb5-410f-9680-d631c37d687f 2026-02-27 18:01:09,467 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/7a9482c4-40f8-4054-a183-df09feaa37b9 2026-02-27 18:01:09,478 - DEBUG - ==>Verifying data for policy with id: f48e5fb0-a553-495c-b38f-86cfe16fddba, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-88978131', 'ctest-policy1-39582550'] 2026-02-27 18:01:09,478 - INFO - VN ctest-vn4-70082643 Policy verification: verify_vn_policy_in_api_server, status: True 2026-02-27 18:01:09,478 - DEBUG - Verifying the vn in opserver 2026-02-27 18:01:09,478 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-88978131:ctest-vn4-70082643 virtual network link through opserver 10.0.0.22 2026-02-27 18:01:09,478 - DEBUG - Requesting: http://10.0.0.22:8081/analytics/uves/virtual-networks 2026-02-27 18:01:10,058 - DEBUG - Requesting: http://10.0.0.22:8081/analytics/uves/virtual-networks 2026-02-27 18:01:10,149 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-88978131:ctest-vn4-70082643', 'href': 'http://10.0.0.22:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-88978131:ctest-vn4-70082643?flat'} 2026-02-27 18:01:10,150 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-88978131:ctest-vn4-70082643 is found in opserver 2026-02-27 18:01:10,159 - DEBUG - Do not have enough data to verify VN in agent 2026-02-27 18:01:10,163 - DEBUG - VRF ids for VN ctest-vn4-70082643: {} 2026-02-27 18:01:10,164 - DEBUG - ====Verifying data for ctest-policy1-39582550 in API_Server ====== 2026-02-27 18:01:10,164 - DEBUG - Requesting: http://10.0.0.22:8082/domains 2026-02-27 18:01:10,170 - DEBUG - Requesting: http://10.0.0.22:8082/domain/6a7c7f1d-356c-4cce-9958-f511dd3ecfaf 2026-02-27 18:01:10,188 - DEBUG - Requesting: http://10.0.0.22:8082/project/cd22a8e2-fbb5-410f-9680-d631c37d687f 2026-02-27 18:01:10,266 - DEBUG - Requesting: http://10.0.0.22:8082/network-policy/f48e5fb0-a553-495c-b38f-86cfe16fddba 2026-02-27 18:01:10,279 - INFO - Verified policy ctest-policy1-39582550 in API Server, Result: True 2026-02-27 18:01:10,279 - INFO - Done with setup and verification, moving onto test .. 2026-02-27 18:01:10,290 - INFO - Deleting VN ctest-vn4-70082643 2026-02-27 18:01:10,415 - DEBUG - Response for deleting network () 2026-02-27 18:01:10,415 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/e23054db-0ee6-4ba1-8c54-997f3c2bfb36 2026-02-27 18:01:10,420 - DEBUG - Response Code: 404 2026-02-27 18:01:10,420 - DEBUG - Requesting: http://10.0.0.22:8082/domains 2026-02-27 18:01:10,425 - DEBUG - Requesting: http://10.0.0.22:8082/domain/6a7c7f1d-356c-4cce-9958-f511dd3ecfaf 2026-02-27 18:01:10,480 - DEBUG - Requesting: http://10.0.0.22:8082/project/cd22a8e2-fbb5-410f-9680-d631c37d687f 2026-02-27 18:01:10,554 - INFO - Validated that VN ctest-vn4-70082643 is not found in API Server 2026-02-27 18:01:10,564 - DEBUG - VN ctest-vn4-70082643 is not present in Agent 10.0.0.22 2026-02-27 18:01:10,564 - INFO - Validated that VN ctest-vn4-70082643 is not in any agent 2026-02-27 18:01:10,578 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-70082643 info 2026-02-27 18:01:10,607 - INFO - Deleted policy ctest-policy1-39582550 2026-02-27 18:01:10,779 - DEBUG - policy ctest-policy1-39582550 is not found in API Server 2026-02-27 18:01:11,033 - DEBUG - No XMPP flaps were noticed during the test
2026-02-27 18:01:11,033 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:05]
2026-02-27 18:01:11,033 - INFO - -------------------------------------------------------------------------------- 2026-02-27 18:01:11,325 - DEBUG - No XMPP flaps were noticed during the test
2026-02-27 18:01:11,325 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:05]
2026-02-27 18:01:11,325 - INFO - -------------------------------------------------------------------------------- 2026-02-27 18:01:12,012 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-88978131, ID : cd22a8e2-fbb5-410f-9680-d631c37d687f