2026-05-12 17:43:37,223 - INFO - Domain Default found not creating 2026-05-12 17:43:37,416 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-72970430 not found, creating it 2026-05-12 17:43:37,903 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-72970430, ID : 88e48770-0daa-46c8-ba15-3357c229e5f8 2026-05-12 17:43:39,404 - INFO - ================================================================================ 2026-05-12 17:43:39,404 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-05-12 17:43:39,662 - DEBUG - Nothing to compare xmpp stats {'10.0.0.242': {'10.20.0.17': '0'}} with 2026-05-12 17:43:39,663 - INFO - Initial checks done. Running the testcase now 2026-05-12 17:43:39,663 - INFO - 2026-05-12 17:43:39,663 - INFO - ================================================================================ 2026-05-12 17:43:39,663 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-05-12 17:43:39,663 - 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-05-12 17:43:39,956 - DEBUG - Nothing to compare xmpp stats {'10.0.0.242': {'10.20.0.17': '0'}} with 2026-05-12 17:43:39,956 - INFO - Initial checks done. Running the testcase now 2026-05-12 17:43:39,956 - INFO - 2026-05-12 17:43:40,314 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-72970430:ctest-vn4-34843295, 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-72970430:ctest-vn4-34843295, 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-72970430:ctest-vn4-34843295, 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-72970430:ctest-vn4-34843295, 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-05-12 17:43:40,921 - DEBUG - Response for create_network : {'network': {'id': '54af3e54-9825-4c57-a3ec-c0cf3b9bef86', 'name': 'ctest-vn4-34843295', 'tenant_id': '88e487700daa46c8ba153357c229e5f8', 'project_id': '88e487700daa46c8ba153357c229e5f8', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-72970430', 'ctest-vn4-34843295'], 'port_security_enabled': True, 'description': ''}} 2026-05-12 17:43:41,082 - DEBUG - Response for create_subnet : {'subnet': {'id': 'a376f6bf-cf02-41ce-b2df-0ae3b6d46f0e', 'name': '', 'tenant_id': '88e487700daa46c8ba153357c229e5f8', 'network_id': '54af3e54-9825-4c57-a3ec-c0cf3b9bef86', 'ip_version': 4, 'cidr': '188.67.146.192/26', 'allocation_pools': [{'start': '188.67.146.194', 'end': '188.67.146.254'}], 'gateway_ip': '188.67.146.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '188.67.146.194', 'tags': [], 'project_id': '88e487700daa46c8ba153357c229e5f8'}} 2026-05-12 17:43:41,292 - DEBUG - Response for create_subnet : {'subnet': {'id': 'd8542254-966c-46e8-80f3-a4dee2ed80ed', 'name': '', 'tenant_id': '88e487700daa46c8ba153357c229e5f8', 'network_id': '54af3e54-9825-4c57-a3ec-c0cf3b9bef86', 'ip_version': 6, 'cidr': '2655:2acb:530:c01b:c36b:ae03::/96', 'allocation_pools': [{'start': '2655:2acb:530:c01b:c36b:ae03:0:2', 'end': '2655:2acb:530:c01b:c36b:ae03:ffff:fffe'}], 'gateway_ip': '2655:2acb:530:c01b:c36b:ae03:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '2655:2acb:530:c01b:c36b:ae03:0:2', 'tags': [], 'project_id': '88e487700daa46c8ba153357c229e5f8'}} 2026-05-12 17:43:41,312 - INFO - Created VN ctest-vn4-34843295 2026-05-12 17:43:41,363 - DEBUG - VN ctest-vn4-34843295 UUID is 54af3e54-9825-4c57-a3ec-c0cf3b9bef86 2026-05-12 17:43:41,566 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '54af3e54-9825-4c57-a3ec-c0cf3b9bef86', 'name': 'ctest-vn4-34843295', 'tenant_id': '88e487700daa46c8ba153357c229e5f8', 'project_id': '88e487700daa46c8ba153357c229e5f8', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['a376f6bf-cf02-41ce-b2df-0ae3b6d46f0e', 'd8542254-966c-46e8-80f3-a4dee2ed80ed'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-72970430', 'ctest-vn4-34843295'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-72970430', 'ctest-policy1-86788401']], 'subnet_ipam': [{'subnet_cidr': '188.67.146.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '2655:2acb:530:c01b:c36b:ae03::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2026-05-12 17:43:41,727 - DEBUG - Requesting: http://10.0.0.242:8082/domains 2026-05-12 17:43:42,022 - DEBUG - Requesting: http://10.0.0.242:8082/domains 2026-05-12 17:43:42,061 - DEBUG - Requesting: http://10.0.0.242:8082/domain/22ec9995-416d-4053-9875-5a199a9ea372 2026-05-12 17:43:42,075 - DEBUG - Requesting: http://10.0.0.242:8082/project/88e48770-0daa-46c8-ba15-3357c229e5f8 2026-05-12 17:43:42,147 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/54af3e54-9825-4c57-a3ec-c0cf3b9bef86 2026-05-12 17:43:42,159 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/54af3e54-9825-4c57-a3ec-c0cf3b9bef86 2026-05-12 17:43:42,170 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/83f07aff-3a26-4f1c-aae4-7de3f0ae7d95 2026-05-12 17:43:42,177 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/83f07aff-3a26-4f1c-aae4-7de3f0ae7d95 2026-05-12 17:43:42,184 - DEBUG - Requesting: http://10.0.0.242:8082/route-target/bf7205d9-0f50-4cbe-be2f-0ba19a2a5009 2026-05-12 17:43:42,191 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-05-12 17:43:42,191 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/54af3e54-9825-4c57-a3ec-c0cf3b9bef86 2026-05-12 17:43:42,202 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/83f07aff-3a26-4f1c-aae4-7de3f0ae7d95 2026-05-12 17:43:42,217 - INFO - Verified VN network id 11 for VN 54af3e54-9825-4c57-a3ec-c0cf3b9bef86 2026-05-12 17:43:42,218 - INFO - Verifications in API Server for VN ctest-vn4-34843295 passed 2026-05-12 17:43:42,218 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/54af3e54-9825-4c57-a3ec-c0cf3b9bef86 2026-05-12 17:43:42,228 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/83f07aff-3a26-4f1c-aae4-7de3f0ae7d95 2026-05-12 17:43:42,235 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/83f07aff-3a26-4f1c-aae4-7de3f0ae7d95 2026-05-12 17:43:42,244 - DEBUG - Requesting: http://10.0.0.242:8082/route-target/bf7205d9-0f50-4cbe-be2f-0ba19a2a5009 2026-05-12 17:43:42,257 - DEBUG - Control-node 10.0.0.242 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-72970430:ctest-vn4-34843295', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-72970430', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '6102164553161067607', 'uuid-lslong': '11812027918976806790'}, 'enable': 'true', 'created': '2026-05-12T17:43:40', 'last-modified': '2026-05-12T17:43:41', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.717957'} 2026-05-12 17:43:42,263 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-05-12 17:43:42,264 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-34843295 passed 2026-05-12 17:43:42,264 - DEBUG - ====Verifying policy data for ctest-vn4-34843295 in API_Server ====== 2026-05-12 17:43:42,264 - DEBUG - Requesting: http://10.0.0.242:8082/domains 2026-05-12 17:43:42,270 - DEBUG - Requesting: http://10.0.0.242:8082/domain/22ec9995-416d-4053-9875-5a199a9ea372 2026-05-12 17:43:42,282 - DEBUG - Requesting: http://10.0.0.242:8082/project/88e48770-0daa-46c8-ba15-3357c229e5f8 2026-05-12 17:43:42,355 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/54af3e54-9825-4c57-a3ec-c0cf3b9bef86 2026-05-12 17:43:42,366 - DEBUG - ==>Verifying data for policy with id: 31f8200b-c3a6-4800-9b6b-7237a819f023, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-72970430', 'ctest-policy1-86788401'] 2026-05-12 17:43:42,366 - INFO - VN ctest-vn4-34843295 Policy verification: verify_vn_policy_in_api_server, status: True 2026-05-12 17:43:42,366 - DEBUG - Verifying the vn in opserver 2026-05-12 17:43:42,366 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-72970430:ctest-vn4-34843295 virtual network link through opserver 10.0.0.242 2026-05-12 17:43:42,366 - DEBUG - Requesting: http://10.0.0.242:8081/analytics/uves/virtual-networks 2026-05-12 17:43:42,663 - DEBUG - Requesting: http://10.0.0.242:8081/analytics/uves/virtual-networks 2026-05-12 17:43:42,729 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-72970430:ctest-vn4-34843295', 'href': 'http://10.0.0.242:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-72970430:ctest-vn4-34843295?flat'} 2026-05-12 17:43:42,729 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-72970430:ctest-vn4-34843295 is found in opserver 2026-05-12 17:43:42,740 - DEBUG - Do not have enough data to verify VN in agent 2026-05-12 17:43:42,746 - DEBUG - VRF ids for VN ctest-vn4-34843295: {} 2026-05-12 17:43:42,746 - DEBUG - ====Verifying data for ctest-policy1-86788401 in API_Server ====== 2026-05-12 17:43:42,746 - DEBUG - Requesting: http://10.0.0.242:8082/domains 2026-05-12 17:43:42,753 - DEBUG - Requesting: http://10.0.0.242:8082/domain/22ec9995-416d-4053-9875-5a199a9ea372 2026-05-12 17:43:42,766 - DEBUG - Requesting: http://10.0.0.242:8082/project/88e48770-0daa-46c8-ba15-3357c229e5f8 2026-05-12 17:43:42,835 - DEBUG - Requesting: http://10.0.0.242:8082/network-policy/31f8200b-c3a6-4800-9b6b-7237a819f023 2026-05-12 17:43:42,844 - INFO - Verified policy ctest-policy1-86788401 in API Server, Result: True 2026-05-12 17:43:42,844 - INFO - Done with setup and verification, moving onto test .. 2026-05-12 17:43:42,852 - INFO - Deleting VN ctest-vn4-34843295 2026-05-12 17:43:42,970 - DEBUG - Response for deleting network () 2026-05-12 17:43:42,970 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/83f07aff-3a26-4f1c-aae4-7de3f0ae7d95 2026-05-12 17:43:42,976 - DEBUG - Response Code: 404 2026-05-12 17:43:42,976 - DEBUG - Requesting: http://10.0.0.242:8082/domains 2026-05-12 17:43:42,982 - DEBUG - Requesting: http://10.0.0.242:8082/domain/22ec9995-416d-4053-9875-5a199a9ea372 2026-05-12 17:43:43,037 - DEBUG - Requesting: http://10.0.0.242:8082/project/88e48770-0daa-46c8-ba15-3357c229e5f8 2026-05-12 17:43:43,113 - INFO - Validated that VN ctest-vn4-34843295 is not found in API Server 2026-05-12 17:43:43,126 - DEBUG - VN ctest-vn4-34843295 is not present in Agent 10.0.0.242 2026-05-12 17:43:43,127 - INFO - Validated that VN ctest-vn4-34843295 is not in any agent 2026-05-12 17:43:43,144 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-34843295 info 2026-05-12 17:43:43,169 - INFO - Deleted policy ctest-policy1-86788401 2026-05-12 17:43:43,339 - DEBUG - policy ctest-policy1-86788401 is not found in API Server 2026-05-12 17:43:43,597 - DEBUG - No XMPP flaps were noticed during the test