2026-06-22 13:22:58,320 - INFO - Domain Default found not creating 2026-06-22 13:22:58,454 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-61603587 not found, creating it 2026-06-22 13:22:58,915 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-61603587, ID : 954499bf-b44e-446e-bc97-150a2fd24c6f 2026-06-22 13:23:00,360 - INFO - ================================================================================ 2026-06-22 13:23:00,360 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-06-22 13:23:00,613 - DEBUG - Nothing to compare xmpp stats {'10.0.0.38': {'10.20.0.17': '0'}} with 2026-06-22 13:23:00,613 - INFO - Initial checks done. Running the testcase now 2026-06-22 13:23:00,613 - INFO - 2026-06-22 13:23:00,613 - INFO - ================================================================================ 2026-06-22 13:23:00,613 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-06-22 13:23:00,613 - 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-06-22 13:23:00,908 - DEBUG - Nothing to compare xmpp stats {'10.0.0.38': {'10.20.0.17': '0'}} with 2026-06-22 13:23:00,908 - INFO - Initial checks done. Running the testcase now 2026-06-22 13:23:00,908 - INFO - 2026-06-22 13:23:01,281 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-61603587:ctest-vn4-12505694, 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-61603587:ctest-vn4-12505694, 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-61603587:ctest-vn4-12505694, 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-61603587:ctest-vn4-12505694, 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-06-22 13:23:01,774 - DEBUG - Response for create_network : {'network': {'id': '8b2d078e-c440-414a-a84a-baabaacd65f9', 'name': 'ctest-vn4-12505694', 'tenant_id': '954499bfb44e446ebc97150a2fd24c6f', 'project_id': '954499bfb44e446ebc97150a2fd24c6f', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-61603587', 'ctest-vn4-12505694'], 'port_security_enabled': True, 'description': ''}} 2026-06-22 13:23:01,933 - DEBUG - Response for create_subnet : {'subnet': {'id': 'eee52a56-170d-4ac0-a1e2-4297c7006d0b', 'name': '', 'tenant_id': '954499bfb44e446ebc97150a2fd24c6f', 'network_id': '8b2d078e-c440-414a-a84a-baabaacd65f9', 'ip_version': 4, 'cidr': '58.45.42.0/26', 'allocation_pools': [{'start': '58.45.42.2', 'end': '58.45.42.62'}], 'gateway_ip': '58.45.42.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '58.45.42.2', 'tags': [], 'project_id': '954499bfb44e446ebc97150a2fd24c6f'}} 2026-06-22 13:23:02,126 - DEBUG - Response for create_subnet : {'subnet': {'id': '5a39963b-0900-4948-9a7e-1c3ebf6e8b63', 'name': '', 'tenant_id': '954499bfb44e446ebc97150a2fd24c6f', 'network_id': '8b2d078e-c440-414a-a84a-baabaacd65f9', 'ip_version': 6, 'cidr': '3334:972c:c36f:f26f:5c02:4847::/96', 'allocation_pools': [{'start': '3334:972c:c36f:f26f:5c02:4847:0:2', 'end': '3334:972c:c36f:f26f:5c02:4847:ffff:fffe'}], 'gateway_ip': '3334:972c:c36f:f26f:5c02:4847:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '3334:972c:c36f:f26f:5c02:4847:0:2', 'tags': [], 'project_id': '954499bfb44e446ebc97150a2fd24c6f'}} 2026-06-22 13:23:02,145 - INFO - Created VN ctest-vn4-12505694 2026-06-22 13:23:02,196 - DEBUG - VN ctest-vn4-12505694 UUID is 8b2d078e-c440-414a-a84a-baabaacd65f9 2026-06-22 13:23:02,391 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '8b2d078e-c440-414a-a84a-baabaacd65f9', 'name': 'ctest-vn4-12505694', 'tenant_id': '954499bfb44e446ebc97150a2fd24c6f', 'project_id': '954499bfb44e446ebc97150a2fd24c6f', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['eee52a56-170d-4ac0-a1e2-4297c7006d0b', '5a39963b-0900-4948-9a7e-1c3ebf6e8b63'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-61603587', 'ctest-vn4-12505694'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-61603587', 'ctest-policy1-47541173']], 'subnet_ipam': [{'subnet_cidr': '58.45.42.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '3334:972c:c36f:f26f:5c02:4847::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2026-06-22 13:23:02,556 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2026-06-22 13:23:02,886 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2026-06-22 13:23:02,914 - DEBUG - Requesting: http://10.0.0.38:8082/domain/efbd51fb-a21e-4f27-90b3-98b29ff2b20d 2026-06-22 13:23:02,927 - DEBUG - Requesting: http://10.0.0.38:8082/project/954499bf-b44e-446e-bc97-150a2fd24c6f 2026-06-22 13:23:02,999 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/8b2d078e-c440-414a-a84a-baabaacd65f9 2026-06-22 13:23:03,011 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/8b2d078e-c440-414a-a84a-baabaacd65f9 2026-06-22 13:23:03,020 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/035b0463-7562-4c63-9c0b-685040f56162 2026-06-22 13:23:03,026 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/035b0463-7562-4c63-9c0b-685040f56162 2026-06-22 13:23:03,032 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/b0935ea0-288c-436c-a70e-44a79aaa2a61 2026-06-22 13:23:03,038 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-06-22 13:23:03,038 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/8b2d078e-c440-414a-a84a-baabaacd65f9 2026-06-22 13:23:03,047 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/035b0463-7562-4c63-9c0b-685040f56162 2026-06-22 13:23:03,059 - INFO - Verified VN network id 11 for VN 8b2d078e-c440-414a-a84a-baabaacd65f9 2026-06-22 13:23:03,059 - INFO - Verifications in API Server for VN ctest-vn4-12505694 passed 2026-06-22 13:23:03,059 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/8b2d078e-c440-414a-a84a-baabaacd65f9 2026-06-22 13:23:03,069 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/035b0463-7562-4c63-9c0b-685040f56162 2026-06-22 13:23:03,075 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/035b0463-7562-4c63-9c0b-685040f56162 2026-06-22 13:23:03,081 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/b0935ea0-288c-436c-a70e-44a79aaa2a61 2026-06-22 13:23:03,095 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-61603587:ctest-vn4-12505694', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-61603587', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '10028680254983258442', 'uuid-lslong': '12126710193116243449'}, 'enable': 'true', 'created': '2026-06-22T13:23:01', 'last-modified': '2026-06-22T13:23:02', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.732348'} 2026-06-22 13:23:03,102 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-06-22 13:23:03,103 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-12505694 passed 2026-06-22 13:23:03,103 - DEBUG - ====Verifying policy data for ctest-vn4-12505694 in API_Server ====== 2026-06-22 13:23:03,103 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2026-06-22 13:23:03,109 - DEBUG - Requesting: http://10.0.0.38:8082/domain/efbd51fb-a21e-4f27-90b3-98b29ff2b20d 2026-06-22 13:23:03,120 - DEBUG - Requesting: http://10.0.0.38:8082/project/954499bf-b44e-446e-bc97-150a2fd24c6f 2026-06-22 13:23:03,188 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/8b2d078e-c440-414a-a84a-baabaacd65f9 2026-06-22 13:23:03,197 - DEBUG - ==>Verifying data for policy with id: b061c1c8-aa9f-412c-8566-2a979f88d606, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-61603587', 'ctest-policy1-47541173'] 2026-06-22 13:23:03,197 - INFO - VN ctest-vn4-12505694 Policy verification: verify_vn_policy_in_api_server, status: True 2026-06-22 13:23:03,197 - DEBUG - Verifying the vn in opserver 2026-06-22 13:23:03,197 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-61603587:ctest-vn4-12505694 virtual network link through opserver 10.0.0.38 2026-06-22 13:23:03,198 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks 2026-06-22 13:23:03,517 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks 2026-06-22 13:23:03,565 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-61603587:ctest-vn4-12505694', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-61603587:ctest-vn4-12505694?flat'} 2026-06-22 13:23:03,565 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-61603587:ctest-vn4-12505694 is found in opserver 2026-06-22 13:23:03,573 - DEBUG - Do not have enough data to verify VN in agent 2026-06-22 13:23:03,577 - DEBUG - VRF ids for VN ctest-vn4-12505694: {} 2026-06-22 13:23:03,577 - DEBUG - ====Verifying data for ctest-policy1-47541173 in API_Server ====== 2026-06-22 13:23:03,577 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2026-06-22 13:23:03,582 - DEBUG - Requesting: http://10.0.0.38:8082/domain/efbd51fb-a21e-4f27-90b3-98b29ff2b20d 2026-06-22 13:23:03,591 - DEBUG - Requesting: http://10.0.0.38:8082/project/954499bf-b44e-446e-bc97-150a2fd24c6f 2026-06-22 13:23:03,670 - DEBUG - Requesting: http://10.0.0.38:8082/network-policy/b061c1c8-aa9f-412c-8566-2a979f88d606 2026-06-22 13:23:03,680 - INFO - Verified policy ctest-policy1-47541173 in API Server, Result: True 2026-06-22 13:23:03,680 - INFO - Done with setup and verification, moving onto test .. 2026-06-22 13:23:03,688 - INFO - Deleting VN ctest-vn4-12505694 2026-06-22 13:23:03,787 - DEBUG - Response for deleting network () 2026-06-22 13:23:03,787 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/035b0463-7562-4c63-9c0b-685040f56162 2026-06-22 13:23:03,792 - DEBUG - Response Code: 404 2026-06-22 13:23:03,792 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2026-06-22 13:23:03,797 - DEBUG - Requesting: http://10.0.0.38:8082/domain/efbd51fb-a21e-4f27-90b3-98b29ff2b20d 2026-06-22 13:23:03,848 - DEBUG - Requesting: http://10.0.0.38:8082/project/954499bf-b44e-446e-bc97-150a2fd24c6f 2026-06-22 13:23:03,932 - INFO - Validated that VN ctest-vn4-12505694 is not found in API Server 2026-06-22 13:23:03,942 - DEBUG - VN ctest-vn4-12505694 is not present in Agent 10.0.0.38 2026-06-22 13:23:03,942 - INFO - Validated that VN ctest-vn4-12505694 is not in any agent 2026-06-22 13:23:03,959 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-12505694 info 2026-06-22 13:23:03,986 - INFO - Deleted policy ctest-policy1-47541173 2026-06-22 13:23:04,144 - DEBUG - policy ctest-policy1-47541173 is not found in API Server 2026-06-22 13:23:04,397 - DEBUG - No XMPP flaps were noticed during the test
2026-06-22 13:23:04,397 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04]
2026-06-22 13:23:04,397 - INFO - -------------------------------------------------------------------------------- 2026-06-22 13:23:04,691 - DEBUG - No XMPP flaps were noticed during the test
2026-06-22 13:23:04,691 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04]
2026-06-22 13:23:04,691 - INFO - -------------------------------------------------------------------------------- 2026-06-22 13:23:05,396 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-61603587, ID : 954499bf-b44e-446e-bc97-150a2fd24c6f