2026-03-27 12:09:56,940 - INFO - Domain Default found not creating 2026-03-27 12:09:57,100 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-02443437 not found, creating it 2026-03-27 12:09:57,612 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-02443437, ID : 19ce458b-063c-4119-b559-4c88f7ce9621 2026-03-27 12:09:59,152 - INFO - ================================================================================ 2026-03-27 12:09:59,152 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-03-27 12:09:59,407 - DEBUG - Nothing to compare xmpp stats {'10.0.0.249': {'10.20.0.14': '0'}} with 2026-03-27 12:09:59,407 - INFO - Initial checks done. Running the testcase now 2026-03-27 12:09:59,407 - INFO - 2026-03-27 12:09:59,407 - INFO - ================================================================================ 2026-03-27 12:09:59,407 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-03-27 12:09:59,407 - 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-03-27 12:09:59,700 - DEBUG - Nothing to compare xmpp stats {'10.0.0.249': {'10.20.0.14': '0'}} with 2026-03-27 12:09:59,700 - INFO - Initial checks done. Running the testcase now 2026-03-27 12:09:59,700 - INFO - 2026-03-27 12:10:00,075 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-02443437:ctest-vn4-89201811, 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-02443437:ctest-vn4-89201811, 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-02443437:ctest-vn4-89201811, 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-02443437:ctest-vn4-89201811, 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-03-27 12:10:00,604 - DEBUG - Response for create_network : {'network': {'id': '843d3fbb-3ddb-4608-8c8a-1b2ecbfacbf9', 'name': 'ctest-vn4-89201811', 'tenant_id': '19ce458b063c4119b5594c88f7ce9621', 'project_id': '19ce458b063c4119b5594c88f7ce9621', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-02443437', 'ctest-vn4-89201811'], 'port_security_enabled': True, 'description': ''}} 2026-03-27 12:10:00,820 - DEBUG - Response for create_subnet : {'subnet': {'id': '1d63f679-034e-40d0-95ef-47fc821d5c19', 'name': '', 'tenant_id': '19ce458b063c4119b5594c88f7ce9621', 'network_id': '843d3fbb-3ddb-4608-8c8a-1b2ecbfacbf9', 'ip_version': 4, 'cidr': '6.198.57.192/26', 'allocation_pools': [{'start': '6.198.57.194', 'end': '6.198.57.254'}], 'gateway_ip': '6.198.57.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '6.198.57.194', 'tags': [], 'project_id': '19ce458b063c4119b5594c88f7ce9621'}} 2026-03-27 12:10:01,024 - DEBUG - Response for create_subnet : {'subnet': {'id': '8e9dc2bd-2ff4-4eee-9830-a518521e99cd', 'name': '', 'tenant_id': '19ce458b063c4119b5594c88f7ce9621', 'network_id': '843d3fbb-3ddb-4608-8c8a-1b2ecbfacbf9', 'ip_version': 6, 'cidr': '2826:be04:fd1c:e718:4c74:19d1::/96', 'allocation_pools': [{'start': '2826:be04:fd1c:e718:4c74:19d1:0:2', 'end': '2826:be04:fd1c:e718:4c74:19d1:ffff:fffe'}], 'gateway_ip': '2826:be04:fd1c:e718:4c74:19d1:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '2826:be04:fd1c:e718:4c74:19d1:0:2', 'tags': [], 'project_id': '19ce458b063c4119b5594c88f7ce9621'}} 2026-03-27 12:10:01,045 - INFO - Created VN ctest-vn4-89201811 2026-03-27 12:10:01,098 - DEBUG - VN ctest-vn4-89201811 UUID is 843d3fbb-3ddb-4608-8c8a-1b2ecbfacbf9 2026-03-27 12:10:01,320 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '843d3fbb-3ddb-4608-8c8a-1b2ecbfacbf9', 'name': 'ctest-vn4-89201811', 'tenant_id': '19ce458b063c4119b5594c88f7ce9621', 'project_id': '19ce458b063c4119b5594c88f7ce9621', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['1d63f679-034e-40d0-95ef-47fc821d5c19', '8e9dc2bd-2ff4-4eee-9830-a518521e99cd'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-02443437', 'ctest-vn4-89201811'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-02443437', 'ctest-policy1-40879583']], 'subnet_ipam': [{'subnet_cidr': '6.198.57.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '2826:be04:fd1c:e718:4c74:19d1::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2026-03-27 12:10:01,490 - DEBUG - Requesting: http://10.0.0.249:8082/domains 2026-03-27 12:10:01,785 - DEBUG - Requesting: http://10.0.0.249:8082/domains 2026-03-27 12:10:01,817 - DEBUG - Requesting: http://10.0.0.249:8082/domain/1a2830ea-7c03-444f-9a6f-6351c73dbdec 2026-03-27 12:10:01,829 - DEBUG - Requesting: http://10.0.0.249:8082/project/19ce458b-063c-4119-b559-4c88f7ce9621 2026-03-27 12:10:01,910 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/843d3fbb-3ddb-4608-8c8a-1b2ecbfacbf9 2026-03-27 12:10:01,927 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/843d3fbb-3ddb-4608-8c8a-1b2ecbfacbf9 2026-03-27 12:10:01,939 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/7710d755-f8c7-4950-b682-71fa5f6e1cbe 2026-03-27 12:10:01,946 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/7710d755-f8c7-4950-b682-71fa5f6e1cbe 2026-03-27 12:10:01,954 - DEBUG - Requesting: http://10.0.0.249:8082/route-target/fa215ac1-a2b6-4b8e-882d-7fc5659efc46 2026-03-27 12:10:01,960 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-03-27 12:10:01,960 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/843d3fbb-3ddb-4608-8c8a-1b2ecbfacbf9 2026-03-27 12:10:01,974 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/7710d755-f8c7-4950-b682-71fa5f6e1cbe 2026-03-27 12:10:01,988 - INFO - Verified VN network id 11 for VN 843d3fbb-3ddb-4608-8c8a-1b2ecbfacbf9 2026-03-27 12:10:01,988 - INFO - Verifications in API Server for VN ctest-vn4-89201811 passed 2026-03-27 12:10:01,988 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/843d3fbb-3ddb-4608-8c8a-1b2ecbfacbf9 2026-03-27 12:10:01,997 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/7710d755-f8c7-4950-b682-71fa5f6e1cbe 2026-03-27 12:10:02,006 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/7710d755-f8c7-4950-b682-71fa5f6e1cbe 2026-03-27 12:10:02,014 - DEBUG - Requesting: http://10.0.0.249:8082/route-target/fa215ac1-a2b6-4b8e-882d-7fc5659efc46 2026-03-27 12:10:02,025 - DEBUG - Control-node 10.0.0.249 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-02443437:ctest-vn4-89201811', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-02443437', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '9528842460015052296', 'uuid-lslong': '10126936599900638201'}, 'enable': 'true', 'created': '2026-03-27T12:10:00', 'last-modified': '2026-03-27T12:10:01', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.742364'} 2026-03-27 12:10:02,031 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-03-27 12:10:02,031 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-89201811 passed 2026-03-27 12:10:02,031 - DEBUG - ====Verifying policy data for ctest-vn4-89201811 in API_Server ====== 2026-03-27 12:10:02,031 - DEBUG - Requesting: http://10.0.0.249:8082/domains 2026-03-27 12:10:02,037 - DEBUG - Requesting: http://10.0.0.249:8082/domain/1a2830ea-7c03-444f-9a6f-6351c73dbdec 2026-03-27 12:10:02,047 - DEBUG - Requesting: http://10.0.0.249:8082/project/19ce458b-063c-4119-b559-4c88f7ce9621 2026-03-27 12:10:02,116 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/843d3fbb-3ddb-4608-8c8a-1b2ecbfacbf9 2026-03-27 12:10:02,125 - DEBUG - ==>Verifying data for policy with id: 88dfb4ea-c957-4e67-b455-fd271451b380, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-02443437', 'ctest-policy1-40879583'] 2026-03-27 12:10:02,126 - INFO - VN ctest-vn4-89201811 Policy verification: verify_vn_policy_in_api_server, status: True 2026-03-27 12:10:02,126 - DEBUG - Verifying the vn in opserver 2026-03-27 12:10:02,126 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-02443437:ctest-vn4-89201811 virtual network link through opserver 10.0.0.249 2026-03-27 12:10:02,126 - DEBUG - Requesting: http://10.0.0.249:8081/analytics/uves/virtual-networks 2026-03-27 12:10:02,420 - DEBUG - Requesting: http://10.0.0.249:8081/analytics/uves/virtual-networks 2026-03-27 12:10:02,489 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-02443437:ctest-vn4-89201811', 'href': 'http://10.0.0.249:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-02443437:ctest-vn4-89201811?flat'} 2026-03-27 12:10:02,489 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-02443437:ctest-vn4-89201811 is found in opserver 2026-03-27 12:10:02,499 - DEBUG - Do not have enough data to verify VN in agent 2026-03-27 12:10:02,502 - DEBUG - VRF ids for VN ctest-vn4-89201811: {} 2026-03-27 12:10:02,503 - DEBUG - ====Verifying data for ctest-policy1-40879583 in API_Server ====== 2026-03-27 12:10:02,503 - DEBUG - Requesting: http://10.0.0.249:8082/domains 2026-03-27 12:10:02,508 - DEBUG - Requesting: http://10.0.0.249:8082/domain/1a2830ea-7c03-444f-9a6f-6351c73dbdec 2026-03-27 12:10:02,518 - DEBUG - Requesting: http://10.0.0.249:8082/project/19ce458b-063c-4119-b559-4c88f7ce9621 2026-03-27 12:10:02,593 - DEBUG - Requesting: http://10.0.0.249:8082/network-policy/88dfb4ea-c957-4e67-b455-fd271451b380 2026-03-27 12:10:02,605 - INFO - Verified policy ctest-policy1-40879583 in API Server, Result: True 2026-03-27 12:10:02,606 - INFO - Done with setup and verification, moving onto test .. 2026-03-27 12:10:02,615 - INFO - Deleting VN ctest-vn4-89201811 2026-03-27 12:10:02,754 - DEBUG - Response for deleting network () 2026-03-27 12:10:02,755 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/7710d755-f8c7-4950-b682-71fa5f6e1cbe 2026-03-27 12:10:02,761 - DEBUG - Response Code: 404 2026-03-27 12:10:02,761 - DEBUG - Requesting: http://10.0.0.249:8082/domains 2026-03-27 12:10:02,767 - DEBUG - Requesting: http://10.0.0.249:8082/domain/1a2830ea-7c03-444f-9a6f-6351c73dbdec 2026-03-27 12:10:02,819 - DEBUG - Requesting: http://10.0.0.249:8082/project/19ce458b-063c-4119-b559-4c88f7ce9621 2026-03-27 12:10:02,893 - INFO - Validated that VN ctest-vn4-89201811 is not found in API Server 2026-03-27 12:10:02,904 - DEBUG - VN ctest-vn4-89201811 is not present in Agent 10.0.0.249 2026-03-27 12:10:02,904 - INFO - Validated that VN ctest-vn4-89201811 is not in any agent 2026-03-27 12:10:02,919 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-89201811 info 2026-03-27 12:10:02,943 - INFO - Deleted policy ctest-policy1-40879583 2026-03-27 12:10:03,110 - DEBUG - policy ctest-policy1-40879583 is not found in API Server 2026-03-27 12:10:03,364 - DEBUG - No XMPP flaps were noticed during the test