2026-03-16 01:58:30,916 - INFO - Domain Default found not creating 2026-03-16 01:58:31,061 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-51898494 not found, creating it 2026-03-16 01:58:31,502 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-51898494, ID : da729573-1f25-4997-b68e-52cb65c8ae6c 2026-03-16 01:58:32,876 - INFO - ================================================================================ 2026-03-16 01:58:32,876 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-03-16 01:58:33,136 - DEBUG - Nothing to compare xmpp stats {'10.0.0.27': {'10.20.0.14': '0'}} with 2026-03-16 01:58:33,136 - INFO - Initial checks done. Running the testcase now 2026-03-16 01:58:33,136 - INFO - 2026-03-16 01:58:33,136 - INFO - ================================================================================ 2026-03-16 01:58:33,136 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-03-16 01:58:33,136 - 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-16 01:58:33,424 - DEBUG - Nothing to compare xmpp stats {'10.0.0.27': {'10.20.0.14': '0'}} with 2026-03-16 01:58:33,424 - INFO - Initial checks done. Running the testcase now 2026-03-16 01:58:33,425 - INFO - 2026-03-16 01:58:33,777 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-51898494:ctest-vn4-89459582, 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-51898494:ctest-vn4-89459582, 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-51898494:ctest-vn4-89459582, 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-51898494:ctest-vn4-89459582, 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-16 01:58:34,268 - DEBUG - Response for create_network : {'network': {'id': '10b47b44-fcf5-431b-9a70-436e2df12504', 'name': 'ctest-vn4-89459582', 'tenant_id': 'da7295731f254997b68e52cb65c8ae6c', 'project_id': 'da7295731f254997b68e52cb65c8ae6c', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-51898494', 'ctest-vn4-89459582'], 'port_security_enabled': True, 'description': ''}} 2026-03-16 01:58:34,476 - DEBUG - Response for create_subnet : {'subnet': {'id': '0c6931ab-eeed-4b6b-a55e-a88c2d77aa07', 'name': '', 'tenant_id': 'da7295731f254997b68e52cb65c8ae6c', 'network_id': '10b47b44-fcf5-431b-9a70-436e2df12504', 'ip_version': 4, 'cidr': '204.79.12.0/26', 'allocation_pools': [{'start': '204.79.12.2', 'end': '204.79.12.62'}], 'gateway_ip': '204.79.12.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '204.79.12.2', 'tags': [], 'project_id': 'da7295731f254997b68e52cb65c8ae6c'}} 2026-03-16 01:58:34,644 - DEBUG - Response for create_subnet : {'subnet': {'id': '15ee10d9-fe6e-4930-8c9b-be17926608df', 'name': '', 'tenant_id': 'da7295731f254997b68e52cb65c8ae6c', 'network_id': '10b47b44-fcf5-431b-9a70-436e2df12504', 'ip_version': 6, 'cidr': '343d:6b0d:e077:6728:acc5:695a::/96', 'allocation_pools': [{'start': '343d:6b0d:e077:6728:acc5:695a:0:2', 'end': '343d:6b0d:e077:6728:acc5:695a:ffff:fffe'}], 'gateway_ip': '343d:6b0d:e077:6728:acc5:695a:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '343d:6b0d:e077:6728:acc5:695a:0:2', 'tags': [], 'project_id': 'da7295731f254997b68e52cb65c8ae6c'}} 2026-03-16 01:58:34,661 - INFO - Created VN ctest-vn4-89459582 2026-03-16 01:58:34,712 - DEBUG - VN ctest-vn4-89459582 UUID is 10b47b44-fcf5-431b-9a70-436e2df12504 2026-03-16 01:58:34,886 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '10b47b44-fcf5-431b-9a70-436e2df12504', 'name': 'ctest-vn4-89459582', 'tenant_id': 'da7295731f254997b68e52cb65c8ae6c', 'project_id': 'da7295731f254997b68e52cb65c8ae6c', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['0c6931ab-eeed-4b6b-a55e-a88c2d77aa07', '15ee10d9-fe6e-4930-8c9b-be17926608df'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-51898494', 'ctest-vn4-89459582'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-51898494', 'ctest-policy1-13047514']], 'subnet_ipam': [{'subnet_cidr': '204.79.12.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '343d:6b0d:e077:6728:acc5:695a::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2026-03-16 01:58:35,048 - DEBUG - Requesting: http://10.0.0.27:8082/domains 2026-03-16 01:58:35,344 - DEBUG - Requesting: http://10.0.0.27:8082/domains 2026-03-16 01:58:35,371 - DEBUG - Requesting: http://10.0.0.27:8082/domain/85060f0a-7d62-46e7-9503-8f44579f9a54 2026-03-16 01:58:35,427 - DEBUG - Requesting: http://10.0.0.27:8082/project/da729573-1f25-4997-b68e-52cb65c8ae6c 2026-03-16 01:58:35,495 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/10b47b44-fcf5-431b-9a70-436e2df12504 2026-03-16 01:58:35,504 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/10b47b44-fcf5-431b-9a70-436e2df12504 2026-03-16 01:58:35,512 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/60e3eb97-6a9c-4f27-8024-c338ad3c857e 2026-03-16 01:58:35,518 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/60e3eb97-6a9c-4f27-8024-c338ad3c857e 2026-03-16 01:58:35,524 - DEBUG - Requesting: http://10.0.0.27:8082/route-target/3eb9ec4a-b576-485c-950c-069f1edb2860 2026-03-16 01:58:35,528 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-03-16 01:58:35,528 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/10b47b44-fcf5-431b-9a70-436e2df12504 2026-03-16 01:58:35,537 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/60e3eb97-6a9c-4f27-8024-c338ad3c857e 2026-03-16 01:58:35,549 - INFO - Verified VN network id 12 for VN 10b47b44-fcf5-431b-9a70-436e2df12504 2026-03-16 01:58:35,549 - INFO - Verifications in API Server for VN ctest-vn4-89459582 passed 2026-03-16 01:58:35,549 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/10b47b44-fcf5-431b-9a70-436e2df12504 2026-03-16 01:58:35,558 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/60e3eb97-6a9c-4f27-8024-c338ad3c857e 2026-03-16 01:58:35,564 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/60e3eb97-6a9c-4f27-8024-c338ad3c857e 2026-03-16 01:58:35,570 - DEBUG - Requesting: http://10.0.0.27:8082/route-target/3eb9ec4a-b576-485c-950c-069f1edb2860 2026-03-16 01:58:35,579 - DEBUG - Control-node 10.0.0.27 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-51898494:ctest-vn4-89459582', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-51898494', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '1203722536646689563', 'uuid-lslong': '11128468819728737540'}, 'enable': 'true', 'created': '2026-03-16T01:58:34', 'last-modified': '2026-03-16T01:58:34', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.717674'} 2026-03-16 01:58:35,586 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-03-16 01:58:35,586 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-89459582 passed 2026-03-16 01:58:35,586 - DEBUG - ====Verifying policy data for ctest-vn4-89459582 in API_Server ====== 2026-03-16 01:58:35,586 - DEBUG - Requesting: http://10.0.0.27:8082/domains 2026-03-16 01:58:35,592 - DEBUG - Requesting: http://10.0.0.27:8082/domain/85060f0a-7d62-46e7-9503-8f44579f9a54 2026-03-16 01:58:35,602 - DEBUG - Requesting: http://10.0.0.27:8082/project/da729573-1f25-4997-b68e-52cb65c8ae6c 2026-03-16 01:58:35,669 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/10b47b44-fcf5-431b-9a70-436e2df12504 2026-03-16 01:58:35,678 - DEBUG - ==>Verifying data for policy with id: 8267ac4b-877f-484d-ba7c-977546211e82, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-51898494', 'ctest-policy1-13047514'] 2026-03-16 01:58:35,678 - INFO - VN ctest-vn4-89459582 Policy verification: verify_vn_policy_in_api_server, status: True 2026-03-16 01:58:35,678 - DEBUG - Verifying the vn in opserver 2026-03-16 01:58:35,678 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-51898494:ctest-vn4-89459582 virtual network link through opserver 10.0.0.27 2026-03-16 01:58:35,678 - DEBUG - Requesting: http://10.0.0.27:8081/analytics/uves/virtual-networks 2026-03-16 01:58:35,965 - DEBUG - Requesting: http://10.0.0.27:8081/analytics/uves/virtual-networks 2026-03-16 01:58:36,024 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-51898494:ctest-vn4-89459582', 'href': 'http://10.0.0.27:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-51898494:ctest-vn4-89459582?flat'} 2026-03-16 01:58:36,024 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-51898494:ctest-vn4-89459582 is found in opserver 2026-03-16 01:58:36,033 - DEBUG - Do not have enough data to verify VN in agent 2026-03-16 01:58:36,038 - DEBUG - VRF ids for VN ctest-vn4-89459582: {} 2026-03-16 01:58:36,039 - DEBUG - ====Verifying data for ctest-policy1-13047514 in API_Server ====== 2026-03-16 01:58:36,039 - DEBUG - Requesting: http://10.0.0.27:8082/domains 2026-03-16 01:58:36,043 - DEBUG - Requesting: http://10.0.0.27:8082/domain/85060f0a-7d62-46e7-9503-8f44579f9a54 2026-03-16 01:58:36,052 - DEBUG - Requesting: http://10.0.0.27:8082/project/da729573-1f25-4997-b68e-52cb65c8ae6c 2026-03-16 01:58:36,121 - DEBUG - Requesting: http://10.0.0.27:8082/network-policy/8267ac4b-877f-484d-ba7c-977546211e82 2026-03-16 01:58:36,129 - INFO - Verified policy ctest-policy1-13047514 in API Server, Result: True 2026-03-16 01:58:36,130 - INFO - Done with setup and verification, moving onto test .. 2026-03-16 01:58:36,136 - INFO - Deleting VN ctest-vn4-89459582 2026-03-16 01:58:36,236 - DEBUG - Response for deleting network () 2026-03-16 01:58:36,236 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/60e3eb97-6a9c-4f27-8024-c338ad3c857e 2026-03-16 01:58:36,241 - DEBUG - Response Code: 404 2026-03-16 01:58:36,241 - DEBUG - Requesting: http://10.0.0.27:8082/domains 2026-03-16 01:58:36,246 - DEBUG - Requesting: http://10.0.0.27:8082/domain/85060f0a-7d62-46e7-9503-8f44579f9a54 2026-03-16 01:58:36,301 - DEBUG - Requesting: http://10.0.0.27:8082/project/da729573-1f25-4997-b68e-52cb65c8ae6c 2026-03-16 01:58:36,370 - INFO - Validated that VN ctest-vn4-89459582 is not found in API Server 2026-03-16 01:58:36,378 - DEBUG - VN ctest-vn4-89459582 is not present in Agent 10.0.0.27 2026-03-16 01:58:36,378 - INFO - Validated that VN ctest-vn4-89459582 is not in any agent 2026-03-16 01:58:36,389 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-89459582 info 2026-03-16 01:58:36,412 - INFO - Deleted policy ctest-policy1-13047514 2026-03-16 01:58:36,576 - DEBUG - policy ctest-policy1-13047514 is not found in API Server 2026-03-16 01:58:36,828 - DEBUG - No XMPP flaps were noticed during the test 2026-03-16 01:58:36,829 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:03] 2026-03-16 01:58:36,829 - INFO - -------------------------------------------------------------------------------- 2026-03-16 01:58:37,116 - DEBUG - No XMPP flaps were noticed during the test 2026-03-16 01:58:37,116 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:05] 2026-03-16 01:58:37,116 - INFO - -------------------------------------------------------------------------------- 2026-03-16 01:58:37,787 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-51898494, ID : da729573-1f25-4997-b68e-52cb65c8ae6c