2026-01-22 16:23:25,462 - INFO - Domain Default found not creating 2026-01-22 16:23:25,649 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-35500418 not found, creating it 2026-01-22 16:23:26,123 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-35500418, ID : 25d3967f-aa0c-451a-a8ef-0f4ec50a8585 2026-01-22 16:23:27,641 - INFO - ================================================================================ 2026-01-22 16:23:27,641 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-01-22 16:23:27,895 - DEBUG - Nothing to compare xmpp stats {'10.0.0.38': {'10.20.0.130': '0'}} with 2026-01-22 16:23:27,896 - INFO - Initial checks done. Running the testcase now 2026-01-22 16:23:27,896 - INFO - 2026-01-22 16:23:27,896 - INFO - ================================================================================ 2026-01-22 16:23:27,896 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-01-22 16:23:27,896 - 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-01-22 16:23:28,182 - DEBUG - Nothing to compare xmpp stats {'10.0.0.38': {'10.20.0.130': '0'}} with 2026-01-22 16:23:28,182 - INFO - Initial checks done. Running the testcase now 2026-01-22 16:23:28,182 - INFO - 2026-01-22 16:23:28,536 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-35500418:ctest-vn4-47362616, 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-35500418:ctest-vn4-47362616, 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-35500418:ctest-vn4-47362616, 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-35500418:ctest-vn4-47362616, 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-01-22 16:23:29,087 - DEBUG - Response for create_network : {'network': {'id': 'ff300acc-6c98-4a4d-b801-835640a73707', 'name': 'ctest-vn4-47362616', 'tenant_id': '25d3967faa0c451aa8ef0f4ec50a8585', 'project_id': '25d3967faa0c451aa8ef0f4ec50a8585', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-35500418', 'ctest-vn4-47362616'], 'port_security_enabled': True, 'description': ''}} 2026-01-22 16:23:29,248 - DEBUG - Response for create_subnet : {'subnet': {'id': '9e96450d-2c4a-428a-a06a-36ee6fc89d4f', 'name': '', 'tenant_id': '25d3967faa0c451aa8ef0f4ec50a8585', 'network_id': 'ff300acc-6c98-4a4d-b801-835640a73707', 'ip_version': 4, 'cidr': '115.147.150.192/26', 'allocation_pools': [{'start': '115.147.150.194', 'end': '115.147.150.254'}], 'gateway_ip': '115.147.150.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '115.147.150.194', 'tags': [], 'project_id': '25d3967faa0c451aa8ef0f4ec50a8585'}} 2026-01-22 16:23:29,404 - DEBUG - Response for create_subnet : {'subnet': {'id': 'c02b491a-7cb8-4284-b022-9ddf3de0f3b4', 'name': '', 'tenant_id': '25d3967faa0c451aa8ef0f4ec50a8585', 'network_id': 'ff300acc-6c98-4a4d-b801-835640a73707', 'ip_version': 6, 'cidr': '3b61:de34:330e:87d:ce32:baf5::/96', 'allocation_pools': [{'start': '3b61:de34:330e:87d:ce32:baf5:0:2', 'end': '3b61:de34:330e:87d:ce32:baf5:ffff:fffe'}], 'gateway_ip': '3b61:de34:330e:87d:ce32:baf5:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '3b61:de34:330e:87d:ce32:baf5:0:2', 'tags': [], 'project_id': '25d3967faa0c451aa8ef0f4ec50a8585'}} 2026-01-22 16:23:29,425 - INFO - Created VN ctest-vn4-47362616 2026-01-22 16:23:29,478 - DEBUG - VN ctest-vn4-47362616 UUID is ff300acc-6c98-4a4d-b801-835640a73707 2026-01-22 16:23:29,680 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'ff300acc-6c98-4a4d-b801-835640a73707', 'name': 'ctest-vn4-47362616', 'tenant_id': '25d3967faa0c451aa8ef0f4ec50a8585', 'project_id': '25d3967faa0c451aa8ef0f4ec50a8585', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['9e96450d-2c4a-428a-a06a-36ee6fc89d4f', 'c02b491a-7cb8-4284-b022-9ddf3de0f3b4'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-35500418', 'ctest-vn4-47362616'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-35500418', 'ctest-policy1-46437010']], 'subnet_ipam': [{'subnet_cidr': '115.147.150.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '3b61:de34:330e:87d:ce32:baf5::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2026-01-22 16:23:29,842 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2026-01-22 16:23:30,137 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2026-01-22 16:23:30,167 - DEBUG - Requesting: http://10.0.0.38:8082/domain/d2b7b0b7-bbea-43c0-b1dd-669b15e68da7 2026-01-22 16:23:30,181 - DEBUG - Requesting: http://10.0.0.38:8082/project/25d3967f-aa0c-451a-a8ef-0f4ec50a8585 2026-01-22 16:23:30,255 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/ff300acc-6c98-4a4d-b801-835640a73707 2026-01-22 16:23:30,268 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/ff300acc-6c98-4a4d-b801-835640a73707 2026-01-22 16:23:30,277 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/8a39ddbd-1ec7-48d1-9f54-d84d77184d12 2026-01-22 16:23:30,285 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/8a39ddbd-1ec7-48d1-9f54-d84d77184d12 2026-01-22 16:23:30,292 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/840d3c81-4390-4bfe-864f-6897c2476815 2026-01-22 16:23:30,299 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-01-22 16:23:30,299 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/ff300acc-6c98-4a4d-b801-835640a73707 2026-01-22 16:23:30,309 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/8a39ddbd-1ec7-48d1-9f54-d84d77184d12 2026-01-22 16:23:30,324 - INFO - Verified VN network id 11 for VN ff300acc-6c98-4a4d-b801-835640a73707 2026-01-22 16:23:30,324 - INFO - Verifications in API Server for VN ctest-vn4-47362616 passed 2026-01-22 16:23:30,324 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/ff300acc-6c98-4a4d-b801-835640a73707 2026-01-22 16:23:30,334 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/8a39ddbd-1ec7-48d1-9f54-d84d77184d12 2026-01-22 16:23:30,341 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/8a39ddbd-1ec7-48d1-9f54-d84d77184d12 2026-01-22 16:23:30,348 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/840d3c81-4390-4bfe-864f-6897c2476815 2026-01-22 16:23:30,360 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-35500418:ctest-vn4-47362616', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-35500418', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '18388209151665261133', 'uuid-lslong': '13259023184430577415'}, 'enable': 'true', 'created': '2026-01-22T16:23:29', 'last-modified': '2026-01-22T16:23:29', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.703463'} 2026-01-22 16:23:30,366 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-01-22 16:23:30,367 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-47362616 passed 2026-01-22 16:23:30,367 - DEBUG - ====Verifying policy data for ctest-vn4-47362616 in API_Server ====== 2026-01-22 16:23:30,367 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2026-01-22 16:23:30,373 - DEBUG - Requesting: http://10.0.0.38:8082/domain/d2b7b0b7-bbea-43c0-b1dd-669b15e68da7 2026-01-22 16:23:30,383 - DEBUG - Requesting: http://10.0.0.38:8082/project/25d3967f-aa0c-451a-a8ef-0f4ec50a8585 2026-01-22 16:23:30,457 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/ff300acc-6c98-4a4d-b801-835640a73707 2026-01-22 16:23:30,467 - DEBUG - ==>Verifying data for policy with id: bb6b4861-d949-4da0-8f32-a47e5965ce50, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-35500418', 'ctest-policy1-46437010'] 2026-01-22 16:23:30,467 - INFO - VN ctest-vn4-47362616 Policy verification: verify_vn_policy_in_api_server, status: True 2026-01-22 16:23:30,467 - DEBUG - Verifying the vn in opserver 2026-01-22 16:23:30,467 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-35500418:ctest-vn4-47362616 virtual network link through opserver 10.0.0.38 2026-01-22 16:23:30,468 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks 2026-01-22 16:23:30,763 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks 2026-01-22 16:23:30,828 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-35500418:ctest-vn4-47362616', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-35500418:ctest-vn4-47362616?flat'} 2026-01-22 16:23:30,828 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-35500418:ctest-vn4-47362616 is found in opserver 2026-01-22 16:23:30,838 - DEBUG - Do not have enough data to verify VN in agent 2026-01-22 16:23:30,842 - DEBUG - VRF ids for VN ctest-vn4-47362616: {} 2026-01-22 16:23:30,843 - DEBUG - ====Verifying data for ctest-policy1-46437010 in API_Server ====== 2026-01-22 16:23:30,843 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2026-01-22 16:23:30,849 - DEBUG - Requesting: http://10.0.0.38:8082/domain/d2b7b0b7-bbea-43c0-b1dd-669b15e68da7 2026-01-22 16:23:30,859 - DEBUG - Requesting: http://10.0.0.38:8082/project/25d3967f-aa0c-451a-a8ef-0f4ec50a8585 2026-01-22 16:23:30,927 - DEBUG - Requesting: http://10.0.0.38:8082/network-policy/bb6b4861-d949-4da0-8f32-a47e5965ce50 2026-01-22 16:23:30,937 - INFO - Verified policy ctest-policy1-46437010 in API Server, Result: True 2026-01-22 16:23:30,937 - INFO - Done with setup and verification, moving onto test .. 2026-01-22 16:23:30,947 - INFO - Deleting VN ctest-vn4-47362616 2026-01-22 16:23:31,077 - DEBUG - Response for deleting network () 2026-01-22 16:23:31,077 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/8a39ddbd-1ec7-48d1-9f54-d84d77184d12 2026-01-22 16:23:31,083 - DEBUG - Response Code: 404 2026-01-22 16:23:31,083 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2026-01-22 16:23:31,090 - DEBUG - Requesting: http://10.0.0.38:8082/domain/d2b7b0b7-bbea-43c0-b1dd-669b15e68da7 2026-01-22 16:23:31,142 - DEBUG - Requesting: http://10.0.0.38:8082/project/25d3967f-aa0c-451a-a8ef-0f4ec50a8585 2026-01-22 16:23:31,219 - INFO - Validated that VN ctest-vn4-47362616 is not found in API Server 2026-01-22 16:23:31,230 - DEBUG - VN ctest-vn4-47362616 is not present in Agent 10.0.0.38 2026-01-22 16:23:31,230 - INFO - Validated that VN ctest-vn4-47362616 is not in any agent 2026-01-22 16:23:31,244 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-47362616 info 2026-01-22 16:23:31,271 - INFO - Deleted policy ctest-policy1-46437010 2026-01-22 16:23:31,445 - DEBUG - policy ctest-policy1-46437010 is not found in API Server 2026-01-22 16:23:31,702 - DEBUG - No XMPP flaps were noticed during the test