2026-08-17 13:10:32,210 - INFO - Domain Default found not creating 2026-08-17 13:10:32,374 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-83685493 not found, creating it 2026-08-17 13:10:32,907 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-83685493, ID : 7aa19567-0e40-46d6-87c6-c15e8a939b41 2026-08-17 13:10:34,600 - INFO - ================================================================================ 2026-08-17 13:10:34,600 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-08-17 13:10:34,862 - DEBUG - Nothing to compare xmpp stats {'10.0.0.177': {'10.20.0.254': '0'}} with 2026-08-17 13:10:34,862 - INFO - Initial checks done. Running the testcase now 2026-08-17 13:10:34,862 - INFO - 2026-08-17 13:10:34,862 - INFO - ================================================================================ 2026-08-17 13:10:34,862 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-08-17 13:10:34,863 - 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-08-17 13:10:35,175 - DEBUG - Nothing to compare xmpp stats {'10.0.0.177': {'10.20.0.254': '0'}} with 2026-08-17 13:10:35,175 - INFO - Initial checks done. Running the testcase now 2026-08-17 13:10:35,175 - INFO - 2026-08-17 13:10:35,583 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-83685493:ctest-vn4-07054069, 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-83685493:ctest-vn4-07054069, 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-83685493:ctest-vn4-07054069, 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-83685493:ctest-vn4-07054069, 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-08-17 13:10:36,137 - DEBUG - Response for create_network : {'network': {'id': '9eec13a5-91c6-4a07-bbda-5810ab659f0c', 'name': 'ctest-vn4-07054069', 'tenant_id': '7aa195670e4046d687c6c15e8a939b41', 'project_id': '7aa195670e4046d687c6c15e8a939b41', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-83685493', 'ctest-vn4-07054069'], 'port_security_enabled': True, 'description': ''}} 2026-08-17 13:10:36,334 - DEBUG - Response for create_subnet : {'subnet': {'id': 'c5200e49-2cf6-4727-affb-deab1d8869a6', 'name': '', 'tenant_id': '7aa195670e4046d687c6c15e8a939b41', 'network_id': '9eec13a5-91c6-4a07-bbda-5810ab659f0c', 'ip_version': 4, 'cidr': '129.138.185.0/26', 'allocation_pools': [{'start': '129.138.185.2', 'end': '129.138.185.62'}], 'gateway_ip': '129.138.185.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '129.138.185.2', 'tags': [], 'project_id': '7aa195670e4046d687c6c15e8a939b41'}} 2026-08-17 13:10:36,532 - DEBUG - Response for create_subnet : {'subnet': {'id': 'a801412e-1fca-467b-9652-2a6063816361', 'name': '', 'tenant_id': '7aa195670e4046d687c6c15e8a939b41', 'network_id': '9eec13a5-91c6-4a07-bbda-5810ab659f0c', 'ip_version': 6, 'cidr': '38c1:da7b:c521:d4f8:f0bf:cfa1::/96', 'allocation_pools': [{'start': '38c1:da7b:c521:d4f8:f0bf:cfa1:0:2', 'end': '38c1:da7b:c521:d4f8:f0bf:cfa1:ffff:fffe'}], 'gateway_ip': '38c1:da7b:c521:d4f8:f0bf:cfa1:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '38c1:da7b:c521:d4f8:f0bf:cfa1:0:2', 'tags': [], 'project_id': '7aa195670e4046d687c6c15e8a939b41'}} 2026-08-17 13:10:36,554 - INFO - Created VN ctest-vn4-07054069 2026-08-17 13:10:36,606 - DEBUG - VN ctest-vn4-07054069 UUID is 9eec13a5-91c6-4a07-bbda-5810ab659f0c 2026-08-17 13:10:36,818 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '9eec13a5-91c6-4a07-bbda-5810ab659f0c', 'name': 'ctest-vn4-07054069', 'tenant_id': '7aa195670e4046d687c6c15e8a939b41', 'project_id': '7aa195670e4046d687c6c15e8a939b41', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['c5200e49-2cf6-4727-affb-deab1d8869a6', 'a801412e-1fca-467b-9652-2a6063816361'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-83685493', 'ctest-vn4-07054069'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-83685493', 'ctest-policy1-58462892']], 'subnet_ipam': [{'subnet_cidr': '129.138.185.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '38c1:da7b:c521:d4f8:f0bf:cfa1::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2026-08-17 13:10:36,994 - DEBUG - Requesting: http://10.0.0.177:8082/domains 2026-08-17 13:10:37,338 - DEBUG - Requesting: http://10.0.0.177:8082/domains 2026-08-17 13:10:37,375 - DEBUG - Requesting: http://10.0.0.177:8082/domain/ab67ae38-ea1a-4964-ba37-cb4b81b9f1e3 2026-08-17 13:10:37,389 - DEBUG - Requesting: http://10.0.0.177:8082/project/7aa19567-0e40-46d6-87c6-c15e8a939b41 2026-08-17 13:10:37,473 - DEBUG - Requesting: http://10.0.0.177:8082/virtual-network/9eec13a5-91c6-4a07-bbda-5810ab659f0c 2026-08-17 13:10:37,487 - DEBUG - Requesting: http://10.0.0.177:8082/virtual-network/9eec13a5-91c6-4a07-bbda-5810ab659f0c 2026-08-17 13:10:37,499 - DEBUG - Requesting: http://10.0.0.177:8082/routing-instance/b4918538-2aeb-4206-ae90-00009706a4b2 2026-08-17 13:10:37,509 - DEBUG - Requesting: http://10.0.0.177:8082/routing-instance/b4918538-2aeb-4206-ae90-00009706a4b2 2026-08-17 13:10:37,518 - DEBUG - Requesting: http://10.0.0.177:8082/route-target/a8bca6cd-9345-4eeb-9911-530d57d8436b 2026-08-17 13:10:37,526 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-08-17 13:10:37,526 - DEBUG - Requesting: http://10.0.0.177:8082/virtual-network/9eec13a5-91c6-4a07-bbda-5810ab659f0c 2026-08-17 13:10:37,538 - DEBUG - Requesting: http://10.0.0.177:8082/routing-instance/b4918538-2aeb-4206-ae90-00009706a4b2 2026-08-17 13:10:37,555 - INFO - Verified VN network id 11 for VN 9eec13a5-91c6-4a07-bbda-5810ab659f0c 2026-08-17 13:10:37,556 - INFO - Verifications in API Server for VN ctest-vn4-07054069 passed 2026-08-17 13:10:37,556 - DEBUG - Requesting: http://10.0.0.177:8082/virtual-network/9eec13a5-91c6-4a07-bbda-5810ab659f0c 2026-08-17 13:10:37,568 - DEBUG - Requesting: http://10.0.0.177:8082/routing-instance/b4918538-2aeb-4206-ae90-00009706a4b2 2026-08-17 13:10:37,578 - DEBUG - Requesting: http://10.0.0.177:8082/routing-instance/b4918538-2aeb-4206-ae90-00009706a4b2 2026-08-17 13:10:37,587 - DEBUG - Requesting: http://10.0.0.177:8082/route-target/a8bca6cd-9345-4eeb-9911-530d57d8436b 2026-08-17 13:10:37,602 - DEBUG - Control-node 10.0.0.177 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-83685493:ctest-vn4-07054069', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-83685493', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '11451549554332551687', 'uuid-lslong': '13536228458633731852'}, 'enable': 'true', 'created': '2026-08-17T13:10:36', 'last-modified': '2026-08-17T13:10:36', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.811604'} 2026-08-17 13:10:37,610 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-08-17 13:10:37,611 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-07054069 passed 2026-08-17 13:10:37,611 - DEBUG - ====Verifying policy data for ctest-vn4-07054069 in API_Server ====== 2026-08-17 13:10:37,611 - DEBUG - Requesting: http://10.0.0.177:8082/domains 2026-08-17 13:10:37,617 - DEBUG - Requesting: http://10.0.0.177:8082/domain/ab67ae38-ea1a-4964-ba37-cb4b81b9f1e3 2026-08-17 13:10:37,631 - DEBUG - Requesting: http://10.0.0.177:8082/project/7aa19567-0e40-46d6-87c6-c15e8a939b41 2026-08-17 13:10:37,721 - DEBUG - Requesting: http://10.0.0.177:8082/virtual-network/9eec13a5-91c6-4a07-bbda-5810ab659f0c 2026-08-17 13:10:37,736 - DEBUG - ==>Verifying data for policy with id: 1212791b-f58c-4d06-99df-3d293b33e0c8, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-83685493', 'ctest-policy1-58462892'] 2026-08-17 13:10:37,736 - INFO - VN ctest-vn4-07054069 Policy verification: verify_vn_policy_in_api_server, status: True 2026-08-17 13:10:37,736 - DEBUG - Verifying the vn in opserver 2026-08-17 13:10:37,736 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-83685493:ctest-vn4-07054069 virtual network link through opserver 10.0.0.177 2026-08-17 13:10:37,736 - DEBUG - Requesting: http://10.0.0.177:8081/analytics/uves/virtual-networks 2026-08-17 13:10:38,067 - DEBUG - Requesting: http://10.0.0.177:8081/analytics/uves/virtual-networks 2026-08-17 13:10:38,128 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-83685493:ctest-vn4-07054069', 'href': 'http://10.0.0.177:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-83685493:ctest-vn4-07054069?flat'} 2026-08-17 13:10:38,128 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-83685493:ctest-vn4-07054069 is found in opserver 2026-08-17 13:10:38,139 - DEBUG - Do not have enough data to verify VN in agent 2026-08-17 13:10:38,144 - DEBUG - VRF ids for VN ctest-vn4-07054069: {} 2026-08-17 13:10:38,144 - DEBUG - ====Verifying data for ctest-policy1-58462892 in API_Server ====== 2026-08-17 13:10:38,145 - DEBUG - Requesting: http://10.0.0.177:8082/domains 2026-08-17 13:10:38,152 - DEBUG - Requesting: http://10.0.0.177:8082/domain/ab67ae38-ea1a-4964-ba37-cb4b81b9f1e3 2026-08-17 13:10:38,165 - DEBUG - Requesting: http://10.0.0.177:8082/project/7aa19567-0e40-46d6-87c6-c15e8a939b41 2026-08-17 13:10:38,245 - DEBUG - Requesting: http://10.0.0.177:8082/network-policy/1212791b-f58c-4d06-99df-3d293b33e0c8 2026-08-17 13:10:38,259 - INFO - Verified policy ctest-policy1-58462892 in API Server, Result: True 2026-08-17 13:10:38,259 - INFO - Done with setup and verification, moving onto test .. 2026-08-17 13:10:38,271 - INFO - Deleting VN ctest-vn4-07054069 2026-08-17 13:10:38,395 - DEBUG - Response for deleting network () 2026-08-17 13:10:38,395 - DEBUG - Requesting: http://10.0.0.177:8082/routing-instance/b4918538-2aeb-4206-ae90-00009706a4b2 2026-08-17 13:10:38,401 - DEBUG - Response Code: 404 2026-08-17 13:10:38,401 - DEBUG - Requesting: http://10.0.0.177:8082/domains 2026-08-17 13:10:38,407 - DEBUG - Requesting: http://10.0.0.177:8082/domain/ab67ae38-ea1a-4964-ba37-cb4b81b9f1e3 2026-08-17 13:10:38,461 - DEBUG - Requesting: http://10.0.0.177:8082/project/7aa19567-0e40-46d6-87c6-c15e8a939b41 2026-08-17 13:10:38,538 - INFO - Validated that VN ctest-vn4-07054069 is not found in API Server 2026-08-17 13:10:38,550 - DEBUG - VN ctest-vn4-07054069 is not present in Agent 10.0.0.177 2026-08-17 13:10:38,550 - INFO - Validated that VN ctest-vn4-07054069 is not in any agent 2026-08-17 13:10:38,569 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-07054069 info 2026-08-17 13:10:38,600 - INFO - Deleted policy ctest-policy1-58462892 2026-08-17 13:10:38,766 - DEBUG - policy ctest-policy1-58462892 is not found in API Server 2026-08-17 13:10:39,028 - DEBUG - No XMPP flaps were noticed during the test