2026-01-05 02:03:18,101 - INFO - Domain Default found not creating 2026-01-05 02:03:18,288 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-87298012 not found, creating it 2026-01-05 02:03:18,962 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-87298012, ID : 924848d8-a908-4081-8ab8-dad77ef2799f 2026-01-05 02:03:20,427 - INFO - ================================================================================ 2026-01-05 02:03:20,427 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-01-05 02:03:20,683 - DEBUG - Nothing to compare xmpp stats {'10.0.0.242': {'10.20.0.17': '0'}} with 2026-01-05 02:03:20,683 - INFO - Initial checks done. Running the testcase now 2026-01-05 02:03:20,683 - INFO - 2026-01-05 02:03:20,683 - INFO - ================================================================================ 2026-01-05 02:03:20,683 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-01-05 02:03:20,683 - 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-01-05 02:03:20,970 - DEBUG - Nothing to compare xmpp stats {'10.0.0.242': {'10.20.0.17': '0'}} with 2026-01-05 02:03:20,970 - INFO - Initial checks done. Running the testcase now 2026-01-05 02:03:20,970 - INFO - 2026-01-05 02:03:21,318 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-87298012:ctest-vn4-78832739, 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-87298012:ctest-vn4-78832739, 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-87298012:ctest-vn4-78832739, 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-87298012:ctest-vn4-78832739, 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-01-05 02:03:21,830 - DEBUG - Response for create_network : {'network': {'id': '57e6ae52-848c-4ea0-b2e1-21a537e6ba60', 'name': 'ctest-vn4-78832739', 'tenant_id': '924848d8a90840818ab8dad77ef2799f', 'project_id': '924848d8a90840818ab8dad77ef2799f', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-87298012', 'ctest-vn4-78832739'], 'port_security_enabled': True, 'description': ''}} 2026-01-05 02:03:21,997 - DEBUG - Response for create_subnet : {'subnet': {'id': '2fa4a26a-11ba-45b1-ac34-1c31d5b9b328', 'name': '', 'tenant_id': '924848d8a90840818ab8dad77ef2799f', 'network_id': '57e6ae52-848c-4ea0-b2e1-21a537e6ba60', 'ip_version': 4, 'cidr': '94.87.43.128/26', 'allocation_pools': [{'start': '94.87.43.130', 'end': '94.87.43.190'}], 'gateway_ip': '94.87.43.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '94.87.43.130', 'tags': [], 'project_id': '924848d8a90840818ab8dad77ef2799f'}} 2026-01-05 02:03:22,146 - DEBUG - Response for create_subnet : {'subnet': {'id': 'af313e92-56fe-4019-a73c-58ededf2ffec', 'name': '', 'tenant_id': '924848d8a90840818ab8dad77ef2799f', 'network_id': '57e6ae52-848c-4ea0-b2e1-21a537e6ba60', 'ip_version': 6, 'cidr': '2859:43e5:3ea0:27a1:57f9:e5f::/96', 'allocation_pools': [{'start': '2859:43e5:3ea0:27a1:57f9:e5f:0:2', 'end': '2859:43e5:3ea0:27a1:57f9:e5f:ffff:fffe'}], 'gateway_ip': '2859:43e5:3ea0:27a1:57f9:e5f:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '2859:43e5:3ea0:27a1:57f9:e5f:0:2', 'tags': [], 'project_id': '924848d8a90840818ab8dad77ef2799f'}} 2026-01-05 02:03:22,164 - INFO - Created VN ctest-vn4-78832739 2026-01-05 02:03:22,217 - DEBUG - VN ctest-vn4-78832739 UUID is 57e6ae52-848c-4ea0-b2e1-21a537e6ba60 2026-01-05 02:03:22,428 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '57e6ae52-848c-4ea0-b2e1-21a537e6ba60', 'name': 'ctest-vn4-78832739', 'tenant_id': '924848d8a90840818ab8dad77ef2799f', 'project_id': '924848d8a90840818ab8dad77ef2799f', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['2fa4a26a-11ba-45b1-ac34-1c31d5b9b328', 'af313e92-56fe-4019-a73c-58ededf2ffec'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-87298012', 'ctest-vn4-78832739'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-87298012', 'ctest-policy1-81200350']], 'subnet_ipam': [{'subnet_cidr': '94.87.43.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '2859:43e5:3ea0:27a1:57f9:e5f::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2026-01-05 02:03:22,581 - DEBUG - Requesting: http://10.0.0.242:8082/domains 2026-01-05 02:03:22,889 - DEBUG - Requesting: http://10.0.0.242:8082/domains 2026-01-05 02:03:22,922 - DEBUG - Requesting: http://10.0.0.242:8082/domain/b2479851-f431-47ba-af9b-506c73c10853 2026-01-05 02:03:22,933 - DEBUG - Requesting: http://10.0.0.242:8082/project/924848d8-a908-4081-8ab8-dad77ef2799f 2026-01-05 02:03:23,005 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/57e6ae52-848c-4ea0-b2e1-21a537e6ba60 2026-01-05 02:03:23,017 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/57e6ae52-848c-4ea0-b2e1-21a537e6ba60 2026-01-05 02:03:23,026 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/4b89dd4c-3250-4a42-a497-c45964e716bf 2026-01-05 02:03:23,032 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/4b89dd4c-3250-4a42-a497-c45964e716bf 2026-01-05 02:03:23,037 - DEBUG - Requesting: http://10.0.0.242:8082/route-target/02e38c7b-53f8-4610-8405-ff4eb46c3219 2026-01-05 02:03:23,043 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-01-05 02:03:23,043 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/57e6ae52-848c-4ea0-b2e1-21a537e6ba60 2026-01-05 02:03:23,052 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/4b89dd4c-3250-4a42-a497-c45964e716bf 2026-01-05 02:03:23,065 - INFO - Verified VN network id 11 for VN 57e6ae52-848c-4ea0-b2e1-21a537e6ba60 2026-01-05 02:03:23,066 - INFO - Verifications in API Server for VN ctest-vn4-78832739 passed 2026-01-05 02:03:23,066 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/57e6ae52-848c-4ea0-b2e1-21a537e6ba60 2026-01-05 02:03:23,076 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/4b89dd4c-3250-4a42-a497-c45964e716bf 2026-01-05 02:03:23,082 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/4b89dd4c-3250-4a42-a497-c45964e716bf 2026-01-05 02:03:23,088 - DEBUG - Requesting: http://10.0.0.242:8082/route-target/02e38c7b-53f8-4610-8405-ff4eb46c3219 2026-01-05 02:03:23,098 - DEBUG - Control-node 10.0.0.242 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-87298012:ctest-vn4-78832739', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-87298012', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '6333941595377520288', 'uuid-lslong': '12889620602002258528'}, 'enable': 'true', 'created': '2026-01-05T02:03:21', 'last-modified': '2026-01-05T02:03:22', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.694280'} 2026-01-05 02:03:23,109 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-01-05 02:03:23,109 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-78832739 passed 2026-01-05 02:03:23,110 - DEBUG - ====Verifying policy data for ctest-vn4-78832739 in API_Server ====== 2026-01-05 02:03:23,110 - DEBUG - Requesting: http://10.0.0.242:8082/domains 2026-01-05 02:03:23,114 - DEBUG - Requesting: http://10.0.0.242:8082/domain/b2479851-f431-47ba-af9b-506c73c10853 2026-01-05 02:03:23,124 - DEBUG - Requesting: http://10.0.0.242:8082/project/924848d8-a908-4081-8ab8-dad77ef2799f 2026-01-05 02:03:23,208 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/57e6ae52-848c-4ea0-b2e1-21a537e6ba60 2026-01-05 02:03:23,220 - DEBUG - ==>Verifying data for policy with id: 5bebd1ed-7399-416d-a5f2-0bf7b553c8b2, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-87298012', 'ctest-policy1-81200350'] 2026-01-05 02:03:23,220 - INFO - VN ctest-vn4-78832739 Policy verification: verify_vn_policy_in_api_server, status: True 2026-01-05 02:03:23,220 - DEBUG - Verifying the vn in opserver 2026-01-05 02:03:23,220 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-87298012:ctest-vn4-78832739 virtual network link through opserver 10.0.0.242 2026-01-05 02:03:23,221 - DEBUG - Requesting: http://10.0.0.242:8081/analytics/uves/virtual-networks 2026-01-05 02:03:23,652 - DEBUG - Requesting: http://10.0.0.242:8081/analytics/uves/virtual-networks 2026-01-05 02:03:23,741 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-87298012:ctest-vn4-78832739', 'href': 'http://10.0.0.242:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-87298012:ctest-vn4-78832739?flat'} 2026-01-05 02:03:23,741 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-87298012:ctest-vn4-78832739 is found in opserver 2026-01-05 02:03:23,749 - DEBUG - Do not have enough data to verify VN in agent 2026-01-05 02:03:23,754 - DEBUG - VRF ids for VN ctest-vn4-78832739: {} 2026-01-05 02:03:23,754 - DEBUG - ====Verifying data for ctest-policy1-81200350 in API_Server ====== 2026-01-05 02:03:23,754 - DEBUG - Requesting: http://10.0.0.242:8082/domains 2026-01-05 02:03:23,759 - DEBUG - Requesting: http://10.0.0.242:8082/domain/b2479851-f431-47ba-af9b-506c73c10853 2026-01-05 02:03:23,768 - DEBUG - Requesting: http://10.0.0.242:8082/project/924848d8-a908-4081-8ab8-dad77ef2799f 2026-01-05 02:03:23,849 - DEBUG - Requesting: http://10.0.0.242:8082/network-policy/5bebd1ed-7399-416d-a5f2-0bf7b553c8b2 2026-01-05 02:03:23,859 - INFO - Verified policy ctest-policy1-81200350 in API Server, Result: True 2026-01-05 02:03:23,859 - INFO - Done with setup and verification, moving onto test .. 2026-01-05 02:03:23,866 - INFO - Deleting VN ctest-vn4-78832739 2026-01-05 02:03:23,989 - DEBUG - Response for deleting network () 2026-01-05 02:03:23,989 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/4b89dd4c-3250-4a42-a497-c45964e716bf 2026-01-05 02:03:23,993 - DEBUG - Response Code: 404 2026-01-05 02:03:23,993 - DEBUG - Requesting: http://10.0.0.242:8082/domains 2026-01-05 02:03:23,996 - DEBUG - Requesting: http://10.0.0.242:8082/domain/b2479851-f431-47ba-af9b-506c73c10853 2026-01-05 02:03:24,045 - DEBUG - Requesting: http://10.0.0.242:8082/project/924848d8-a908-4081-8ab8-dad77ef2799f 2026-01-05 02:03:24,118 - INFO - Validated that VN ctest-vn4-78832739 is not found in API Server 2026-01-05 02:03:24,128 - DEBUG - VN ctest-vn4-78832739 is not present in Agent 10.0.0.242 2026-01-05 02:03:24,128 - INFO - Validated that VN ctest-vn4-78832739 is not in any agent 2026-01-05 02:03:24,141 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-78832739 info 2026-01-05 02:03:24,164 - INFO - Deleted policy ctest-policy1-81200350 2026-01-05 02:03:24,325 - DEBUG - policy ctest-policy1-81200350 is not found in API Server 2026-01-05 02:03:24,578 - DEBUG - No XMPP flaps were noticed during the test