2026-03-26 20:40:14,871 - INFO - Domain Default found not creating 2026-03-26 20:40:15,043 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-19709832 not found, creating it 2026-03-26 20:40:15,482 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-19709832, ID : 446d7f8d-0f7f-4ea1-a281-675a8d384183 2026-03-26 20:40:17,017 - INFO - ================================================================================ 2026-03-26 20:40:17,017 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-03-26 20:40:17,277 - DEBUG - Nothing to compare xmpp stats {'10.0.0.129': {'10.20.0.17': '0'}} with 2026-03-26 20:40:17,278 - INFO - Initial checks done. Running the testcase now 2026-03-26 20:40:17,278 - INFO - 2026-03-26 20:40:17,278 - INFO - ================================================================================ 2026-03-26 20:40:17,278 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-03-26 20:40:17,278 - 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-26 20:40:17,562 - DEBUG - Nothing to compare xmpp stats {'10.0.0.129': {'10.20.0.17': '0'}} with 2026-03-26 20:40:17,562 - INFO - Initial checks done. Running the testcase now 2026-03-26 20:40:17,563 - INFO - 2026-03-26 20:40:17,918 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-19709832:ctest-vn4-89176778, 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-19709832:ctest-vn4-89176778, 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-19709832:ctest-vn4-89176778, 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-19709832:ctest-vn4-89176778, 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-26 20:40:18,443 - DEBUG - Response for create_network : {'network': {'id': 'fd20a81e-4d42-4375-baed-4fdd43da7812', 'name': 'ctest-vn4-89176778', 'tenant_id': '446d7f8d0f7f4ea1a281675a8d384183', 'project_id': '446d7f8d0f7f4ea1a281675a8d384183', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-19709832', 'ctest-vn4-89176778'], 'port_security_enabled': True, 'description': ''}} 2026-03-26 20:40:18,600 - DEBUG - Response for create_subnet : {'subnet': {'id': '20970d70-e20e-4f35-81aa-0d9e7e757df8', 'name': '', 'tenant_id': '446d7f8d0f7f4ea1a281675a8d384183', 'network_id': 'fd20a81e-4d42-4375-baed-4fdd43da7812', 'ip_version': 4, 'cidr': '172.149.200.128/26', 'allocation_pools': [{'start': '172.149.200.130', 'end': '172.149.200.190'}], 'gateway_ip': '172.149.200.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '172.149.200.130', 'tags': [], 'project_id': '446d7f8d0f7f4ea1a281675a8d384183'}} 2026-03-26 20:40:18,799 - DEBUG - Response for create_subnet : {'subnet': {'id': '2af3d032-5d2a-47f6-82b8-2360a9523ac8', 'name': '', 'tenant_id': '446d7f8d0f7f4ea1a281675a8d384183', 'network_id': 'fd20a81e-4d42-4375-baed-4fdd43da7812', 'ip_version': 6, 'cidr': '3d99:b1f8:9555:b1b9:21c1:d66d::/96', 'allocation_pools': [{'start': '3d99:b1f8:9555:b1b9:21c1:d66d:0:2', 'end': '3d99:b1f8:9555:b1b9:21c1:d66d:ffff:fffe'}], 'gateway_ip': '3d99:b1f8:9555:b1b9:21c1:d66d:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '3d99:b1f8:9555:b1b9:21c1:d66d:0:2', 'tags': [], 'project_id': '446d7f8d0f7f4ea1a281675a8d384183'}} 2026-03-26 20:40:18,819 - INFO - Created VN ctest-vn4-89176778 2026-03-26 20:40:18,870 - DEBUG - VN ctest-vn4-89176778 UUID is fd20a81e-4d42-4375-baed-4fdd43da7812 2026-03-26 20:40:19,083 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'fd20a81e-4d42-4375-baed-4fdd43da7812', 'name': 'ctest-vn4-89176778', 'tenant_id': '446d7f8d0f7f4ea1a281675a8d384183', 'project_id': '446d7f8d0f7f4ea1a281675a8d384183', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['20970d70-e20e-4f35-81aa-0d9e7e757df8', '2af3d032-5d2a-47f6-82b8-2360a9523ac8'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-19709832', 'ctest-vn4-89176778'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-19709832', 'ctest-policy1-70931129']], 'subnet_ipam': [{'subnet_cidr': '172.149.200.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '3d99:b1f8:9555:b1b9:21c1:d66d::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2026-03-26 20:40:19,250 - DEBUG - Requesting: http://10.0.0.129:8082/domains 2026-03-26 20:40:19,552 - DEBUG - Requesting: http://10.0.0.129:8082/domains 2026-03-26 20:40:19,585 - DEBUG - Requesting: http://10.0.0.129:8082/domain/5ee3b9bd-3511-4401-b76e-41eff2e870a1 2026-03-26 20:40:19,599 - DEBUG - Requesting: http://10.0.0.129:8082/project/446d7f8d-0f7f-4ea1-a281-675a8d384183 2026-03-26 20:40:19,673 - DEBUG - Requesting: http://10.0.0.129:8082/virtual-network/fd20a81e-4d42-4375-baed-4fdd43da7812 2026-03-26 20:40:19,684 - DEBUG - Requesting: http://10.0.0.129:8082/virtual-network/fd20a81e-4d42-4375-baed-4fdd43da7812 2026-03-26 20:40:19,695 - DEBUG - Requesting: http://10.0.0.129:8082/routing-instance/0cd1f97f-f2d7-4020-a575-97ad3648b093 2026-03-26 20:40:19,702 - DEBUG - Requesting: http://10.0.0.129:8082/routing-instance/0cd1f97f-f2d7-4020-a575-97ad3648b093 2026-03-26 20:40:19,708 - DEBUG - Requesting: http://10.0.0.129:8082/route-target/458a6dfa-78a6-4cc3-a374-1225b24a9ab1 2026-03-26 20:40:19,716 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-03-26 20:40:19,716 - DEBUG - Requesting: http://10.0.0.129:8082/virtual-network/fd20a81e-4d42-4375-baed-4fdd43da7812 2026-03-26 20:40:19,725 - DEBUG - Requesting: http://10.0.0.129:8082/routing-instance/0cd1f97f-f2d7-4020-a575-97ad3648b093 2026-03-26 20:40:19,737 - INFO - Verified VN network id 11 for VN fd20a81e-4d42-4375-baed-4fdd43da7812 2026-03-26 20:40:19,737 - INFO - Verifications in API Server for VN ctest-vn4-89176778 passed 2026-03-26 20:40:19,737 - DEBUG - Requesting: http://10.0.0.129:8082/virtual-network/fd20a81e-4d42-4375-baed-4fdd43da7812 2026-03-26 20:40:19,744 - DEBUG - Requesting: http://10.0.0.129:8082/routing-instance/0cd1f97f-f2d7-4020-a575-97ad3648b093 2026-03-26 20:40:19,750 - DEBUG - Requesting: http://10.0.0.129:8082/routing-instance/0cd1f97f-f2d7-4020-a575-97ad3648b093 2026-03-26 20:40:19,756 - DEBUG - Requesting: http://10.0.0.129:8082/route-target/458a6dfa-78a6-4cc3-a374-1225b24a9ab1 2026-03-26 20:40:19,768 - DEBUG - Control-node 10.0.0.129 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-19709832:ctest-vn4-89176778', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-19709832', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '18239763338949182325', 'uuid-lslong': '13469509872279779346'}, 'enable': 'true', 'created': '2026-03-26T20:40:18', 'last-modified': '2026-03-26T20:40:19', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.723467'} 2026-03-26 20:40:19,776 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-03-26 20:40:19,777 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-89176778 passed 2026-03-26 20:40:19,777 - DEBUG - ====Verifying policy data for ctest-vn4-89176778 in API_Server ====== 2026-03-26 20:40:19,777 - DEBUG - Requesting: http://10.0.0.129:8082/domains 2026-03-26 20:40:19,783 - DEBUG - Requesting: http://10.0.0.129:8082/domain/5ee3b9bd-3511-4401-b76e-41eff2e870a1 2026-03-26 20:40:19,792 - DEBUG - Requesting: http://10.0.0.129:8082/project/446d7f8d-0f7f-4ea1-a281-675a8d384183 2026-03-26 20:40:19,861 - DEBUG - Requesting: http://10.0.0.129:8082/virtual-network/fd20a81e-4d42-4375-baed-4fdd43da7812 2026-03-26 20:40:19,872 - DEBUG - ==>Verifying data for policy with id: 2871db94-4c69-49dd-a495-0285afbf45dd, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-19709832', 'ctest-policy1-70931129'] 2026-03-26 20:40:19,872 - INFO - VN ctest-vn4-89176778 Policy verification: verify_vn_policy_in_api_server, status: True 2026-03-26 20:40:19,872 - DEBUG - Verifying the vn in opserver 2026-03-26 20:40:19,872 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-19709832:ctest-vn4-89176778 virtual network link through opserver 10.0.0.129 2026-03-26 20:40:19,872 - DEBUG - Requesting: http://10.0.0.129:8081/analytics/uves/virtual-networks 2026-03-26 20:40:20,167 - DEBUG - Requesting: http://10.0.0.129:8081/analytics/uves/virtual-networks 2026-03-26 20:40:20,232 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-19709832:ctest-vn4-89176778', 'href': 'http://10.0.0.129:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-19709832:ctest-vn4-89176778?flat'} 2026-03-26 20:40:20,232 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-19709832:ctest-vn4-89176778 is found in opserver 2026-03-26 20:40:20,241 - DEBUG - Do not have enough data to verify VN in agent 2026-03-26 20:40:20,246 - DEBUG - VRF ids for VN ctest-vn4-89176778: {} 2026-03-26 20:40:20,246 - DEBUG - ====Verifying data for ctest-policy1-70931129 in API_Server ====== 2026-03-26 20:40:20,246 - DEBUG - Requesting: http://10.0.0.129:8082/domains 2026-03-26 20:40:20,251 - DEBUG - Requesting: http://10.0.0.129:8082/domain/5ee3b9bd-3511-4401-b76e-41eff2e870a1 2026-03-26 20:40:20,260 - DEBUG - Requesting: http://10.0.0.129:8082/project/446d7f8d-0f7f-4ea1-a281-675a8d384183 2026-03-26 20:40:20,323 - DEBUG - Requesting: http://10.0.0.129:8082/network-policy/2871db94-4c69-49dd-a495-0285afbf45dd 2026-03-26 20:40:20,332 - INFO - Verified policy ctest-policy1-70931129 in API Server, Result: True 2026-03-26 20:40:20,332 - INFO - Done with setup and verification, moving onto test .. 2026-03-26 20:40:20,339 - INFO - Deleting VN ctest-vn4-89176778 2026-03-26 20:40:20,462 - DEBUG - Response for deleting network () 2026-03-26 20:40:20,463 - DEBUG - Requesting: http://10.0.0.129:8082/routing-instance/0cd1f97f-f2d7-4020-a575-97ad3648b093 2026-03-26 20:40:20,467 - DEBUG - Response Code: 404 2026-03-26 20:40:20,467 - DEBUG - Requesting: http://10.0.0.129:8082/domains 2026-03-26 20:40:20,472 - DEBUG - Requesting: http://10.0.0.129:8082/domain/5ee3b9bd-3511-4401-b76e-41eff2e870a1 2026-03-26 20:40:20,523 - DEBUG - Requesting: http://10.0.0.129:8082/project/446d7f8d-0f7f-4ea1-a281-675a8d384183 2026-03-26 20:40:20,595 - INFO - Validated that VN ctest-vn4-89176778 is not found in API Server 2026-03-26 20:40:20,603 - DEBUG - VN ctest-vn4-89176778 is not present in Agent 10.0.0.129 2026-03-26 20:40:20,603 - INFO - Validated that VN ctest-vn4-89176778 is not in any agent 2026-03-26 20:40:20,616 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-89176778 info 2026-03-26 20:40:20,639 - INFO - Deleted policy ctest-policy1-70931129 2026-03-26 20:40:20,798 - DEBUG - policy ctest-policy1-70931129 is not found in API Server 2026-03-26 20:40:21,053 - DEBUG - No XMPP flaps were noticed during the test