2026-03-02 13:59:39,123 - INFO - Domain Default found not creating 2026-03-02 13:59:39,282 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-40267891 not found, creating it 2026-03-02 13:59:39,704 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-40267891, ID : 5d10546b-4322-4647-ba28-c88d9c9f1a50 2026-03-02 13:59:41,042 - INFO - ================================================================================ 2026-03-02 13:59:41,042 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-03-02 13:59:41,300 - DEBUG - Nothing to compare xmpp stats {'10.0.0.22': {'10.20.0.254': '0'}} with 2026-03-02 13:59:41,300 - INFO - Initial checks done. Running the testcase now 2026-03-02 13:59:41,300 - INFO - 2026-03-02 13:59:41,300 - INFO - ================================================================================ 2026-03-02 13:59:41,300 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-03-02 13:59:41,300 - 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-02 13:59:41,584 - DEBUG - Nothing to compare xmpp stats {'10.0.0.22': {'10.20.0.254': '0'}} with 2026-03-02 13:59:41,584 - INFO - Initial checks done. Running the testcase now 2026-03-02 13:59:41,584 - INFO - 2026-03-02 13:59:41,922 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-40267891:ctest-vn4-47646396, 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-40267891:ctest-vn4-47646396, 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-40267891:ctest-vn4-47646396, 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-40267891:ctest-vn4-47646396, 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-02 13:59:42,393 - DEBUG - Response for create_network : {'network': {'id': '40636a08-f8f0-43f1-b3e8-0e572d823935', 'name': 'ctest-vn4-47646396', 'tenant_id': '5d10546b43224647ba28c88d9c9f1a50', 'project_id': '5d10546b43224647ba28c88d9c9f1a50', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-40267891', 'ctest-vn4-47646396'], 'port_security_enabled': True, 'description': ''}} 2026-03-02 13:59:42,537 - DEBUG - Response for create_subnet : {'subnet': {'id': 'd51330fb-9b78-4c29-89e8-df404d573da6', 'name': '', 'tenant_id': '5d10546b43224647ba28c88d9c9f1a50', 'network_id': '40636a08-f8f0-43f1-b3e8-0e572d823935', 'ip_version': 4, 'cidr': '104.128.206.0/26', 'allocation_pools': [{'start': '104.128.206.2', 'end': '104.128.206.62'}], 'gateway_ip': '104.128.206.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '104.128.206.2', 'tags': [], 'project_id': '5d10546b43224647ba28c88d9c9f1a50'}} 2026-03-02 13:59:42,660 - DEBUG - Response for create_subnet : {'subnet': {'id': '78fe58ad-a9dc-4d3d-b2ca-4fd2c656b4fd', 'name': '', 'tenant_id': '5d10546b43224647ba28c88d9c9f1a50', 'network_id': '40636a08-f8f0-43f1-b3e8-0e572d823935', 'ip_version': 6, 'cidr': '372f:ba9a:5755:fbdd:6754:bb69::/96', 'allocation_pools': [{'start': '372f:ba9a:5755:fbdd:6754:bb69:0:2', 'end': '372f:ba9a:5755:fbdd:6754:bb69:ffff:fffe'}], 'gateway_ip': '372f:ba9a:5755:fbdd:6754:bb69:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '372f:ba9a:5755:fbdd:6754:bb69:0:2', 'tags': [], 'project_id': '5d10546b43224647ba28c88d9c9f1a50'}} 2026-03-02 13:59:42,676 - INFO - Created VN ctest-vn4-47646396 2026-03-02 13:59:42,728 - DEBUG - VN ctest-vn4-47646396 UUID is 40636a08-f8f0-43f1-b3e8-0e572d823935 2026-03-02 13:59:42,901 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '40636a08-f8f0-43f1-b3e8-0e572d823935', 'name': 'ctest-vn4-47646396', 'tenant_id': '5d10546b43224647ba28c88d9c9f1a50', 'project_id': '5d10546b43224647ba28c88d9c9f1a50', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['d51330fb-9b78-4c29-89e8-df404d573da6', '78fe58ad-a9dc-4d3d-b2ca-4fd2c656b4fd'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-40267891', 'ctest-vn4-47646396'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-40267891', 'ctest-policy1-35556895']], 'subnet_ipam': [{'subnet_cidr': '104.128.206.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '372f:ba9a:5755:fbdd:6754:bb69::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2026-03-02 13:59:43,056 - DEBUG - Requesting: http://10.0.0.22:8082/domains 2026-03-02 13:59:43,343 - DEBUG - Requesting: http://10.0.0.22:8082/domains 2026-03-02 13:59:43,368 - DEBUG - Requesting: http://10.0.0.22:8082/domain/d72e50e9-ba75-491c-b622-95ee864bd57a 2026-03-02 13:59:43,378 - DEBUG - Requesting: http://10.0.0.22:8082/project/5d10546b-4322-4647-ba28-c88d9c9f1a50 2026-03-02 13:59:43,447 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/40636a08-f8f0-43f1-b3e8-0e572d823935 2026-03-02 13:59:43,458 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/40636a08-f8f0-43f1-b3e8-0e572d823935 2026-03-02 13:59:43,466 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/a0ae8637-eaef-4d44-8a07-0355a890862b 2026-03-02 13:59:43,472 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/a0ae8637-eaef-4d44-8a07-0355a890862b 2026-03-02 13:59:43,477 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/502bb86a-aba8-4a92-845e-ed140503f1be 2026-03-02 13:59:43,482 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-03-02 13:59:43,482 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/40636a08-f8f0-43f1-b3e8-0e572d823935 2026-03-02 13:59:43,490 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/a0ae8637-eaef-4d44-8a07-0355a890862b 2026-03-02 13:59:43,500 - INFO - Verified VN network id 11 for VN 40636a08-f8f0-43f1-b3e8-0e572d823935 2026-03-02 13:59:43,501 - INFO - Verifications in API Server for VN ctest-vn4-47646396 passed 2026-03-02 13:59:43,501 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/40636a08-f8f0-43f1-b3e8-0e572d823935 2026-03-02 13:59:43,508 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/a0ae8637-eaef-4d44-8a07-0355a890862b 2026-03-02 13:59:43,513 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/a0ae8637-eaef-4d44-8a07-0355a890862b 2026-03-02 13:59:43,518 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/502bb86a-aba8-4a92-845e-ed140503f1be 2026-03-02 13:59:43,528 - DEBUG - Control-node 10.0.0.22 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-40267891:ctest-vn4-47646396', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-40267891', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '4639668627890521073', 'uuid-lslong': '12963627294974425397'}, 'enable': 'true', 'created': '2026-03-02T13:59:42', 'last-modified': '2026-03-02T13:59:42', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.649389'} 2026-03-02 13:59:43,533 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-03-02 13:59:43,533 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-47646396 passed 2026-03-02 13:59:43,533 - DEBUG - ====Verifying policy data for ctest-vn4-47646396 in API_Server ====== 2026-03-02 13:59:43,533 - DEBUG - Requesting: http://10.0.0.22:8082/domains 2026-03-02 13:59:43,537 - DEBUG - Requesting: http://10.0.0.22:8082/domain/d72e50e9-ba75-491c-b622-95ee864bd57a 2026-03-02 13:59:43,546 - DEBUG - Requesting: http://10.0.0.22:8082/project/5d10546b-4322-4647-ba28-c88d9c9f1a50 2026-03-02 13:59:43,609 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/40636a08-f8f0-43f1-b3e8-0e572d823935 2026-03-02 13:59:43,617 - DEBUG - ==>Verifying data for policy with id: d189db5d-3a23-4b34-a982-4739a761f205, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-40267891', 'ctest-policy1-35556895'] 2026-03-02 13:59:43,617 - INFO - VN ctest-vn4-47646396 Policy verification: verify_vn_policy_in_api_server, status: True 2026-03-02 13:59:43,617 - DEBUG - Verifying the vn in opserver 2026-03-02 13:59:43,617 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-40267891:ctest-vn4-47646396 virtual network link through opserver 10.0.0.22 2026-03-02 13:59:43,617 - DEBUG - Requesting: http://10.0.0.22:8081/analytics/uves/virtual-networks 2026-03-02 13:59:43,904 - DEBUG - Requesting: http://10.0.0.22:8081/analytics/uves/virtual-networks 2026-03-02 13:59:43,956 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-40267891:ctest-vn4-47646396', 'href': 'http://10.0.0.22:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-40267891:ctest-vn4-47646396?flat'} 2026-03-02 13:59:43,957 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-40267891:ctest-vn4-47646396 is found in opserver 2026-03-02 13:59:43,964 - DEBUG - Do not have enough data to verify VN in agent 2026-03-02 13:59:43,968 - DEBUG - VRF ids for VN ctest-vn4-47646396: {} 2026-03-02 13:59:43,968 - DEBUG - ====Verifying data for ctest-policy1-35556895 in API_Server ====== 2026-03-02 13:59:43,968 - DEBUG - Requesting: http://10.0.0.22:8082/domains 2026-03-02 13:59:43,972 - DEBUG - Requesting: http://10.0.0.22:8082/domain/d72e50e9-ba75-491c-b622-95ee864bd57a 2026-03-02 13:59:43,981 - DEBUG - Requesting: http://10.0.0.22:8082/project/5d10546b-4322-4647-ba28-c88d9c9f1a50 2026-03-02 13:59:44,046 - DEBUG - Requesting: http://10.0.0.22:8082/network-policy/d189db5d-3a23-4b34-a982-4739a761f205 2026-03-02 13:59:44,054 - INFO - Verified policy ctest-policy1-35556895 in API Server, Result: True 2026-03-02 13:59:44,054 - INFO - Done with setup and verification, moving onto test .. 2026-03-02 13:59:44,060 - INFO - Deleting VN ctest-vn4-47646396 2026-03-02 13:59:44,151 - DEBUG - Response for deleting network () 2026-03-02 13:59:44,151 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/a0ae8637-eaef-4d44-8a07-0355a890862b 2026-03-02 13:59:44,155 - DEBUG - Response Code: 404 2026-03-02 13:59:44,155 - DEBUG - Requesting: http://10.0.0.22:8082/domains 2026-03-02 13:59:44,159 - DEBUG - Requesting: http://10.0.0.22:8082/domain/d72e50e9-ba75-491c-b622-95ee864bd57a 2026-03-02 13:59:44,212 - DEBUG - Requesting: http://10.0.0.22:8082/project/5d10546b-4322-4647-ba28-c88d9c9f1a50 2026-03-02 13:59:44,277 - INFO - Validated that VN ctest-vn4-47646396 is not found in API Server 2026-03-02 13:59:44,285 - DEBUG - VN ctest-vn4-47646396 is not present in Agent 10.0.0.22 2026-03-02 13:59:44,285 - INFO - Validated that VN ctest-vn4-47646396 is not in any agent 2026-03-02 13:59:44,296 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-47646396 info 2026-03-02 13:59:44,314 - INFO - Deleted policy ctest-policy1-35556895 2026-03-02 13:59:44,476 - DEBUG - policy ctest-policy1-35556895 is not found in API Server 2026-03-02 13:59:44,729 - DEBUG - No XMPP flaps were noticed during the test