2026-02-03 12:58:34,317 - INFO - Domain Default found not creating 2026-02-03 12:58:34,521 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-23612797 not found, creating it 2026-02-03 12:58:35,062 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-23612797, ID : 54d219cc-9ffd-4de0-b7ca-60d38019fe5a 2026-02-03 12:58:36,710 - INFO - ================================================================================ 2026-02-03 12:58:36,710 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-02-03 12:58:36,984 - DEBUG - Nothing to compare xmpp stats {'10.0.0.129': {'10.20.0.254': '0'}} with 2026-02-03 12:58:36,984 - INFO - Initial checks done. Running the testcase now 2026-02-03 12:58:36,984 - INFO - 2026-02-03 12:58:36,984 - INFO - ================================================================================ 2026-02-03 12:58:36,984 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-02-03 12:58:36,984 - 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-02-03 12:58:37,287 - DEBUG - Nothing to compare xmpp stats {'10.0.0.129': {'10.20.0.254': '0'}} with 2026-02-03 12:58:37,287 - INFO - Initial checks done. Running the testcase now 2026-02-03 12:58:37,287 - INFO - 2026-02-03 12:58:37,707 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-23612797:ctest-vn4-61614388, 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-23612797:ctest-vn4-61614388, 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-23612797:ctest-vn4-61614388, 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-23612797:ctest-vn4-61614388, 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-02-03 12:58:38,262 - DEBUG - Response for create_network : {'network': {'id': '051db248-e1d5-4be5-bac6-82a43f57df58', 'name': 'ctest-vn4-61614388', 'tenant_id': '54d219cc9ffd4de0b7ca60d38019fe5a', 'project_id': '54d219cc9ffd4de0b7ca60d38019fe5a', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-23612797', 'ctest-vn4-61614388'], 'port_security_enabled': True, 'description': ''}} 2026-02-03 12:58:38,470 - DEBUG - Response for create_subnet : {'subnet': {'id': 'a68d75f6-d55b-43c2-aa0f-4a33278d6412', 'name': '', 'tenant_id': '54d219cc9ffd4de0b7ca60d38019fe5a', 'network_id': '051db248-e1d5-4be5-bac6-82a43f57df58', 'ip_version': 4, 'cidr': '173.96.77.192/26', 'allocation_pools': [{'start': '173.96.77.194', 'end': '173.96.77.254'}], 'gateway_ip': '173.96.77.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '173.96.77.194', 'tags': [], 'project_id': '54d219cc9ffd4de0b7ca60d38019fe5a'}} 2026-02-03 12:58:38,624 - DEBUG - Response for create_subnet : {'subnet': {'id': 'e01ae8ee-fd1d-4a4c-ac89-cb6bfaf50e8c', 'name': '', 'tenant_id': '54d219cc9ffd4de0b7ca60d38019fe5a', 'network_id': '051db248-e1d5-4be5-bac6-82a43f57df58', 'ip_version': 6, 'cidr': '3ce3:e337:f46c:4590:30b9:1603::/96', 'allocation_pools': [{'start': '3ce3:e337:f46c:4590:30b9:1603:0:2', 'end': '3ce3:e337:f46c:4590:30b9:1603:ffff:fffe'}], 'gateway_ip': '3ce3:e337:f46c:4590:30b9:1603:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '3ce3:e337:f46c:4590:30b9:1603:0:2', 'tags': [], 'project_id': '54d219cc9ffd4de0b7ca60d38019fe5a'}} 2026-02-03 12:58:38,647 - INFO - Created VN ctest-vn4-61614388 2026-02-03 12:58:38,703 - DEBUG - VN ctest-vn4-61614388 UUID is 051db248-e1d5-4be5-bac6-82a43f57df58 2026-02-03 12:58:38,950 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '051db248-e1d5-4be5-bac6-82a43f57df58', 'name': 'ctest-vn4-61614388', 'tenant_id': '54d219cc9ffd4de0b7ca60d38019fe5a', 'project_id': '54d219cc9ffd4de0b7ca60d38019fe5a', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['a68d75f6-d55b-43c2-aa0f-4a33278d6412', 'e01ae8ee-fd1d-4a4c-ac89-cb6bfaf50e8c'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-23612797', 'ctest-vn4-61614388'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-23612797', 'ctest-policy1-23772528']], 'subnet_ipam': [{'subnet_cidr': '173.96.77.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '3ce3:e337:f46c:4590:30b9:1603::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2026-02-03 12:58:39,111 - DEBUG - Requesting: http://10.0.0.129:8082/domains 2026-02-03 12:58:39,429 - DEBUG - Requesting: http://10.0.0.129:8082/domains 2026-02-03 12:58:39,466 - DEBUG - Requesting: http://10.0.0.129:8082/domain/33182b97-85b8-4cd8-a9b5-fe71359837a2 2026-02-03 12:58:39,481 - DEBUG - Requesting: http://10.0.0.129:8082/project/54d219cc-9ffd-4de0-b7ca-60d38019fe5a 2026-02-03 12:58:39,555 - DEBUG - Requesting: http://10.0.0.129:8082/virtual-network/051db248-e1d5-4be5-bac6-82a43f57df58 2026-02-03 12:58:39,567 - DEBUG - Requesting: http://10.0.0.129:8082/virtual-network/051db248-e1d5-4be5-bac6-82a43f57df58 2026-02-03 12:58:39,577 - DEBUG - Requesting: http://10.0.0.129:8082/routing-instance/14f5de99-feef-43a4-ad72-ba5acbadb56b 2026-02-03 12:58:39,583 - DEBUG - Requesting: http://10.0.0.129:8082/routing-instance/14f5de99-feef-43a4-ad72-ba5acbadb56b 2026-02-03 12:58:39,589 - DEBUG - Requesting: http://10.0.0.129:8082/route-target/5fa06aa7-a38d-457f-b03a-dda11a9d0f1e 2026-02-03 12:58:39,595 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-02-03 12:58:39,595 - DEBUG - Requesting: http://10.0.0.129:8082/virtual-network/051db248-e1d5-4be5-bac6-82a43f57df58 2026-02-03 12:58:39,604 - DEBUG - Requesting: http://10.0.0.129:8082/routing-instance/14f5de99-feef-43a4-ad72-ba5acbadb56b 2026-02-03 12:58:39,619 - INFO - Verified VN network id 11 for VN 051db248-e1d5-4be5-bac6-82a43f57df58 2026-02-03 12:58:39,619 - INFO - Verifications in API Server for VN ctest-vn4-61614388 passed 2026-02-03 12:58:39,619 - DEBUG - Requesting: http://10.0.0.129:8082/virtual-network/051db248-e1d5-4be5-bac6-82a43f57df58 2026-02-03 12:58:39,629 - DEBUG - Requesting: http://10.0.0.129:8082/routing-instance/14f5de99-feef-43a4-ad72-ba5acbadb56b 2026-02-03 12:58:39,636 - DEBUG - Requesting: http://10.0.0.129:8082/routing-instance/14f5de99-feef-43a4-ad72-ba5acbadb56b 2026-02-03 12:58:39,644 - DEBUG - Requesting: http://10.0.0.129:8082/route-target/5fa06aa7-a38d-457f-b03a-dda11a9d0f1e 2026-02-03 12:58:39,658 - DEBUG - Control-node 10.0.0.129 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-23612797:ctest-vn4-61614388', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-23612797', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '368646770610490341', 'uuid-lslong': '13458588178392276824'}, 'enable': 'true', 'created': '2026-02-03T12:58:38', 'last-modified': '2026-02-03T12:58:38', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.742376'} 2026-02-03 12:58:39,664 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-02-03 12:58:39,664 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-61614388 passed 2026-02-03 12:58:39,665 - DEBUG - ====Verifying policy data for ctest-vn4-61614388 in API_Server ====== 2026-02-03 12:58:39,665 - DEBUG - Requesting: http://10.0.0.129:8082/domains 2026-02-03 12:58:39,670 - DEBUG - Requesting: http://10.0.0.129:8082/domain/33182b97-85b8-4cd8-a9b5-fe71359837a2 2026-02-03 12:58:39,681 - DEBUG - Requesting: http://10.0.0.129:8082/project/54d219cc-9ffd-4de0-b7ca-60d38019fe5a 2026-02-03 12:58:39,758 - DEBUG - Requesting: http://10.0.0.129:8082/virtual-network/051db248-e1d5-4be5-bac6-82a43f57df58 2026-02-03 12:58:39,768 - DEBUG - ==>Verifying data for policy with id: e216e0e8-964b-4ecd-9d2e-6e65873d8461, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-23612797', 'ctest-policy1-23772528'] 2026-02-03 12:58:39,768 - INFO - VN ctest-vn4-61614388 Policy verification: verify_vn_policy_in_api_server, status: True 2026-02-03 12:58:39,768 - DEBUG - Verifying the vn in opserver 2026-02-03 12:58:39,768 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-23612797:ctest-vn4-61614388 virtual network link through opserver 10.0.0.129 2026-02-03 12:58:39,768 - DEBUG - Requesting: http://10.0.0.129:8081/analytics/uves/virtual-networks 2026-02-03 12:58:40,067 - DEBUG - Requesting: http://10.0.0.129:8081/analytics/uves/virtual-networks 2026-02-03 12:58:40,145 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-23612797:ctest-vn4-61614388', 'href': 'http://10.0.0.129:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-23612797:ctest-vn4-61614388?flat'} 2026-02-03 12:58:40,145 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-23612797:ctest-vn4-61614388 is found in opserver 2026-02-03 12:58:40,156 - DEBUG - Do not have enough data to verify VN in agent 2026-02-03 12:58:40,162 - DEBUG - VRF ids for VN ctest-vn4-61614388: {} 2026-02-03 12:58:40,162 - DEBUG - ====Verifying data for ctest-policy1-23772528 in API_Server ====== 2026-02-03 12:58:40,163 - DEBUG - Requesting: http://10.0.0.129:8082/domains 2026-02-03 12:58:40,169 - DEBUG - Requesting: http://10.0.0.129:8082/domain/33182b97-85b8-4cd8-a9b5-fe71359837a2 2026-02-03 12:58:40,184 - DEBUG - Requesting: http://10.0.0.129:8082/project/54d219cc-9ffd-4de0-b7ca-60d38019fe5a 2026-02-03 12:58:40,262 - DEBUG - Requesting: http://10.0.0.129:8082/network-policy/e216e0e8-964b-4ecd-9d2e-6e65873d8461 2026-02-03 12:58:40,274 - INFO - Verified policy ctest-policy1-23772528 in API Server, Result: True 2026-02-03 12:58:40,274 - INFO - Done with setup and verification, moving onto test .. 2026-02-03 12:58:40,284 - INFO - Deleting VN ctest-vn4-61614388 2026-02-03 12:58:40,415 - DEBUG - Response for deleting network () 2026-02-03 12:58:40,415 - DEBUG - Requesting: http://10.0.0.129:8082/routing-instance/14f5de99-feef-43a4-ad72-ba5acbadb56b 2026-02-03 12:58:40,421 - DEBUG - Response Code: 404 2026-02-03 12:58:40,421 - DEBUG - Requesting: http://10.0.0.129:8082/domains 2026-02-03 12:58:40,427 - DEBUG - Requesting: http://10.0.0.129:8082/domain/33182b97-85b8-4cd8-a9b5-fe71359837a2 2026-02-03 12:58:40,481 - DEBUG - Requesting: http://10.0.0.129:8082/project/54d219cc-9ffd-4de0-b7ca-60d38019fe5a 2026-02-03 12:58:40,559 - INFO - Validated that VN ctest-vn4-61614388 is not found in API Server 2026-02-03 12:58:40,570 - DEBUG - VN ctest-vn4-61614388 is not present in Agent 10.0.0.129 2026-02-03 12:58:40,570 - INFO - Validated that VN ctest-vn4-61614388 is not in any agent 2026-02-03 12:58:40,588 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-61614388 info 2026-02-03 12:58:40,613 - INFO - Deleted policy ctest-policy1-23772528 2026-02-03 12:58:40,819 - DEBUG - policy ctest-policy1-23772528 is not found in API Server 2026-02-03 12:58:41,078 - DEBUG - No XMPP flaps were noticed during the test
2026-02-03 12:58:41,078 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:05]
2026-02-03 12:58:41,079 - INFO - -------------------------------------------------------------------------------- 2026-02-03 12:58:41,388 - DEBUG - No XMPP flaps were noticed during the test
2026-02-03 12:58:41,388 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:05]
2026-02-03 12:58:41,388 - INFO - -------------------------------------------------------------------------------- 2026-02-03 12:58:42,147 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-23612797, ID : 54d219cc-9ffd-4de0-b7ca-60d38019fe5a