2025-09-17 17:43:42,264 - INFO - Domain Default found not creating 2025-09-17 17:43:42,418 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-43340271 not found, creating it 2025-09-17 17:43:42,894 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-43340271, ID : 282bbe17-ad1a-4112-9b12-c7c172524b7a 2025-09-17 17:43:44,340 - INFO - ================================================================================ 2025-09-17 17:43:44,341 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-09-17 17:43:44,598 - DEBUG - Nothing to compare xmpp stats {'10.0.0.254': {'10.20.0.17': '0'}} with 2025-09-17 17:43:44,598 - INFO - Initial checks done. Running the testcase now 2025-09-17 17:43:44,598 - INFO - 2025-09-17 17:43:44,598 - INFO - ================================================================================ 2025-09-17 17:43:44,598 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-09-17 17:43:44,598 - 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. 2025-09-17 17:43:44,884 - DEBUG - Nothing to compare xmpp stats {'10.0.0.254': {'10.20.0.17': '0'}} with 2025-09-17 17:43:44,884 - INFO - Initial checks done. Running the testcase now 2025-09-17 17:43:44,884 - INFO - 2025-09-17 17:43:45,249 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-43340271:ctest-vn4-02178322, 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-43340271:ctest-vn4-02178322, 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-43340271:ctest-vn4-02178322, 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-43340271:ctest-vn4-02178322, 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] 2025-09-17 17:43:45,768 - DEBUG - Response for create_network : {'network': {'id': '1155a715-7a83-47e1-a36b-81f6d4b0b645', 'name': 'ctest-vn4-02178322', 'tenant_id': '282bbe17ad1a41129b12c7c172524b7a', 'project_id': '282bbe17ad1a41129b12c7c172524b7a', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-43340271', 'ctest-vn4-02178322'], 'port_security_enabled': True, 'description': ''}} 2025-09-17 17:43:45,932 - DEBUG - Response for create_subnet : {'subnet': {'id': '56efccf0-2a07-475e-84e1-9c44ef8c9e60', 'name': '', 'tenant_id': '282bbe17ad1a41129b12c7c172524b7a', 'network_id': '1155a715-7a83-47e1-a36b-81f6d4b0b645', 'ip_version': 4, 'cidr': '32.203.108.0/26', 'allocation_pools': [{'start': '32.203.108.2', 'end': '32.203.108.62'}], 'gateway_ip': '32.203.108.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '32.203.108.2', 'tags': [], 'project_id': '282bbe17ad1a41129b12c7c172524b7a'}} 2025-09-17 17:43:46,077 - DEBUG - Response for create_subnet : {'subnet': {'id': 'a3be8d8d-7eaa-4979-9a7f-2645781f8acb', 'name': '', 'tenant_id': '282bbe17ad1a41129b12c7c172524b7a', 'network_id': '1155a715-7a83-47e1-a36b-81f6d4b0b645', 'ip_version': 6, 'cidr': '2ea8:63de:d0ce:2ecf:93e4:149d::/96', 'allocation_pools': [{'start': '2ea8:63de:d0ce:2ecf:93e4:149d:0:2', 'end': '2ea8:63de:d0ce:2ecf:93e4:149d:ffff:fffe'}], 'gateway_ip': '2ea8:63de:d0ce:2ecf:93e4:149d:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '2ea8:63de:d0ce:2ecf:93e4:149d:0:2', 'tags': [], 'project_id': '282bbe17ad1a41129b12c7c172524b7a'}} 2025-09-17 17:43:46,098 - INFO - Created VN ctest-vn4-02178322 2025-09-17 17:43:46,152 - DEBUG - VN ctest-vn4-02178322 UUID is 1155a715-7a83-47e1-a36b-81f6d4b0b645 2025-09-17 17:43:46,354 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '1155a715-7a83-47e1-a36b-81f6d4b0b645', 'name': 'ctest-vn4-02178322', 'tenant_id': '282bbe17ad1a41129b12c7c172524b7a', 'project_id': '282bbe17ad1a41129b12c7c172524b7a', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['56efccf0-2a07-475e-84e1-9c44ef8c9e60', 'a3be8d8d-7eaa-4979-9a7f-2645781f8acb'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-43340271', 'ctest-vn4-02178322'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-43340271', 'ctest-policy1-79633267']], 'subnet_ipam': [{'subnet_cidr': '32.203.108.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '2ea8:63de:d0ce:2ecf:93e4:149d::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-09-17 17:43:46,528 - DEBUG - Requesting: http://10.0.0.254:8082/domains 2025-09-17 17:43:46,822 - DEBUG - Requesting: http://10.0.0.254:8082/domains 2025-09-17 17:43:46,849 - DEBUG - Requesting: http://10.0.0.254:8082/domain/9ee9a899-f734-4334-81ba-54f10e0f2a6a 2025-09-17 17:43:46,861 - DEBUG - Requesting: http://10.0.0.254:8082/project/282bbe17-ad1a-4112-9b12-c7c172524b7a 2025-09-17 17:43:46,940 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/1155a715-7a83-47e1-a36b-81f6d4b0b645 2025-09-17 17:43:46,952 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/1155a715-7a83-47e1-a36b-81f6d4b0b645 2025-09-17 17:43:46,960 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/efc1f65d-bf8f-498c-8550-7faa4f2087c5 2025-09-17 17:43:46,965 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/efc1f65d-bf8f-498c-8550-7faa4f2087c5 2025-09-17 17:43:46,971 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/d35d35ec-fe05-4848-8c8c-d2662ec106c6 2025-09-17 17:43:46,976 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-09-17 17:43:46,976 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/1155a715-7a83-47e1-a36b-81f6d4b0b645 2025-09-17 17:43:46,985 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/efc1f65d-bf8f-498c-8550-7faa4f2087c5 2025-09-17 17:43:47,000 - INFO - Verified VN network id 11 for VN 1155a715-7a83-47e1-a36b-81f6d4b0b645 2025-09-17 17:43:47,000 - INFO - Verifications in API Server for VN ctest-vn4-02178322 passed 2025-09-17 17:43:47,000 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/1155a715-7a83-47e1-a36b-81f6d4b0b645 2025-09-17 17:43:47,010 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/efc1f65d-bf8f-498c-8550-7faa4f2087c5 2025-09-17 17:43:47,016 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/efc1f65d-bf8f-498c-8550-7faa4f2087c5 2025-09-17 17:43:47,021 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/d35d35ec-fe05-4848-8c8c-d2662ec106c6 2025-09-17 17:43:47,032 - DEBUG - Control-node 10.0.0.254 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-43340271:ctest-vn4-02178322', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-43340271', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '1249088182356756449', 'uuid-lslong': '11775648547820582469'}, 'enable': 'true', 'created': '2025-09-17T17:43:45', 'last-modified': '2025-09-17T17:43:46', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.716319'} 2025-09-17 17:43:47,037 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-09-17 17:43:47,038 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-02178322 passed 2025-09-17 17:43:47,038 - DEBUG - ====Verifying policy data for ctest-vn4-02178322 in API_Server ====== 2025-09-17 17:43:47,038 - DEBUG - Requesting: http://10.0.0.254:8082/domains 2025-09-17 17:43:47,043 - DEBUG - Requesting: http://10.0.0.254:8082/domain/9ee9a899-f734-4334-81ba-54f10e0f2a6a 2025-09-17 17:43:47,053 - DEBUG - Requesting: http://10.0.0.254:8082/project/282bbe17-ad1a-4112-9b12-c7c172524b7a 2025-09-17 17:43:47,128 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/1155a715-7a83-47e1-a36b-81f6d4b0b645 2025-09-17 17:43:47,139 - DEBUG - ==>Verifying data for policy with id: 0f4efa9e-e10e-4eac-9dab-61c43f9b3eae, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-43340271', 'ctest-policy1-79633267'] 2025-09-17 17:43:47,139 - INFO - VN ctest-vn4-02178322 Policy verification: verify_vn_policy_in_api_server, status: True 2025-09-17 17:43:47,139 - DEBUG - Verifying the vn in opserver 2025-09-17 17:43:47,139 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-43340271:ctest-vn4-02178322 virtual network link through opserver 10.0.0.254 2025-09-17 17:43:47,139 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks 2025-09-17 17:43:47,460 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks 2025-09-17 17:43:47,523 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-43340271:ctest-vn4-02178322', 'href': 'http://10.0.0.254:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-43340271:ctest-vn4-02178322?flat'} 2025-09-17 17:43:47,523 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-43340271:ctest-vn4-02178322 is found in opserver 2025-09-17 17:43:47,532 - DEBUG - Do not have enough data to verify VN in agent 2025-09-17 17:43:47,536 - DEBUG - VRF ids for VN ctest-vn4-02178322: {} 2025-09-17 17:43:47,536 - DEBUG - ====Verifying data for ctest-policy1-79633267 in API_Server ====== 2025-09-17 17:43:47,536 - DEBUG - Requesting: http://10.0.0.254:8082/domains 2025-09-17 17:43:47,542 - DEBUG - Requesting: http://10.0.0.254:8082/domain/9ee9a899-f734-4334-81ba-54f10e0f2a6a 2025-09-17 17:43:47,552 - DEBUG - Requesting: http://10.0.0.254:8082/project/282bbe17-ad1a-4112-9b12-c7c172524b7a 2025-09-17 17:43:47,621 - DEBUG - Requesting: http://10.0.0.254:8082/network-policy/0f4efa9e-e10e-4eac-9dab-61c43f9b3eae 2025-09-17 17:43:47,632 - INFO - Verified policy ctest-policy1-79633267 in API Server, Result: True 2025-09-17 17:43:47,632 - INFO - Done with setup and verification, moving onto test .. 2025-09-17 17:43:47,640 - INFO - Deleting VN ctest-vn4-02178322 2025-09-17 17:43:47,790 - DEBUG - Response for deleting network () 2025-09-17 17:43:47,790 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/efc1f65d-bf8f-498c-8550-7faa4f2087c5 2025-09-17 17:43:47,797 - DEBUG - Response Code: 404 2025-09-17 17:43:47,797 - DEBUG - Requesting: http://10.0.0.254:8082/domains 2025-09-17 17:43:47,801 - DEBUG - Requesting: http://10.0.0.254:8082/domain/9ee9a899-f734-4334-81ba-54f10e0f2a6a 2025-09-17 17:43:47,814 - DEBUG - Requesting: http://10.0.0.254:8082/project/282bbe17-ad1a-4112-9b12-c7c172524b7a 2025-09-17 17:43:47,881 - INFO - Validated that VN ctest-vn4-02178322 is not found in API Server 2025-09-17 17:43:47,891 - DEBUG - VN ctest-vn4-02178322 is not present in Agent 10.0.0.254 2025-09-17 17:43:47,891 - INFO - Validated that VN ctest-vn4-02178322 is not in any agent 2025-09-17 17:43:47,904 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-02178322 info 2025-09-17 17:43:47,927 - INFO - Deleted policy ctest-policy1-79633267 2025-09-17 17:43:48,091 - DEBUG - policy ctest-policy1-79633267 is not found in API Server 2025-09-17 17:43:48,345 - DEBUG - No XMPP flaps were noticed during the test