2026-04-03 10:52:33,850 - INFO - Domain Default found not creating 2026-04-03 10:52:34,069 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-84910859 not found, creating it 2026-04-03 10:52:34,565 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-84910859, ID : 572b65fe-0a39-4788-b02c-0796ba186b27 2026-04-03 10:52:36,338 - INFO - ================================================================================ 2026-04-03 10:52:36,338 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-04-03 10:52:36,599 - DEBUG - Nothing to compare xmpp stats {'10.0.0.22': {'10.20.0.254': '0'}} with 2026-04-03 10:52:36,599 - INFO - Initial checks done. Running the testcase now 2026-04-03 10:52:36,599 - INFO - 2026-04-03 10:52:36,599 - INFO - ================================================================================ 2026-04-03 10:52:36,599 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-04-03 10:52:36,599 - 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-04-03 10:52:36,896 - DEBUG - Nothing to compare xmpp stats {'10.0.0.22': {'10.20.0.254': '0'}} with 2026-04-03 10:52:36,897 - INFO - Initial checks done. Running the testcase now 2026-04-03 10:52:36,897 - INFO - 2026-04-03 10:52:37,271 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-84910859:ctest-vn4-81035392, 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-84910859:ctest-vn4-81035392, 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-84910859:ctest-vn4-81035392, 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-84910859:ctest-vn4-81035392, 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-04-03 10:52:37,822 - DEBUG - Response for create_network : {'network': {'id': '6f84c294-abb7-47c0-b9c1-d2e4e2e94608', 'name': 'ctest-vn4-81035392', 'tenant_id': '572b65fe0a394788b02c0796ba186b27', 'project_id': '572b65fe0a394788b02c0796ba186b27', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-84910859', 'ctest-vn4-81035392'], 'port_security_enabled': True, 'description': ''}} 2026-04-03 10:52:38,021 - DEBUG - Response for create_subnet : {'subnet': {'id': 'ae13b2e2-b1b2-4c23-b333-e81b77276ac8', 'name': '', 'tenant_id': '572b65fe0a394788b02c0796ba186b27', 'network_id': '6f84c294-abb7-47c0-b9c1-d2e4e2e94608', 'ip_version': 4, 'cidr': '145.232.121.128/26', 'allocation_pools': [{'start': '145.232.121.130', 'end': '145.232.121.190'}], 'gateway_ip': '145.232.121.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '145.232.121.130', 'tags': [], 'project_id': '572b65fe0a394788b02c0796ba186b27'}} 2026-04-03 10:52:38,221 - DEBUG - Response for create_subnet : {'subnet': {'id': 'af177066-1fed-4b2f-861f-ba28ad423297', 'name': '', 'tenant_id': '572b65fe0a394788b02c0796ba186b27', 'network_id': '6f84c294-abb7-47c0-b9c1-d2e4e2e94608', 'ip_version': 6, 'cidr': '3868:8f3c:2ae9:7c54:ae79:582d::/96', 'allocation_pools': [{'start': '3868:8f3c:2ae9:7c54:ae79:582d:0:2', 'end': '3868:8f3c:2ae9:7c54:ae79:582d:ffff:fffe'}], 'gateway_ip': '3868:8f3c:2ae9:7c54:ae79:582d:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '3868:8f3c:2ae9:7c54:ae79:582d:0:2', 'tags': [], 'project_id': '572b65fe0a394788b02c0796ba186b27'}} 2026-04-03 10:52:38,245 - INFO - Created VN ctest-vn4-81035392 2026-04-03 10:52:38,299 - DEBUG - VN ctest-vn4-81035392 UUID is 6f84c294-abb7-47c0-b9c1-d2e4e2e94608 2026-04-03 10:52:38,542 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '6f84c294-abb7-47c0-b9c1-d2e4e2e94608', 'name': 'ctest-vn4-81035392', 'tenant_id': '572b65fe0a394788b02c0796ba186b27', 'project_id': '572b65fe0a394788b02c0796ba186b27', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['ae13b2e2-b1b2-4c23-b333-e81b77276ac8', 'af177066-1fed-4b2f-861f-ba28ad423297'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-84910859', 'ctest-vn4-81035392'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-84910859', 'ctest-policy1-23744702']], 'subnet_ipam': [{'subnet_cidr': '145.232.121.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '3868:8f3c:2ae9:7c54:ae79:582d::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2026-04-03 10:52:38,703 - DEBUG - Requesting: http://10.0.0.22:8082/domains 2026-04-03 10:52:39,008 - DEBUG - Requesting: http://10.0.0.22:8082/domains 2026-04-03 10:52:39,049 - DEBUG - Requesting: http://10.0.0.22:8082/domain/8768d7b1-4bb9-4889-82d6-90e1e1aeec74 2026-04-03 10:52:39,067 - DEBUG - Requesting: http://10.0.0.22:8082/project/572b65fe-0a39-4788-b02c-0796ba186b27 2026-04-03 10:52:39,148 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/6f84c294-abb7-47c0-b9c1-d2e4e2e94608 2026-04-03 10:52:39,163 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/6f84c294-abb7-47c0-b9c1-d2e4e2e94608 2026-04-03 10:52:39,175 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/39c39f85-7c26-4793-ae2a-e0aff54f4fc1 2026-04-03 10:52:39,183 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/39c39f85-7c26-4793-ae2a-e0aff54f4fc1 2026-04-03 10:52:39,193 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/80f6f837-ada8-43f4-8820-1e32b41a36ee 2026-04-03 10:52:39,200 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-04-03 10:52:39,200 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/6f84c294-abb7-47c0-b9c1-d2e4e2e94608 2026-04-03 10:52:39,211 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/39c39f85-7c26-4793-ae2a-e0aff54f4fc1 2026-04-03 10:52:39,230 - INFO - Verified VN network id 11 for VN 6f84c294-abb7-47c0-b9c1-d2e4e2e94608 2026-04-03 10:52:39,230 - INFO - Verifications in API Server for VN ctest-vn4-81035392 passed 2026-04-03 10:52:39,230 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/6f84c294-abb7-47c0-b9c1-d2e4e2e94608 2026-04-03 10:52:39,241 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/39c39f85-7c26-4793-ae2a-e0aff54f4fc1 2026-04-03 10:52:39,249 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/39c39f85-7c26-4793-ae2a-e0aff54f4fc1 2026-04-03 10:52:39,257 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/80f6f837-ada8-43f4-8820-1e32b41a36ee 2026-04-03 10:52:39,272 - DEBUG - Control-node 10.0.0.22 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-84910859:ctest-vn4-81035392', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-84910859', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '8035761578927671232', 'uuid-lslong': '13385211448023139848'}, 'enable': 'true', 'created': '2026-04-03T10:52:37', 'last-modified': '2026-04-03T10:52:38', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.766447'} 2026-04-03 10:52:39,279 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-04-03 10:52:39,279 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-81035392 passed 2026-04-03 10:52:39,280 - DEBUG - ====Verifying policy data for ctest-vn4-81035392 in API_Server ====== 2026-04-03 10:52:39,280 - DEBUG - Requesting: http://10.0.0.22:8082/domains 2026-04-03 10:52:39,286 - DEBUG - Requesting: http://10.0.0.22:8082/domain/8768d7b1-4bb9-4889-82d6-90e1e1aeec74 2026-04-03 10:52:39,298 - DEBUG - Requesting: http://10.0.0.22:8082/project/572b65fe-0a39-4788-b02c-0796ba186b27 2026-04-03 10:52:39,373 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/6f84c294-abb7-47c0-b9c1-d2e4e2e94608 2026-04-03 10:52:39,383 - DEBUG - ==>Verifying data for policy with id: f90ae786-119c-4d85-aaf1-f7e6802ac800, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-84910859', 'ctest-policy1-23744702'] 2026-04-03 10:52:39,383 - INFO - VN ctest-vn4-81035392 Policy verification: verify_vn_policy_in_api_server, status: True 2026-04-03 10:52:39,383 - DEBUG - Verifying the vn in opserver 2026-04-03 10:52:39,383 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-84910859:ctest-vn4-81035392 virtual network link through opserver 10.0.0.22 2026-04-03 10:52:39,383 - DEBUG - Requesting: http://10.0.0.22:8081/analytics/uves/virtual-networks 2026-04-03 10:52:39,685 - DEBUG - Requesting: http://10.0.0.22:8081/analytics/uves/virtual-networks 2026-04-03 10:52:39,769 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-84910859:ctest-vn4-81035392', 'href': 'http://10.0.0.22:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-84910859:ctest-vn4-81035392?flat'} 2026-04-03 10:52:39,769 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-84910859:ctest-vn4-81035392 is found in opserver 2026-04-03 10:52:39,783 - DEBUG - Do not have enough data to verify VN in agent 2026-04-03 10:52:39,788 - DEBUG - VRF ids for VN ctest-vn4-81035392: {} 2026-04-03 10:52:39,788 - DEBUG - ====Verifying data for ctest-policy1-23744702 in API_Server ====== 2026-04-03 10:52:39,788 - DEBUG - Requesting: http://10.0.0.22:8082/domains 2026-04-03 10:52:39,795 - DEBUG - Requesting: http://10.0.0.22:8082/domain/8768d7b1-4bb9-4889-82d6-90e1e1aeec74 2026-04-03 10:52:39,808 - DEBUG - Requesting: http://10.0.0.22:8082/project/572b65fe-0a39-4788-b02c-0796ba186b27 2026-04-03 10:52:39,882 - DEBUG - Requesting: http://10.0.0.22:8082/network-policy/f90ae786-119c-4d85-aaf1-f7e6802ac800 2026-04-03 10:52:39,892 - INFO - Verified policy ctest-policy1-23744702 in API Server, Result: True 2026-04-03 10:52:39,892 - INFO - Done with setup and verification, moving onto test .. 2026-04-03 10:52:39,901 - INFO - Deleting VN ctest-vn4-81035392 2026-04-03 10:52:40,031 - DEBUG - Response for deleting network () 2026-04-03 10:52:40,032 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/39c39f85-7c26-4793-ae2a-e0aff54f4fc1 2026-04-03 10:52:40,037 - DEBUG - Response Code: 404 2026-04-03 10:52:40,037 - DEBUG - Requesting: http://10.0.0.22:8082/domains 2026-04-03 10:52:40,044 - DEBUG - Requesting: http://10.0.0.22:8082/domain/8768d7b1-4bb9-4889-82d6-90e1e1aeec74 2026-04-03 10:52:40,101 - DEBUG - Requesting: http://10.0.0.22:8082/project/572b65fe-0a39-4788-b02c-0796ba186b27 2026-04-03 10:52:40,179 - INFO - Validated that VN ctest-vn4-81035392 is not found in API Server 2026-04-03 10:52:40,190 - DEBUG - VN ctest-vn4-81035392 is not present in Agent 10.0.0.22 2026-04-03 10:52:40,190 - INFO - Validated that VN ctest-vn4-81035392 is not in any agent 2026-04-03 10:52:40,205 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-81035392 info 2026-04-03 10:52:40,231 - INFO - Deleted policy ctest-policy1-23744702 2026-04-03 10:52:40,403 - DEBUG - policy ctest-policy1-23744702 is not found in API Server 2026-04-03 10:52:40,661 - DEBUG - No XMPP flaps were noticed during the test
2026-04-03 10:52:40,661 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04]
2026-04-03 10:52:40,661 - INFO - -------------------------------------------------------------------------------- 2026-04-03 10:52:40,959 - DEBUG - No XMPP flaps were noticed during the test
2026-04-03 10:52:40,959 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04]
2026-04-03 10:52:40,959 - INFO - -------------------------------------------------------------------------------- 2026-04-03 10:52:41,683 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-84910859, ID : 572b65fe-0a39-4788-b02c-0796ba186b27