2025-08-11 15:54:50,879 - INFO - Domain Default found not creating 2025-08-11 15:54:50,998 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-72054303 not found, creating it 2025-08-11 15:54:51,413 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-72054303, ID : e9d89524-aff3-47d5-b5d2-0c323297ee2f 2025-08-11 15:54:52,718 - INFO - ================================================================================ 2025-08-11 15:54:52,718 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-08-11 15:54:53,013 - DEBUG - Nothing to compare xmpp stats {'10.0.0.130': {'10.20.0.14': '0'}} with 2025-08-11 15:54:53,013 - INFO - Initial checks done. Running the testcase now 2025-08-11 15:54:53,013 - INFO - 2025-08-11 15:54:53,013 - INFO - ================================================================================ 2025-08-11 15:54:53,013 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-08-11 15:54:53,014 - 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-08-11 15:54:53,301 - DEBUG - Nothing to compare xmpp stats {'10.0.0.130': {'10.20.0.14': '0'}} with 2025-08-11 15:54:53,301 - INFO - Initial checks done. Running the testcase now 2025-08-11 15:54:53,301 - INFO - 2025-08-11 15:54:53,635 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-72054303:ctest-vn4-81542094, 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-72054303:ctest-vn4-81542094, 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-72054303:ctest-vn4-81542094, 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-72054303:ctest-vn4-81542094, 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-08-11 15:54:54,123 - DEBUG - Response for create_network : {'network': {'id': '89e88f55-f694-4eba-9587-0ea48f2ba790', 'name': 'ctest-vn4-81542094', 'tenant_id': 'e9d89524aff347d5b5d20c323297ee2f', 'project_id': 'e9d89524aff347d5b5d20c323297ee2f', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-72054303', 'ctest-vn4-81542094'], 'port_security_enabled': True, 'description': ''}} 2025-08-11 15:54:54,284 - DEBUG - Response for create_subnet : {'subnet': {'id': '7a7ca972-47d7-4301-bd0c-ac4cea40e1ec', 'name': '', 'tenant_id': 'e9d89524aff347d5b5d20c323297ee2f', 'network_id': '89e88f55-f694-4eba-9587-0ea48f2ba790', 'ip_version': 4, 'cidr': '209.65.6.0/26', 'allocation_pools': [{'start': '209.65.6.2', 'end': '209.65.6.62'}], 'gateway_ip': '209.65.6.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '209.65.6.2', 'tags': [], 'project_id': 'e9d89524aff347d5b5d20c323297ee2f'}} 2025-08-11 15:54:54,468 - DEBUG - Response for create_subnet : {'subnet': {'id': 'b8f55507-71c0-4ec8-844c-2e2e8b90337b', 'name': '', 'tenant_id': 'e9d89524aff347d5b5d20c323297ee2f', 'network_id': '89e88f55-f694-4eba-9587-0ea48f2ba790', 'ip_version': 6, 'cidr': '28a3:a12f:6a19:f7bf:8a32:b461::/96', 'allocation_pools': [{'start': '28a3:a12f:6a19:f7bf:8a32:b461:0:2', 'end': '28a3:a12f:6a19:f7bf:8a32:b461:ffff:fffe'}], 'gateway_ip': '28a3:a12f:6a19:f7bf:8a32:b461:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '28a3:a12f:6a19:f7bf:8a32:b461:0:2', 'tags': [], 'project_id': 'e9d89524aff347d5b5d20c323297ee2f'}} 2025-08-11 15:54:54,487 - INFO - Created VN ctest-vn4-81542094 2025-08-11 15:54:54,539 - DEBUG - VN ctest-vn4-81542094 UUID is 89e88f55-f694-4eba-9587-0ea48f2ba790 2025-08-11 15:54:54,721 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '89e88f55-f694-4eba-9587-0ea48f2ba790', 'name': 'ctest-vn4-81542094', 'tenant_id': 'e9d89524aff347d5b5d20c323297ee2f', 'project_id': 'e9d89524aff347d5b5d20c323297ee2f', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['7a7ca972-47d7-4301-bd0c-ac4cea40e1ec', 'b8f55507-71c0-4ec8-844c-2e2e8b90337b'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-72054303', 'ctest-vn4-81542094'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-72054303', 'ctest-policy1-32982018']], 'subnet_ipam': [{'subnet_cidr': '209.65.6.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '28a3:a12f:6a19:f7bf:8a32:b461::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-08-11 15:54:54,887 - DEBUG - Requesting: http://10.0.0.130:8082/domains 2025-08-11 15:54:55,176 - DEBUG - Requesting: http://10.0.0.130:8082/domains 2025-08-11 15:54:55,203 - DEBUG - Requesting: http://10.0.0.130:8082/domain/e8e87a2a-62f3-4584-abb6-6cf01af9428d 2025-08-11 15:54:55,217 - DEBUG - Requesting: http://10.0.0.130:8082/project/e9d89524-aff3-47d5-b5d2-0c323297ee2f 2025-08-11 15:54:55,288 - DEBUG - Requesting: http://10.0.0.130:8082/virtual-network/89e88f55-f694-4eba-9587-0ea48f2ba790 2025-08-11 15:54:55,299 - DEBUG - Requesting: http://10.0.0.130:8082/virtual-network/89e88f55-f694-4eba-9587-0ea48f2ba790 2025-08-11 15:54:55,309 - DEBUG - Requesting: http://10.0.0.130:8082/routing-instance/159a905f-de53-4ce2-b787-8741ac923ed8 2025-08-11 15:54:55,316 - DEBUG - Requesting: http://10.0.0.130:8082/routing-instance/159a905f-de53-4ce2-b787-8741ac923ed8 2025-08-11 15:54:55,322 - DEBUG - Requesting: http://10.0.0.130:8082/route-target/095e7ac0-74fa-4e27-8ecc-c08bfda333e3 2025-08-11 15:54:55,328 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-08-11 15:54:55,328 - DEBUG - Requesting: http://10.0.0.130:8082/virtual-network/89e88f55-f694-4eba-9587-0ea48f2ba790 2025-08-11 15:54:55,337 - DEBUG - Requesting: http://10.0.0.130:8082/routing-instance/159a905f-de53-4ce2-b787-8741ac923ed8 2025-08-11 15:54:55,349 - INFO - Verified VN network id 11 for VN 89e88f55-f694-4eba-9587-0ea48f2ba790 2025-08-11 15:54:55,349 - INFO - Verifications in API Server for VN ctest-vn4-81542094 passed 2025-08-11 15:54:55,349 - DEBUG - Requesting: http://10.0.0.130:8082/virtual-network/89e88f55-f694-4eba-9587-0ea48f2ba790 2025-08-11 15:54:55,358 - DEBUG - Requesting: http://10.0.0.130:8082/routing-instance/159a905f-de53-4ce2-b787-8741ac923ed8 2025-08-11 15:54:55,364 - DEBUG - Requesting: http://10.0.0.130:8082/routing-instance/159a905f-de53-4ce2-b787-8741ac923ed8 2025-08-11 15:54:55,370 - DEBUG - Requesting: http://10.0.0.130:8082/route-target/095e7ac0-74fa-4e27-8ecc-c08bfda333e3 2025-08-11 15:54:55,380 - DEBUG - Control-node 10.0.0.130 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-72054303:ctest-vn4-81542094', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-72054303', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '9937350177164906170', 'uuid-lslong': '10774596733446629264'}, 'enable': 'true', 'created': '2025-08-11T15:54:54', 'last-modified': '2025-08-11T15:54:54', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.691206'} 2025-08-11 15:54:55,387 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-08-11 15:54:55,387 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-81542094 passed 2025-08-11 15:54:55,387 - DEBUG - ====Verifying policy data for ctest-vn4-81542094 in API_Server ====== 2025-08-11 15:54:55,388 - DEBUG - Requesting: http://10.0.0.130:8082/domains 2025-08-11 15:54:55,392 - DEBUG - Requesting: http://10.0.0.130:8082/domain/e8e87a2a-62f3-4584-abb6-6cf01af9428d 2025-08-11 15:54:55,405 - DEBUG - Requesting: http://10.0.0.130:8082/project/e9d89524-aff3-47d5-b5d2-0c323297ee2f 2025-08-11 15:54:55,475 - DEBUG - Requesting: http://10.0.0.130:8082/virtual-network/89e88f55-f694-4eba-9587-0ea48f2ba790 2025-08-11 15:54:55,486 - DEBUG - ==>Verifying data for policy with id: b4d36c5b-7107-4f0a-a617-5da91329f216, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-72054303', 'ctest-policy1-32982018'] 2025-08-11 15:54:55,486 - INFO - VN ctest-vn4-81542094 Policy verification: verify_vn_policy_in_api_server, status: True 2025-08-11 15:54:55,486 - DEBUG - Verifying the vn in opserver 2025-08-11 15:54:55,486 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-72054303:ctest-vn4-81542094 virtual network link through opserver 10.0.0.130 2025-08-11 15:54:55,486 - DEBUG - Requesting: http://10.0.0.130:8081/analytics/uves/virtual-networks 2025-08-11 15:54:55,773 - DEBUG - Requesting: http://10.0.0.130:8081/analytics/uves/virtual-networks 2025-08-11 15:54:55,821 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-72054303:ctest-vn4-81542094', 'href': 'http://10.0.0.130:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-72054303:ctest-vn4-81542094?flat'} 2025-08-11 15:54:55,821 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-72054303:ctest-vn4-81542094 is found in opserver 2025-08-11 15:54:55,831 - DEBUG - Do not have enough data to verify VN in agent 2025-08-11 15:54:55,836 - DEBUG - VRF ids for VN ctest-vn4-81542094: {} 2025-08-11 15:54:55,836 - DEBUG - ====Verifying data for ctest-policy1-32982018 in API_Server ====== 2025-08-11 15:54:55,836 - DEBUG - Requesting: http://10.0.0.130:8082/domains 2025-08-11 15:54:55,841 - DEBUG - Requesting: http://10.0.0.130:8082/domain/e8e87a2a-62f3-4584-abb6-6cf01af9428d 2025-08-11 15:54:55,851 - DEBUG - Requesting: http://10.0.0.130:8082/project/e9d89524-aff3-47d5-b5d2-0c323297ee2f 2025-08-11 15:54:55,922 - DEBUG - Requesting: http://10.0.0.130:8082/network-policy/b4d36c5b-7107-4f0a-a617-5da91329f216 2025-08-11 15:54:55,932 - INFO - Verified policy ctest-policy1-32982018 in API Server, Result: True 2025-08-11 15:54:55,932 - INFO - Done with setup and verification, moving onto test .. 2025-08-11 15:54:55,939 - INFO - Deleting VN ctest-vn4-81542094 2025-08-11 15:54:56,167 - DEBUG - Response for deleting network () 2025-08-11 15:54:56,167 - DEBUG - Requesting: http://10.0.0.130:8082/routing-instance/159a905f-de53-4ce2-b787-8741ac923ed8 2025-08-11 15:54:56,172 - DEBUG - Response Code: 404 2025-08-11 15:54:56,172 - DEBUG - Requesting: http://10.0.0.130:8082/domains 2025-08-11 15:54:56,176 - DEBUG - Requesting: http://10.0.0.130:8082/domain/e8e87a2a-62f3-4584-abb6-6cf01af9428d 2025-08-11 15:54:56,228 - DEBUG - Requesting: http://10.0.0.130:8082/project/e9d89524-aff3-47d5-b5d2-0c323297ee2f 2025-08-11 15:54:56,295 - INFO - Validated that VN ctest-vn4-81542094 is not found in API Server 2025-08-11 15:54:56,305 - DEBUG - VN ctest-vn4-81542094 is not present in Agent 10.0.0.130 2025-08-11 15:54:56,305 - INFO - Validated that VN ctest-vn4-81542094 is not in any agent 2025-08-11 15:54:56,319 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-81542094 info 2025-08-11 15:54:56,342 - INFO - Deleted policy ctest-policy1-32982018 2025-08-11 15:54:56,503 - DEBUG - policy ctest-policy1-32982018 is not found in API Server 2025-08-11 15:54:56,752 - DEBUG - No XMPP flaps were noticed during the test
2025-08-11 15:54:56,752 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:03]
2025-08-11 15:54:56,753 - INFO - -------------------------------------------------------------------------------- 2025-08-11 15:54:57,043 - DEBUG - No XMPP flaps were noticed during the test
2025-08-11 15:54:57,043 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:05]
2025-08-11 15:54:57,044 - INFO - -------------------------------------------------------------------------------- 2025-08-11 15:54:57,681 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-72054303, ID : e9d89524-aff3-47d5-b5d2-0c323297ee2f