2026-10-02 16:25:10,405 - INFO - Domain Default found not creating 2026-10-02 16:25:10,588 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-92415235 not found, creating it 2026-10-02 16:25:11,093 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-92415235, ID : f5424b69-1cb0-4b82-b70e-52ff74d42796 2026-10-02 16:25:12,831 - INFO - ================================================================================ 2026-10-02 16:25:12,831 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-10-02 16:25:13,105 - DEBUG - Nothing to compare xmpp stats {'10.0.0.50': {'10.20.0.17': '0'}} with 2026-10-02 16:25:13,105 - INFO - Initial checks done. Running the testcase now 2026-10-02 16:25:13,105 - INFO - 2026-10-02 16:25:13,105 - INFO - ================================================================================ 2026-10-02 16:25:13,105 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-10-02 16:25:13,106 - 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-02 16:25:13,399 - DEBUG - Nothing to compare xmpp stats {'10.0.0.50': {'10.20.0.17': '0'}} with 2026-10-02 16:25:13,399 - INFO - Initial checks done. Running the testcase now 2026-10-02 16:25:13,399 - INFO - 2026-10-02 16:25:13,833 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-92415235:ctest-vn4-65358973, 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-92415235:ctest-vn4-65358973, 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-92415235:ctest-vn4-65358973, 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-92415235:ctest-vn4-65358973, 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-02 16:25:14,402 - DEBUG - Response for create_network : {'network': {'id': 'cb39ae23-19ab-4bbe-9126-04a1993d2c6f', 'name': 'ctest-vn4-65358973', 'tenant_id': 'f5424b691cb04b82b70e52ff74d42796', 'project_id': 'f5424b691cb04b82b70e52ff74d42796', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'tags': [], 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-92415235', 'ctest-vn4-65358973'], 'port_security_enabled': True, 'description': ''}} 2026-10-02 16:25:14,652 - DEBUG - Response for create_subnet : {'subnet': {'id': '6f3c45e3-b7e7-4448-be82-94040f5ac6dc', 'name': '', 'tenant_id': 'f5424b691cb04b82b70e52ff74d42796', 'network_id': 'cb39ae23-19ab-4bbe-9126-04a1993d2c6f', 'ip_version': 4, 'cidr': '75.223.46.192/26', 'allocation_pools': [{'start': '75.223.46.194', 'end': '75.223.46.254'}], 'gateway_ip': '75.223.46.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '75.223.46.194', 'tags': [], 'project_id': 'f5424b691cb04b82b70e52ff74d42796'}} 2026-10-02 16:25:14,850 - DEBUG - Response for create_subnet : {'subnet': {'id': 'bf79042e-f95e-44f7-89ab-b306ec26c908', 'name': '', 'tenant_id': 'f5424b691cb04b82b70e52ff74d42796', 'network_id': 'cb39ae23-19ab-4bbe-9126-04a1993d2c6f', 'ip_version': 6, 'cidr': '34b5:abd9:7bff:b8ce:5238:e511::/96', 'allocation_pools': [{'start': '34b5:abd9:7bff:b8ce:5238:e511:0:2', 'end': '34b5:abd9:7bff:b8ce:5238:e511:ffff:fffe'}], 'gateway_ip': '34b5:abd9:7bff:b8ce:5238:e511:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '34b5:abd9:7bff:b8ce:5238:e511:0:2', 'tags': [], 'project_id': 'f5424b691cb04b82b70e52ff74d42796'}} 2026-10-02 16:25:14,869 - INFO - Created VN ctest-vn4-65358973 2026-10-02 16:25:14,924 - DEBUG - VN ctest-vn4-65358973 UUID is cb39ae23-19ab-4bbe-9126-04a1993d2c6f 2026-10-02 16:25:15,168 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'cb39ae23-19ab-4bbe-9126-04a1993d2c6f', 'name': 'ctest-vn4-65358973', 'tenant_id': 'f5424b691cb04b82b70e52ff74d42796', 'project_id': 'f5424b691cb04b82b70e52ff74d42796', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'tags': [], 'subnets': ['6f3c45e3-b7e7-4448-be82-94040f5ac6dc', 'bf79042e-f95e-44f7-89ab-b306ec26c908'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-92415235', 'ctest-vn4-65358973'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-92415235', 'ctest-policy1-87296401']], 'subnet_ipam': [{'subnet_cidr': '75.223.46.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '34b5:abd9:7bff:b8ce:5238:e511::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2026-10-02 16:25:15,348 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2026-10-02 16:25:15,719 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2026-10-02 16:25:15,750 - DEBUG - Requesting: http://10.0.0.50:8082/domain/4bd6f58e-ca35-43c6-b25d-dc4d7bb82c85 2026-10-02 16:25:15,764 - DEBUG - Requesting: http://10.0.0.50:8082/project/f5424b69-1cb0-4b82-b70e-52ff74d42796 2026-10-02 16:25:15,840 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/cb39ae23-19ab-4bbe-9126-04a1993d2c6f 2026-10-02 16:25:15,853 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/cb39ae23-19ab-4bbe-9126-04a1993d2c6f 2026-10-02 16:25:15,865 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/a75c8338-c1a9-482d-9f57-24cce784ba98 2026-10-02 16:25:15,874 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/a75c8338-c1a9-482d-9f57-24cce784ba98 2026-10-02 16:25:15,882 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/255d7d2c-7e82-4c73-b2b2-41960c587796 2026-10-02 16:25:15,889 - DEBUG - Route Targets: ['target:64512:8000005'] 2026-10-02 16:25:15,889 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/cb39ae23-19ab-4bbe-9126-04a1993d2c6f 2026-10-02 16:25:15,899 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/a75c8338-c1a9-482d-9f57-24cce784ba98 2026-10-02 16:25:15,915 - INFO - Verified VN network id 12 for VN cb39ae23-19ab-4bbe-9126-04a1993d2c6f 2026-10-02 16:25:15,915 - INFO - Verifications in API Server for VN ctest-vn4-65358973 passed 2026-10-02 16:25:15,915 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/cb39ae23-19ab-4bbe-9126-04a1993d2c6f 2026-10-02 16:25:15,925 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/a75c8338-c1a9-482d-9f57-24cce784ba98 2026-10-02 16:25:15,933 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/a75c8338-c1a9-482d-9f57-24cce784ba98 2026-10-02 16:25:15,940 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/255d7d2c-7e82-4c73-b2b2-41960c587796 2026-10-02 16:25:15,954 - DEBUG - Control-node 10.0.0.50 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-92415235:ctest-vn4-65358973', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-92415235', 'owner-access': '7', 'group': 'manager', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '14643927129149623230', 'uuid-lslong': '10459052276721724527'}, 'enable': 'true', 'created': '2026-10-02T16:25:14', 'last-modified': '2026-10-02T16:25:15', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.819627'} 2026-10-02 16:25:15,962 - DEBUG - Route Targets: ['target:64512:8000005'] 2026-10-02 16:25:15,962 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-65358973 passed 2026-10-02 16:25:15,962 - DEBUG - ====Verifying policy data for ctest-vn4-65358973 in API_Server ====== 2026-10-02 16:25:15,962 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2026-10-02 16:25:15,970 - DEBUG - Requesting: http://10.0.0.50:8082/domain/4bd6f58e-ca35-43c6-b25d-dc4d7bb82c85 2026-10-02 16:25:15,984 - DEBUG - Requesting: http://10.0.0.50:8082/project/f5424b69-1cb0-4b82-b70e-52ff74d42796 2026-10-02 16:25:16,058 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/cb39ae23-19ab-4bbe-9126-04a1993d2c6f 2026-10-02 16:25:16,076 - DEBUG - ==>Verifying data for policy with id: 0ab8ebd4-6ec9-4134-942d-7caca3c650b8, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-92415235', 'ctest-policy1-87296401'] 2026-10-02 16:25:16,076 - INFO - VN ctest-vn4-65358973 Policy verification: verify_vn_policy_in_api_server, status: True 2026-10-02 16:25:16,076 - DEBUG - Verifying the vn in opserver 2026-10-02 16:25:16,076 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-92415235:ctest-vn4-65358973 virtual network link through opserver 10.0.0.50 2026-10-02 16:25:16,076 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks 2026-10-02 16:25:16,447 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks 2026-10-02 16:25:16,508 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-92415235:ctest-vn4-65358973', 'href': 'http://10.0.0.50:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-92415235:ctest-vn4-65358973?flat'} 2026-10-02 16:25:16,508 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-92415235:ctest-vn4-65358973 is found in opserver 2026-10-02 16:25:16,525 - DEBUG - Do not have enough data to verify VN in agent 2026-10-02 16:25:16,531 - DEBUG - VRF ids for VN ctest-vn4-65358973: {} 2026-10-02 16:25:16,531 - DEBUG - ====Verifying data for ctest-policy1-87296401 in API_Server ====== 2026-10-02 16:25:16,531 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2026-10-02 16:25:16,537 - DEBUG - Requesting: http://10.0.0.50:8082/domain/4bd6f58e-ca35-43c6-b25d-dc4d7bb82c85 2026-10-02 16:25:16,549 - DEBUG - Requesting: http://10.0.0.50:8082/project/f5424b69-1cb0-4b82-b70e-52ff74d42796 2026-10-02 16:25:16,625 - DEBUG - Requesting: http://10.0.0.50:8082/network-policy/0ab8ebd4-6ec9-4134-942d-7caca3c650b8 2026-10-02 16:25:16,635 - INFO - Verified policy ctest-policy1-87296401 in API Server, Result: True 2026-10-02 16:25:16,635 - INFO - Done with setup and verification, moving onto test .. 2026-10-02 16:25:16,644 - INFO - Deleting VN ctest-vn4-65358973 2026-10-02 16:25:16,777 - DEBUG - Response for deleting network () 2026-10-02 16:25:16,777 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/a75c8338-c1a9-482d-9f57-24cce784ba98 2026-10-02 16:25:16,783 - DEBUG - Response Code: 404 2026-10-02 16:25:16,783 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2026-10-02 16:25:16,789 - DEBUG - Requesting: http://10.0.0.50:8082/domain/4bd6f58e-ca35-43c6-b25d-dc4d7bb82c85 2026-10-02 16:25:16,841 - DEBUG - Requesting: http://10.0.0.50:8082/project/f5424b69-1cb0-4b82-b70e-52ff74d42796 2026-10-02 16:25:16,914 - INFO - Validated that VN ctest-vn4-65358973 is not found in API Server 2026-10-02 16:25:16,926 - DEBUG - VN ctest-vn4-65358973 is not present in Agent 10.0.0.50 2026-10-02 16:25:16,926 - INFO - Validated that VN ctest-vn4-65358973 is not in any agent 2026-10-02 16:25:16,946 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-65358973 info 2026-10-02 16:25:16,971 - INFO - Deleted policy ctest-policy1-87296401 2026-10-02 16:25:17,144 - DEBUG - policy ctest-policy1-87296401 is not found in API Server 2026-10-02 16:25:17,412 - DEBUG - No XMPP flaps were noticed during the test