2026-10-28 11:59:07,540 - INFO - Domain Default found not creating 2026-10-28 11:59:07,933 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-35751981 not found, creating it 2026-10-28 11:59:08,605 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-35751981, ID : 0a7e6eff-b617-4979-9985-89a4ca08bc95 2026-10-28 11:59:10,925 - INFO - ================================================================================ 2026-10-28 11:59:10,925 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-10-28 11:59:11,212 - DEBUG - Nothing to compare xmpp stats {'10.0.0.38': {'10.20.0.29': '0'}} with 2026-10-28 11:59:11,212 - INFO - Initial checks done. Running the testcase now 2026-10-28 11:59:11,212 - INFO - 2026-10-28 11:59:11,212 - INFO - ================================================================================ 2026-10-28 11:59:11,212 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-10-28 11:59:11,212 - 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-10-28 11:59:11,517 - DEBUG - Nothing to compare xmpp stats {'10.0.0.38': {'10.20.0.29': '0'}} with 2026-10-28 11:59:11,517 - INFO - Initial checks done. Running the testcase now 2026-10-28 11:59:11,517 - INFO - 2026-10-28 11:59:12,027 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-35751981:ctest-vn4-05881304, 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-35751981:ctest-vn4-05881304, 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-35751981:ctest-vn4-05881304, 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-35751981:ctest-vn4-05881304, 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-10-28 11:59:12,704 - DEBUG - Response for create_network : {'network': {'id': 'dda559eb-cfd2-42b4-8a72-b8187ef0fccf', 'name': 'ctest-vn4-05881304', 'tenant_id': '0a7e6effb6174979998589a4ca08bc95', 'project_id': '0a7e6effb6174979998589a4ca08bc95', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'tags': [], 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-35751981', 'ctest-vn4-05881304'], 'port_security_enabled': True, 'description': ''}} 2026-10-28 11:59:12,936 - DEBUG - Response for create_subnet : {'subnet': {'id': '9a0c8b1a-bbab-4e06-8f9b-8844bb0df0f8', 'name': '', 'tenant_id': '0a7e6effb6174979998589a4ca08bc95', 'network_id': 'dda559eb-cfd2-42b4-8a72-b8187ef0fccf', 'ip_version': 4, 'cidr': '107.32.36.192/26', 'allocation_pools': [{'start': '107.32.36.194', 'end': '107.32.36.254'}], 'gateway_ip': '107.32.36.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '107.32.36.194', 'tags': [], 'project_id': '0a7e6effb6174979998589a4ca08bc95'}} 2026-10-28 11:59:13,164 - DEBUG - Response for create_subnet : {'subnet': {'id': '81a46e26-9825-4202-a157-cd7d69b549d0', 'name': '', 'tenant_id': '0a7e6effb6174979998589a4ca08bc95', 'network_id': 'dda559eb-cfd2-42b4-8a72-b8187ef0fccf', 'ip_version': 6, 'cidr': '33fa:4bda:cc4a:83fe:3989:c391::/96', 'allocation_pools': [{'start': '33fa:4bda:cc4a:83fe:3989:c391:0:2', 'end': '33fa:4bda:cc4a:83fe:3989:c391:ffff:fffe'}], 'gateway_ip': '33fa:4bda:cc4a:83fe:3989:c391:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '33fa:4bda:cc4a:83fe:3989:c391:0:2', 'tags': [], 'project_id': '0a7e6effb6174979998589a4ca08bc95'}} 2026-10-28 11:59:13,193 - INFO - Created VN ctest-vn4-05881304 2026-10-28 11:59:13,256 - DEBUG - VN ctest-vn4-05881304 UUID is dda559eb-cfd2-42b4-8a72-b8187ef0fccf 2026-10-28 11:59:13,537 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'dda559eb-cfd2-42b4-8a72-b8187ef0fccf', 'name': 'ctest-vn4-05881304', 'tenant_id': '0a7e6effb6174979998589a4ca08bc95', 'project_id': '0a7e6effb6174979998589a4ca08bc95', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'tags': [], 'subnets': ['9a0c8b1a-bbab-4e06-8f9b-8844bb0df0f8', '81a46e26-9825-4202-a157-cd7d69b549d0'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-35751981', 'ctest-vn4-05881304'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-35751981', 'ctest-policy1-04696893']], 'subnet_ipam': [{'subnet_cidr': '107.32.36.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '33fa:4bda:cc4a:83fe:3989:c391::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2026-10-28 11:59:13,728 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2026-10-28 11:59:14,135 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2026-10-28 11:59:14,172 - DEBUG - Requesting: http://10.0.0.38:8082/domain/9ec75fe0-c97a-4293-ab8e-ca4a53461a08 2026-10-28 11:59:14,199 - DEBUG - Requesting: http://10.0.0.38:8082/project/0a7e6eff-b617-4979-9985-89a4ca08bc95 2026-10-28 11:59:14,298 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/dda559eb-cfd2-42b4-8a72-b8187ef0fccf 2026-10-28 11:59:14,317 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/dda559eb-cfd2-42b4-8a72-b8187ef0fccf 2026-10-28 11:59:14,336 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/4fc0444f-4274-4b54-b662-339d62ff62a6 2026-10-28 11:59:14,349 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/4fc0444f-4274-4b54-b662-339d62ff62a6 2026-10-28 11:59:14,360 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/eba982a1-bf94-406b-9514-6467c9d0164a 2026-10-28 11:59:14,371 - DEBUG - Route Targets: ['target:64512:8000005'] 2026-10-28 11:59:14,371 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/dda559eb-cfd2-42b4-8a72-b8187ef0fccf 2026-10-28 11:59:14,385 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/4fc0444f-4274-4b54-b662-339d62ff62a6 2026-10-28 11:59:14,419 - INFO - Verified VN network id 12 for VN dda559eb-cfd2-42b4-8a72-b8187ef0fccf 2026-10-28 11:59:14,419 - INFO - Verifications in API Server for VN ctest-vn4-05881304 passed 2026-10-28 11:59:14,419 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/dda559eb-cfd2-42b4-8a72-b8187ef0fccf 2026-10-28 11:59:14,433 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/4fc0444f-4274-4b54-b662-339d62ff62a6 2026-10-28 11:59:14,444 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/4fc0444f-4274-4b54-b662-339d62ff62a6 2026-10-28 11:59:14,455 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/eba982a1-bf94-406b-9514-6467c9d0164a 2026-10-28 11:59:14,474 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-35751981:ctest-vn4-05881304', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-35751981', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '15971270522878182068', 'uuid-lslong': '9976238539927518415'}, 'enable': 'true', 'created': '2026-10-28T11:59:12', 'last-modified': '2026-10-28T11:59:13', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.980761'} 2026-10-28 11:59:14,484 - DEBUG - Route Targets: ['target:64512:8000005'] 2026-10-28 11:59:14,484 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-05881304 passed 2026-10-28 11:59:14,484 - DEBUG - ====Verifying policy data for ctest-vn4-05881304 in API_Server ====== 2026-10-28 11:59:14,484 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2026-10-28 11:59:14,493 - DEBUG - Requesting: http://10.0.0.38:8082/domain/9ec75fe0-c97a-4293-ab8e-ca4a53461a08 2026-10-28 11:59:14,507 - DEBUG - Requesting: http://10.0.0.38:8082/project/0a7e6eff-b617-4979-9985-89a4ca08bc95 2026-10-28 11:59:14,600 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/dda559eb-cfd2-42b4-8a72-b8187ef0fccf 2026-10-28 11:59:14,617 - DEBUG - ==>Verifying data for policy with id: 3f349c6d-9da2-43e5-8ea7-173cde44e56e, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-35751981', 'ctest-policy1-04696893'] 2026-10-28 11:59:14,617 - INFO - VN ctest-vn4-05881304 Policy verification: verify_vn_policy_in_api_server, status: True 2026-10-28 11:59:14,617 - DEBUG - Verifying the vn in opserver 2026-10-28 11:59:14,617 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-35751981:ctest-vn4-05881304 virtual network link through opserver 10.0.0.38 2026-10-28 11:59:14,618 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks 2026-10-28 11:59:15,031 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks 2026-10-28 11:59:15,121 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-35751981:ctest-vn4-05881304', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-35751981:ctest-vn4-05881304?flat'} 2026-10-28 11:59:15,122 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-35751981:ctest-vn4-05881304 is found in opserver 2026-10-28 11:59:15,141 - DEBUG - Do not have enough data to verify VN in agent 2026-10-28 11:59:15,149 - DEBUG - VRF ids for VN ctest-vn4-05881304: {} 2026-10-28 11:59:15,150 - DEBUG - ====Verifying data for ctest-policy1-04696893 in API_Server ====== 2026-10-28 11:59:15,150 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2026-10-28 11:59:15,159 - DEBUG - Requesting: http://10.0.0.38:8082/domain/9ec75fe0-c97a-4293-ab8e-ca4a53461a08 2026-10-28 11:59:15,177 - DEBUG - Requesting: http://10.0.0.38:8082/project/0a7e6eff-b617-4979-9985-89a4ca08bc95 2026-10-28 11:59:15,277 - DEBUG - Requesting: http://10.0.0.38:8082/network-policy/3f349c6d-9da2-43e5-8ea7-173cde44e56e 2026-10-28 11:59:15,294 - INFO - Verified policy ctest-policy1-04696893 in API Server, Result: True 2026-10-28 11:59:15,295 - INFO - Done with setup and verification, moving onto test .. 2026-10-28 11:59:15,311 - INFO - Deleting VN ctest-vn4-05881304 2026-10-28 11:59:15,520 - DEBUG - Response for deleting network () 2026-10-28 11:59:15,520 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/4fc0444f-4274-4b54-b662-339d62ff62a6 2026-10-28 11:59:15,531 - DEBUG - Response Code: 404 2026-10-28 11:59:15,531 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2026-10-28 11:59:15,545 - DEBUG - Requesting: http://10.0.0.38:8082/domain/9ec75fe0-c97a-4293-ab8e-ca4a53461a08 2026-10-28 11:59:15,568 - DEBUG - Requesting: http://10.0.0.38:8082/project/0a7e6eff-b617-4979-9985-89a4ca08bc95 2026-10-28 11:59:15,663 - INFO - Validated that VN ctest-vn4-05881304 is not found in API Server 2026-10-28 11:59:15,681 - DEBUG - VN ctest-vn4-05881304 is not present in Agent 10.0.0.38 2026-10-28 11:59:15,681 - INFO - Validated that VN ctest-vn4-05881304 is not in any agent 2026-10-28 11:59:15,706 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-05881304 info 2026-10-28 11:59:15,762 - INFO - Deleted policy ctest-policy1-04696893 2026-10-28 11:59:15,947 - DEBUG - policy ctest-policy1-04696893 is not found in API Server 2026-10-28 11:59:16,235 - DEBUG - No XMPP flaps were noticed during the test