2026-02-04 12:19:09,885 - INFO - Domain Default found not creating 2026-02-04 12:19:10,051 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-78343954 not found, creating it 2026-02-04 12:19:10,497 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-78343954, ID : aab7e849-49cd-4852-b8ca-f3912a8e3732 2026-02-04 12:19:11,945 - INFO - ================================================================================ 2026-02-04 12:19:11,945 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-02-04 12:19:12,203 - DEBUG - Nothing to compare xmpp stats {'10.0.0.22': {'10.20.0.17': '0'}} with 2026-02-04 12:19:12,203 - INFO - Initial checks done. Running the testcase now 2026-02-04 12:19:12,203 - INFO - 2026-02-04 12:19:12,203 - INFO - ================================================================================ 2026-02-04 12:19:12,203 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-02-04 12:19:12,203 - 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-04 12:19:12,490 - DEBUG - Nothing to compare xmpp stats {'10.0.0.22': {'10.20.0.17': '0'}} with 2026-02-04 12:19:12,490 - INFO - Initial checks done. Running the testcase now 2026-02-04 12:19:12,490 - INFO - 2026-02-04 12:19:12,836 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-78343954:ctest-vn4-62271361, 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-78343954:ctest-vn4-62271361, 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-78343954:ctest-vn4-62271361, 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-78343954:ctest-vn4-62271361, 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-04 12:19:13,370 - DEBUG - Response for create_network : {'network': {'id': '32d885c7-5be1-4436-9563-74886e1bb3ad', 'name': 'ctest-vn4-62271361', 'tenant_id': 'aab7e84949cd4852b8caf3912a8e3732', 'project_id': 'aab7e84949cd4852b8caf3912a8e3732', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-78343954', 'ctest-vn4-62271361'], 'port_security_enabled': True, 'description': ''}} 2026-02-04 12:19:13,579 - DEBUG - Response for create_subnet : {'subnet': {'id': '12082a32-d60d-43ca-aaf5-49a9fa78866b', 'name': '', 'tenant_id': 'aab7e84949cd4852b8caf3912a8e3732', 'network_id': '32d885c7-5be1-4436-9563-74886e1bb3ad', 'ip_version': 4, 'cidr': '138.157.224.64/26', 'allocation_pools': [{'start': '138.157.224.66', 'end': '138.157.224.126'}], 'gateway_ip': '138.157.224.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '138.157.224.66', 'tags': [], 'project_id': 'aab7e84949cd4852b8caf3912a8e3732'}} 2026-02-04 12:19:13,735 - DEBUG - Response for create_subnet : {'subnet': {'id': 'fd052513-6602-4178-8dd6-bfa07bfc0e94', 'name': '', 'tenant_id': 'aab7e84949cd4852b8caf3912a8e3732', 'network_id': '32d885c7-5be1-4436-9563-74886e1bb3ad', 'ip_version': 6, 'cidr': '3e9e:d663:a3ec:fac4:e274:63f0::/96', 'allocation_pools': [{'start': '3e9e:d663:a3ec:fac4:e274:63f0:0:2', 'end': '3e9e:d663:a3ec:fac4:e274:63f0:ffff:fffe'}], 'gateway_ip': '3e9e:d663:a3ec:fac4:e274:63f0:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '3e9e:d663:a3ec:fac4:e274:63f0:0:2', 'tags': [], 'project_id': 'aab7e84949cd4852b8caf3912a8e3732'}} 2026-02-04 12:19:13,757 - INFO - Created VN ctest-vn4-62271361 2026-02-04 12:19:13,810 - DEBUG - VN ctest-vn4-62271361 UUID is 32d885c7-5be1-4436-9563-74886e1bb3ad 2026-02-04 12:19:14,006 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '32d885c7-5be1-4436-9563-74886e1bb3ad', 'name': 'ctest-vn4-62271361', 'tenant_id': 'aab7e84949cd4852b8caf3912a8e3732', 'project_id': 'aab7e84949cd4852b8caf3912a8e3732', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['12082a32-d60d-43ca-aaf5-49a9fa78866b', 'fd052513-6602-4178-8dd6-bfa07bfc0e94'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-78343954', 'ctest-vn4-62271361'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-78343954', 'ctest-policy1-68850780']], 'subnet_ipam': [{'subnet_cidr': '138.157.224.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '3e9e:d663:a3ec:fac4:e274:63f0::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2026-02-04 12:19:14,162 - DEBUG - Requesting: http://10.0.0.22:8082/domains 2026-02-04 12:19:14,457 - DEBUG - Requesting: http://10.0.0.22:8082/domains 2026-02-04 12:19:14,489 - DEBUG - Requesting: http://10.0.0.22:8082/domain/57c3df35-dff8-4345-9905-6d9e072a1f66 2026-02-04 12:19:14,500 - DEBUG - Requesting: http://10.0.0.22:8082/project/aab7e849-49cd-4852-b8ca-f3912a8e3732 2026-02-04 12:19:14,569 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/32d885c7-5be1-4436-9563-74886e1bb3ad 2026-02-04 12:19:14,581 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/32d885c7-5be1-4436-9563-74886e1bb3ad 2026-02-04 12:19:14,590 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/074ddaf6-9cd5-4791-95c5-98eaeaed3831 2026-02-04 12:19:14,597 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/074ddaf6-9cd5-4791-95c5-98eaeaed3831 2026-02-04 12:19:14,603 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/0083d1f7-11d6-4ec4-ac97-71b09b4fe827 2026-02-04 12:19:14,609 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-02-04 12:19:14,609 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/32d885c7-5be1-4436-9563-74886e1bb3ad 2026-02-04 12:19:14,617 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/074ddaf6-9cd5-4791-95c5-98eaeaed3831 2026-02-04 12:19:14,630 - INFO - Verified VN network id 12 for VN 32d885c7-5be1-4436-9563-74886e1bb3ad 2026-02-04 12:19:14,630 - INFO - Verifications in API Server for VN ctest-vn4-62271361 passed 2026-02-04 12:19:14,630 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/32d885c7-5be1-4436-9563-74886e1bb3ad 2026-02-04 12:19:14,639 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/074ddaf6-9cd5-4791-95c5-98eaeaed3831 2026-02-04 12:19:14,645 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/074ddaf6-9cd5-4791-95c5-98eaeaed3831 2026-02-04 12:19:14,650 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/0083d1f7-11d6-4ec4-ac97-71b09b4fe827 2026-02-04 12:19:14,662 - DEBUG - Control-node 10.0.0.22 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-78343954:ctest-vn4-62271361', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-78343954', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '3663825388152374326', 'uuid-lslong': '10764575663657300909'}, 'enable': 'true', 'created': '2026-02-04T12:19:13', 'last-modified': '2026-02-04T12:19:13', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.683514'} 2026-02-04 12:19:14,668 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-02-04 12:19:14,669 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-62271361 passed 2026-02-04 12:19:14,669 - DEBUG - ====Verifying policy data for ctest-vn4-62271361 in API_Server ====== 2026-02-04 12:19:14,669 - DEBUG - Requesting: http://10.0.0.22:8082/domains 2026-02-04 12:19:14,676 - DEBUG - Requesting: http://10.0.0.22:8082/domain/57c3df35-dff8-4345-9905-6d9e072a1f66 2026-02-04 12:19:14,688 - DEBUG - Requesting: http://10.0.0.22:8082/project/aab7e849-49cd-4852-b8ca-f3912a8e3732 2026-02-04 12:19:14,756 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/32d885c7-5be1-4436-9563-74886e1bb3ad 2026-02-04 12:19:14,765 - DEBUG - ==>Verifying data for policy with id: 8ed7c17e-ddd7-47a8-ab1a-63747e4a12d2, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-78343954', 'ctest-policy1-68850780'] 2026-02-04 12:19:14,765 - INFO - VN ctest-vn4-62271361 Policy verification: verify_vn_policy_in_api_server, status: True 2026-02-04 12:19:14,765 - DEBUG - Verifying the vn in opserver 2026-02-04 12:19:14,765 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-78343954:ctest-vn4-62271361 virtual network link through opserver 10.0.0.22 2026-02-04 12:19:14,766 - DEBUG - Requesting: http://10.0.0.22:8081/analytics/uves/virtual-networks 2026-02-04 12:19:15,059 - DEBUG - Requesting: http://10.0.0.22:8081/analytics/uves/virtual-networks 2026-02-04 12:19:15,123 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-78343954:ctest-vn4-62271361', 'href': 'http://10.0.0.22:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-78343954:ctest-vn4-62271361?flat'} 2026-02-04 12:19:15,123 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-78343954:ctest-vn4-62271361 is found in opserver 2026-02-04 12:19:15,133 - DEBUG - Do not have enough data to verify VN in agent 2026-02-04 12:19:15,137 - DEBUG - VRF ids for VN ctest-vn4-62271361: {} 2026-02-04 12:19:15,137 - DEBUG - ====Verifying data for ctest-policy1-68850780 in API_Server ====== 2026-02-04 12:19:15,137 - DEBUG - Requesting: http://10.0.0.22:8082/domains 2026-02-04 12:19:15,142 - DEBUG - Requesting: http://10.0.0.22:8082/domain/57c3df35-dff8-4345-9905-6d9e072a1f66 2026-02-04 12:19:15,154 - DEBUG - Requesting: http://10.0.0.22:8082/project/aab7e849-49cd-4852-b8ca-f3912a8e3732 2026-02-04 12:19:15,221 - DEBUG - Requesting: http://10.0.0.22:8082/network-policy/8ed7c17e-ddd7-47a8-ab1a-63747e4a12d2 2026-02-04 12:19:15,229 - INFO - Verified policy ctest-policy1-68850780 in API Server, Result: True 2026-02-04 12:19:15,230 - INFO - Done with setup and verification, moving onto test .. 2026-02-04 12:19:15,236 - INFO - Deleting VN ctest-vn4-62271361 2026-02-04 12:19:15,339 - DEBUG - Response for deleting network () 2026-02-04 12:19:15,339 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/074ddaf6-9cd5-4791-95c5-98eaeaed3831 2026-02-04 12:19:15,343 - DEBUG - Response Code: 404 2026-02-04 12:19:15,343 - DEBUG - Requesting: http://10.0.0.22:8082/domains 2026-02-04 12:19:15,348 - DEBUG - Requesting: http://10.0.0.22:8082/domain/57c3df35-dff8-4345-9905-6d9e072a1f66 2026-02-04 12:19:15,398 - DEBUG - Requesting: http://10.0.0.22:8082/project/aab7e849-49cd-4852-b8ca-f3912a8e3732 2026-02-04 12:19:15,466 - INFO - Validated that VN ctest-vn4-62271361 is not found in API Server 2026-02-04 12:19:15,476 - DEBUG - VN ctest-vn4-62271361 is not present in Agent 10.0.0.22 2026-02-04 12:19:15,476 - INFO - Validated that VN ctest-vn4-62271361 is not in any agent 2026-02-04 12:19:15,487 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-62271361 info 2026-02-04 12:19:15,509 - INFO - Deleted policy ctest-policy1-68850780 2026-02-04 12:19:15,666 - DEBUG - policy ctest-policy1-68850780 is not found in API Server 2026-02-04 12:19:15,920 - DEBUG - No XMPP flaps were noticed during the test 2026-02-04 12:19:15,920 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:03] 2026-02-04 12:19:15,920 - INFO - -------------------------------------------------------------------------------- 2026-02-04 12:19:16,207 - DEBUG - No XMPP flaps were noticed during the test 2026-02-04 12:19:16,207 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:05] 2026-02-04 12:19:16,207 - INFO - -------------------------------------------------------------------------------- 2026-02-04 12:19:16,877 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-78343954, ID : aab7e849-49cd-4852-b8ca-f3912a8e3732