2026-05-27 16:21:06,062 - INFO - Domain Default found not creating 2026-05-27 16:21:06,240 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-13332117 not found, creating it 2026-05-27 16:21:06,770 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-13332117, ID : dba086d3-bfe9-49f3-830a-c3266395f6f9 2026-05-27 16:21:08,308 - INFO - ================================================================================ 2026-05-27 16:21:08,309 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-05-27 16:21:08,564 - DEBUG - Nothing to compare xmpp stats {'10.0.0.41': {'10.20.0.18': '0'}} with 2026-05-27 16:21:08,564 - INFO - Initial checks done. Running the testcase now 2026-05-27 16:21:08,564 - INFO - 2026-05-27 16:21:08,564 - INFO - ================================================================================ 2026-05-27 16:21:08,564 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-05-27 16:21:08,564 - 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-05-27 16:21:08,850 - DEBUG - Nothing to compare xmpp stats {'10.0.0.41': {'10.20.0.18': '0'}} with 2026-05-27 16:21:08,850 - INFO - Initial checks done. Running the testcase now 2026-05-27 16:21:08,850 - INFO - 2026-05-27 16:21:09,215 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-13332117:ctest-vn4-49240190, 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-13332117:ctest-vn4-49240190, 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-13332117:ctest-vn4-49240190, 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-13332117:ctest-vn4-49240190, 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-05-27 16:21:09,723 - DEBUG - Response for create_network : {'network': {'id': '31bfda69-d710-4450-8099-60ec9ba25b44', 'name': 'ctest-vn4-49240190', 'tenant_id': 'dba086d3bfe949f3830ac3266395f6f9', 'project_id': 'dba086d3bfe949f3830ac3266395f6f9', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-13332117', 'ctest-vn4-49240190'], 'port_security_enabled': True, 'description': ''}} 2026-05-27 16:21:09,915 - DEBUG - Response for create_subnet : {'subnet': {'id': 'e25c97a7-25c7-4bd1-896b-57e9d1cf9a1a', 'name': '', 'tenant_id': 'dba086d3bfe949f3830ac3266395f6f9', 'network_id': '31bfda69-d710-4450-8099-60ec9ba25b44', 'ip_version': 4, 'cidr': '176.130.4.128/26', 'allocation_pools': [{'start': '176.130.4.130', 'end': '176.130.4.190'}], 'gateway_ip': '176.130.4.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '176.130.4.130', 'tags': [], 'project_id': 'dba086d3bfe949f3830ac3266395f6f9'}} 2026-05-27 16:21:10,115 - DEBUG - Response for create_subnet : {'subnet': {'id': '091b2af1-17fc-4de3-b469-92bd696de1ef', 'name': '', 'tenant_id': 'dba086d3bfe949f3830ac3266395f6f9', 'network_id': '31bfda69-d710-4450-8099-60ec9ba25b44', 'ip_version': 6, 'cidr': '2f88:fd27:b512:54a6:722b:1167::/96', 'allocation_pools': [{'start': '2f88:fd27:b512:54a6:722b:1167:0:2', 'end': '2f88:fd27:b512:54a6:722b:1167:ffff:fffe'}], 'gateway_ip': '2f88:fd27:b512:54a6:722b:1167:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '2f88:fd27:b512:54a6:722b:1167:0:2', 'tags': [], 'project_id': 'dba086d3bfe949f3830ac3266395f6f9'}} 2026-05-27 16:21:10,136 - INFO - Created VN ctest-vn4-49240190 2026-05-27 16:21:10,189 - DEBUG - VN ctest-vn4-49240190 UUID is 31bfda69-d710-4450-8099-60ec9ba25b44 2026-05-27 16:21:10,391 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '31bfda69-d710-4450-8099-60ec9ba25b44', 'name': 'ctest-vn4-49240190', 'tenant_id': 'dba086d3bfe949f3830ac3266395f6f9', 'project_id': 'dba086d3bfe949f3830ac3266395f6f9', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['e25c97a7-25c7-4bd1-896b-57e9d1cf9a1a', '091b2af1-17fc-4de3-b469-92bd696de1ef'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-13332117', 'ctest-vn4-49240190'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-13332117', 'ctest-policy1-02359339']], 'subnet_ipam': [{'subnet_cidr': '176.130.4.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '2f88:fd27:b512:54a6:722b:1167::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2026-05-27 16:21:10,561 - DEBUG - Requesting: http://10.0.0.41:8082/domains 2026-05-27 16:21:10,856 - DEBUG - Requesting: http://10.0.0.41:8082/domains 2026-05-27 16:21:10,893 - DEBUG - Requesting: http://10.0.0.41:8082/domain/a12584cf-bfc2-4bc5-85d4-a2c3336591bd 2026-05-27 16:21:10,905 - DEBUG - Requesting: http://10.0.0.41:8082/project/dba086d3-bfe9-49f3-830a-c3266395f6f9 2026-05-27 16:21:10,979 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-network/31bfda69-d710-4450-8099-60ec9ba25b44 2026-05-27 16:21:10,990 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-network/31bfda69-d710-4450-8099-60ec9ba25b44 2026-05-27 16:21:11,000 - DEBUG - Requesting: http://10.0.0.41:8082/routing-instance/b4283eee-6372-46fd-9530-646784f6afc0 2026-05-27 16:21:11,007 - DEBUG - Requesting: http://10.0.0.41:8082/routing-instance/b4283eee-6372-46fd-9530-646784f6afc0 2026-05-27 16:21:11,014 - DEBUG - Requesting: http://10.0.0.41:8082/route-target/f694309d-cac0-4ed6-8b24-cb32089430e0 2026-05-27 16:21:11,021 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-05-27 16:21:11,021 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-network/31bfda69-d710-4450-8099-60ec9ba25b44 2026-05-27 16:21:11,030 - DEBUG - Requesting: http://10.0.0.41:8082/routing-instance/b4283eee-6372-46fd-9530-646784f6afc0 2026-05-27 16:21:11,047 - INFO - Verified VN network id 11 for VN 31bfda69-d710-4450-8099-60ec9ba25b44 2026-05-27 16:21:11,047 - INFO - Verifications in API Server for VN ctest-vn4-49240190 passed 2026-05-27 16:21:11,048 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-network/31bfda69-d710-4450-8099-60ec9ba25b44 2026-05-27 16:21:11,058 - DEBUG - Requesting: http://10.0.0.41:8082/routing-instance/b4283eee-6372-46fd-9530-646784f6afc0 2026-05-27 16:21:11,066 - DEBUG - Requesting: http://10.0.0.41:8082/routing-instance/b4283eee-6372-46fd-9530-646784f6afc0 2026-05-27 16:21:11,075 - DEBUG - Requesting: http://10.0.0.41:8082/route-target/f694309d-cac0-4ed6-8b24-cb32089430e0 2026-05-27 16:21:11,087 - DEBUG - Control-node 10.0.0.41 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-13332117:ctest-vn4-49240190', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-13332117', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '3584823976524792912', 'uuid-lslong': '9266544277631163204'}, 'enable': 'true', 'created': '2026-05-27T16:21:09', 'last-modified': '2026-05-27T16:21:10', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.722524'} 2026-05-27 16:21:11,093 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-05-27 16:21:11,093 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-49240190 passed 2026-05-27 16:21:11,093 - DEBUG - ====Verifying policy data for ctest-vn4-49240190 in API_Server ====== 2026-05-27 16:21:11,093 - DEBUG - Requesting: http://10.0.0.41:8082/domains 2026-05-27 16:21:11,098 - DEBUG - Requesting: http://10.0.0.41:8082/domain/a12584cf-bfc2-4bc5-85d4-a2c3336591bd 2026-05-27 16:21:11,109 - DEBUG - Requesting: http://10.0.0.41:8082/project/dba086d3-bfe9-49f3-830a-c3266395f6f9 2026-05-27 16:21:11,192 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-network/31bfda69-d710-4450-8099-60ec9ba25b44 2026-05-27 16:21:11,204 - DEBUG - ==>Verifying data for policy with id: 9d4ea474-fd5e-4ef1-84cf-18b45e09f781, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-13332117', 'ctest-policy1-02359339'] 2026-05-27 16:21:11,204 - INFO - VN ctest-vn4-49240190 Policy verification: verify_vn_policy_in_api_server, status: True 2026-05-27 16:21:11,204 - DEBUG - Verifying the vn in opserver 2026-05-27 16:21:11,204 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-13332117:ctest-vn4-49240190 virtual network link through opserver 10.0.0.41 2026-05-27 16:21:11,204 - DEBUG - Requesting: http://10.0.0.41:8081/analytics/uves/virtual-networks 2026-05-27 16:21:11,501 - DEBUG - Requesting: http://10.0.0.41:8081/analytics/uves/virtual-networks 2026-05-27 16:21:11,567 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-13332117:ctest-vn4-49240190', 'href': 'http://10.0.0.41:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-13332117:ctest-vn4-49240190?flat'} 2026-05-27 16:21:11,567 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-13332117:ctest-vn4-49240190 is found in opserver 2026-05-27 16:21:11,578 - DEBUG - Do not have enough data to verify VN in agent 2026-05-27 16:21:11,582 - DEBUG - VRF ids for VN ctest-vn4-49240190: {} 2026-05-27 16:21:11,583 - DEBUG - ====Verifying data for ctest-policy1-02359339 in API_Server ====== 2026-05-27 16:21:11,583 - DEBUG - Requesting: http://10.0.0.41:8082/domains 2026-05-27 16:21:11,588 - DEBUG - Requesting: http://10.0.0.41:8082/domain/a12584cf-bfc2-4bc5-85d4-a2c3336591bd 2026-05-27 16:21:11,600 - DEBUG - Requesting: http://10.0.0.41:8082/project/dba086d3-bfe9-49f3-830a-c3266395f6f9 2026-05-27 16:21:11,669 - DEBUG - Requesting: http://10.0.0.41:8082/network-policy/9d4ea474-fd5e-4ef1-84cf-18b45e09f781 2026-05-27 16:21:11,679 - INFO - Verified policy ctest-policy1-02359339 in API Server, Result: True 2026-05-27 16:21:11,679 - INFO - Done with setup and verification, moving onto test .. 2026-05-27 16:21:11,687 - INFO - Deleting VN ctest-vn4-49240190 2026-05-27 16:21:11,806 - DEBUG - Response for deleting network () 2026-05-27 16:21:11,806 - DEBUG - Requesting: http://10.0.0.41:8082/routing-instance/b4283eee-6372-46fd-9530-646784f6afc0 2026-05-27 16:21:11,811 - DEBUG - Response Code: 404 2026-05-27 16:21:11,811 - DEBUG - Requesting: http://10.0.0.41:8082/domains 2026-05-27 16:21:11,818 - DEBUG - Requesting: http://10.0.0.41:8082/domain/a12584cf-bfc2-4bc5-85d4-a2c3336591bd 2026-05-27 16:21:11,870 - DEBUG - Requesting: http://10.0.0.41:8082/project/dba086d3-bfe9-49f3-830a-c3266395f6f9 2026-05-27 16:21:11,938 - INFO - Validated that VN ctest-vn4-49240190 is not found in API Server 2026-05-27 16:21:11,949 - DEBUG - VN ctest-vn4-49240190 is not present in Agent 10.0.0.41 2026-05-27 16:21:11,949 - INFO - Validated that VN ctest-vn4-49240190 is not in any agent 2026-05-27 16:21:11,965 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-49240190 info 2026-05-27 16:21:11,992 - INFO - Deleted policy ctest-policy1-02359339 2026-05-27 16:21:12,148 - DEBUG - policy ctest-policy1-02359339 is not found in API Server 2026-05-27 16:21:12,402 - DEBUG - No XMPP flaps were noticed during the test