2026-10-26 13:58:22,429 - INFO - Domain Default found not creating 2026-10-26 13:58:22,641 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-24815989 not found, creating it 2026-10-26 13:58:23,128 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-24815989, ID : 55a31227-89d9-46da-8803-cb96eda2eb27 2026-10-26 13:58:25,110 - INFO - ================================================================================ 2026-10-26 13:58:25,111 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-10-26 13:58:25,379 - DEBUG - Nothing to compare xmpp stats {'10.0.0.161': {'10.20.0.17': '0'}} with 2026-10-26 13:58:25,380 - INFO - Initial checks done. Running the testcase now 2026-10-26 13:58:25,380 - INFO - 2026-10-26 13:58:25,380 - INFO - ================================================================================ 2026-10-26 13:58:25,380 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-10-26 13:58:25,380 - 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-26 13:58:25,687 - DEBUG - Nothing to compare xmpp stats {'10.0.0.161': {'10.20.0.17': '0'}} with 2026-10-26 13:58:25,687 - INFO - Initial checks done. Running the testcase now 2026-10-26 13:58:25,687 - INFO - 2026-10-26 13:58:26,144 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-24815989:ctest-vn4-66134277, 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-24815989:ctest-vn4-66134277, 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-24815989:ctest-vn4-66134277, 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-24815989:ctest-vn4-66134277, 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-26 13:58:26,668 - DEBUG - Response for create_network : {'network': {'id': 'f126f79c-e046-460a-b16d-1d618d6fc9eb', 'name': 'ctest-vn4-66134277', 'tenant_id': '55a3122789d946da8803cb96eda2eb27', 'project_id': '55a3122789d946da8803cb96eda2eb27', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'tags': [], 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-24815989', 'ctest-vn4-66134277'], 'port_security_enabled': True, 'description': ''}} 2026-10-26 13:58:26,836 - DEBUG - Response for create_subnet : {'subnet': {'id': '92c926f3-ea23-4351-a7ec-d4ad77b1f238', 'name': '', 'tenant_id': '55a3122789d946da8803cb96eda2eb27', 'network_id': 'f126f79c-e046-460a-b16d-1d618d6fc9eb', 'ip_version': 4, 'cidr': '148.183.58.0/26', 'allocation_pools': [{'start': '148.183.58.2', 'end': '148.183.58.62'}], 'gateway_ip': '148.183.58.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '148.183.58.2', 'tags': [], 'project_id': '55a3122789d946da8803cb96eda2eb27'}} 2026-10-26 13:58:26,979 - DEBUG - Response for create_subnet : {'subnet': {'id': '172b74c9-4019-4120-8fbe-170faf4adbbc', 'name': '', 'tenant_id': '55a3122789d946da8803cb96eda2eb27', 'network_id': 'f126f79c-e046-460a-b16d-1d618d6fc9eb', 'ip_version': 6, 'cidr': '2e80:62bb:996b:9fe4:b6e4:5abc::/96', 'allocation_pools': [{'start': '2e80:62bb:996b:9fe4:b6e4:5abc:0:2', 'end': '2e80:62bb:996b:9fe4:b6e4:5abc:ffff:fffe'}], 'gateway_ip': '2e80:62bb:996b:9fe4:b6e4:5abc:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '2e80:62bb:996b:9fe4:b6e4:5abc:0:2', 'tags': [], 'project_id': '55a3122789d946da8803cb96eda2eb27'}} 2026-10-26 13:58:26,998 - INFO - Created VN ctest-vn4-66134277 2026-10-26 13:58:27,053 - DEBUG - VN ctest-vn4-66134277 UUID is f126f79c-e046-460a-b16d-1d618d6fc9eb 2026-10-26 13:58:27,246 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'f126f79c-e046-460a-b16d-1d618d6fc9eb', 'name': 'ctest-vn4-66134277', 'tenant_id': '55a3122789d946da8803cb96eda2eb27', 'project_id': '55a3122789d946da8803cb96eda2eb27', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'tags': [], 'subnets': ['92c926f3-ea23-4351-a7ec-d4ad77b1f238', '172b74c9-4019-4120-8fbe-170faf4adbbc'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-24815989', 'ctest-vn4-66134277'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-24815989', 'ctest-policy1-33186530']], 'subnet_ipam': [{'subnet_cidr': '148.183.58.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '2e80:62bb:996b:9fe4:b6e4:5abc::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2026-10-26 13:58:27,422 - DEBUG - Requesting: http://10.0.0.161:8082/domains 2026-10-26 13:58:27,795 - DEBUG - Requesting: http://10.0.0.161:8082/domains 2026-10-26 13:58:27,822 - DEBUG - Requesting: http://10.0.0.161:8082/domain/ffadc0d8-42de-4c25-ab83-80f0c00e8fd3 2026-10-26 13:58:27,836 - DEBUG - Requesting: http://10.0.0.161:8082/project/55a31227-89d9-46da-8803-cb96eda2eb27 2026-10-26 13:58:27,918 - DEBUG - Requesting: http://10.0.0.161:8082/virtual-network/f126f79c-e046-460a-b16d-1d618d6fc9eb 2026-10-26 13:58:27,931 - DEBUG - Requesting: http://10.0.0.161:8082/virtual-network/f126f79c-e046-460a-b16d-1d618d6fc9eb 2026-10-26 13:58:27,941 - DEBUG - Requesting: http://10.0.0.161:8082/routing-instance/d1811bec-bc46-407e-868f-15ed362cc19a 2026-10-26 13:58:27,948 - DEBUG - Requesting: http://10.0.0.161:8082/routing-instance/d1811bec-bc46-407e-868f-15ed362cc19a 2026-10-26 13:58:27,955 - DEBUG - Requesting: http://10.0.0.161:8082/route-target/d0c1deeb-6445-4f64-8973-b932a0a179c8 2026-10-26 13:58:27,960 - DEBUG - Route Targets: ['target:64512:8000005'] 2026-10-26 13:58:27,961 - DEBUG - Requesting: http://10.0.0.161:8082/virtual-network/f126f79c-e046-460a-b16d-1d618d6fc9eb 2026-10-26 13:58:27,969 - DEBUG - Requesting: http://10.0.0.161:8082/routing-instance/d1811bec-bc46-407e-868f-15ed362cc19a 2026-10-26 13:58:27,981 - INFO - Verified VN network id 12 for VN f126f79c-e046-460a-b16d-1d618d6fc9eb 2026-10-26 13:58:27,981 - INFO - Verifications in API Server for VN ctest-vn4-66134277 passed 2026-10-26 13:58:27,981 - DEBUG - Requesting: http://10.0.0.161:8082/virtual-network/f126f79c-e046-460a-b16d-1d618d6fc9eb 2026-10-26 13:58:27,990 - DEBUG - Requesting: http://10.0.0.161:8082/routing-instance/d1811bec-bc46-407e-868f-15ed362cc19a 2026-10-26 13:58:27,996 - DEBUG - Requesting: http://10.0.0.161:8082/routing-instance/d1811bec-bc46-407e-868f-15ed362cc19a 2026-10-26 13:58:28,001 - DEBUG - Requesting: http://10.0.0.161:8082/route-target/d0c1deeb-6445-4f64-8973-b932a0a179c8 2026-10-26 13:58:28,014 - DEBUG - Control-node 10.0.0.161 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-24815989:ctest-vn4-66134277', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-24815989', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '17376848465405298186', 'uuid-lslong': '12784907221996653035'}, 'enable': 'true', 'created': '2026-10-26T13:58:26', 'last-modified': '2026-10-26T13:58:27', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.788571'} 2026-10-26 13:58:28,021 - DEBUG - Route Targets: ['target:64512:8000005'] 2026-10-26 13:58:28,021 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-66134277 passed 2026-10-26 13:58:28,022 - DEBUG - ====Verifying policy data for ctest-vn4-66134277 in API_Server ====== 2026-10-26 13:58:28,022 - DEBUG - Requesting: http://10.0.0.161:8082/domains 2026-10-26 13:58:28,028 - DEBUG - Requesting: http://10.0.0.161:8082/domain/ffadc0d8-42de-4c25-ab83-80f0c00e8fd3 2026-10-26 13:58:28,042 - DEBUG - Requesting: http://10.0.0.161:8082/project/55a31227-89d9-46da-8803-cb96eda2eb27 2026-10-26 13:58:28,116 - DEBUG - Requesting: http://10.0.0.161:8082/virtual-network/f126f79c-e046-460a-b16d-1d618d6fc9eb 2026-10-26 13:58:28,128 - DEBUG - ==>Verifying data for policy with id: d313cb96-a9b7-4512-b3e4-daa0475ebdf0, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-24815989', 'ctest-policy1-33186530'] 2026-10-26 13:58:28,128 - INFO - VN ctest-vn4-66134277 Policy verification: verify_vn_policy_in_api_server, status: True 2026-10-26 13:58:28,128 - DEBUG - Verifying the vn in opserver 2026-10-26 13:58:28,128 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-24815989:ctest-vn4-66134277 virtual network link through opserver 10.0.0.161 2026-10-26 13:58:28,128 - DEBUG - Requesting: http://10.0.0.161:8081/analytics/uves/virtual-networks 2026-10-26 13:58:28,505 - DEBUG - Requesting: http://10.0.0.161:8081/analytics/uves/virtual-networks 2026-10-26 13:58:28,557 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-24815989:ctest-vn4-66134277', 'href': 'http://10.0.0.161:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-24815989:ctest-vn4-66134277?flat'} 2026-10-26 13:58:28,557 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-24815989:ctest-vn4-66134277 is found in opserver 2026-10-26 13:58:28,568 - DEBUG - Do not have enough data to verify VN in agent 2026-10-26 13:58:28,573 - DEBUG - VRF ids for VN ctest-vn4-66134277: {} 2026-10-26 13:58:28,574 - DEBUG - ====Verifying data for ctest-policy1-33186530 in API_Server ====== 2026-10-26 13:58:28,574 - DEBUG - Requesting: http://10.0.0.161:8082/domains 2026-10-26 13:58:28,579 - DEBUG - Requesting: http://10.0.0.161:8082/domain/ffadc0d8-42de-4c25-ab83-80f0c00e8fd3 2026-10-26 13:58:28,591 - DEBUG - Requesting: http://10.0.0.161:8082/project/55a31227-89d9-46da-8803-cb96eda2eb27 2026-10-26 13:58:28,659 - DEBUG - Requesting: http://10.0.0.161:8082/network-policy/d313cb96-a9b7-4512-b3e4-daa0475ebdf0 2026-10-26 13:58:28,670 - INFO - Verified policy ctest-policy1-33186530 in API Server, Result: True 2026-10-26 13:58:28,670 - INFO - Done with setup and verification, moving onto test .. 2026-10-26 13:58:28,681 - INFO - Deleting VN ctest-vn4-66134277 2026-10-26 13:58:28,868 - DEBUG - Response for deleting network () 2026-10-26 13:58:28,868 - DEBUG - Requesting: http://10.0.0.161:8082/routing-instance/d1811bec-bc46-407e-868f-15ed362cc19a 2026-10-26 13:58:28,878 - DEBUG - Response Code: 404 2026-10-26 13:58:28,879 - DEBUG - Requesting: http://10.0.0.161:8082/domains 2026-10-26 13:58:28,891 - DEBUG - Requesting: http://10.0.0.161:8082/domain/ffadc0d8-42de-4c25-ab83-80f0c00e8fd3 2026-10-26 13:58:28,920 - DEBUG - Requesting: http://10.0.0.161:8082/project/55a31227-89d9-46da-8803-cb96eda2eb27 2026-10-26 13:58:29,025 - INFO - Validated that VN ctest-vn4-66134277 is not found in API Server 2026-10-26 13:58:29,049 - DEBUG - VN ctest-vn4-66134277 is not present in Agent 10.0.0.161 2026-10-26 13:58:29,049 - INFO - Validated that VN ctest-vn4-66134277 is not in any agent 2026-10-26 13:58:29,082 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-66134277 info 2026-10-26 13:58:29,120 - INFO - Deleted policy ctest-policy1-33186530 2026-10-26 13:58:29,309 - DEBUG - policy ctest-policy1-33186530 is not found in API Server 2026-10-26 13:58:29,605 - DEBUG - No XMPP flaps were noticed during the test