2025-08-26 16:22:43,241 - INFO - Domain Default found not creating 2025-08-26 16:22:43,371 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-44388442 not found, creating it 2025-08-26 16:22:43,793 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-44388442, ID : 500b6b9d-6269-4510-8777-e1cb0dea7da4 2025-08-26 16:22:45,274 - INFO - ================================================================================ 2025-08-26 16:22:45,274 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-08-26 16:22:45,528 - DEBUG - Nothing to compare xmpp stats {'10.0.0.254': {'10.20.0.17': '0'}} with 2025-08-26 16:22:45,528 - INFO - Initial checks done. Running the testcase now 2025-08-26 16:22:45,528 - INFO - 2025-08-26 16:22:45,528 - INFO - ================================================================================ 2025-08-26 16:22:45,528 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-08-26 16:22:45,528 - 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-26 16:22:45,814 - DEBUG - Nothing to compare xmpp stats {'10.0.0.254': {'10.20.0.17': '0'}} with 2025-08-26 16:22:45,814 - INFO - Initial checks done. Running the testcase now 2025-08-26 16:22:45,814 - INFO - 2025-08-26 16:22:46,197 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-44388442:ctest-vn4-06935435, 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-44388442:ctest-vn4-06935435, 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-44388442:ctest-vn4-06935435, 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-44388442:ctest-vn4-06935435, 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-26 16:22:46,710 - DEBUG - Response for create_network : {'network': {'id': '5be398e4-feae-40ee-a8f9-89f68766b6fe', 'name': 'ctest-vn4-06935435', 'tenant_id': '500b6b9d626945108777e1cb0dea7da4', 'project_id': '500b6b9d626945108777e1cb0dea7da4', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-44388442', 'ctest-vn4-06935435'], 'port_security_enabled': True, 'description': ''}} 2025-08-26 16:22:46,910 - DEBUG - Response for create_subnet : {'subnet': {'id': '248a6464-a86f-4d43-b179-c6148e318d4a', 'name': '', 'tenant_id': '500b6b9d626945108777e1cb0dea7da4', 'network_id': '5be398e4-feae-40ee-a8f9-89f68766b6fe', 'ip_version': 4, 'cidr': '43.123.118.64/26', 'allocation_pools': [{'start': '43.123.118.66', 'end': '43.123.118.126'}], 'gateway_ip': '43.123.118.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '43.123.118.66', 'tags': [], 'project_id': '500b6b9d626945108777e1cb0dea7da4'}} 2025-08-26 16:22:47,127 - DEBUG - Response for create_subnet : {'subnet': {'id': '4708ee8e-d798-4e82-8f21-1866622227a1', 'name': '', 'tenant_id': '500b6b9d626945108777e1cb0dea7da4', 'network_id': '5be398e4-feae-40ee-a8f9-89f68766b6fe', 'ip_version': 6, 'cidr': '2904:5716:6e10:c1c:302d:27d8::/96', 'allocation_pools': [{'start': '2904:5716:6e10:c1c:302d:27d8:0:2', 'end': '2904:5716:6e10:c1c:302d:27d8:ffff:fffe'}], 'gateway_ip': '2904:5716:6e10:c1c:302d:27d8:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '2904:5716:6e10:c1c:302d:27d8:0:2', 'tags': [], 'project_id': '500b6b9d626945108777e1cb0dea7da4'}} 2025-08-26 16:22:47,144 - INFO - Created VN ctest-vn4-06935435 2025-08-26 16:22:47,194 - DEBUG - VN ctest-vn4-06935435 UUID is 5be398e4-feae-40ee-a8f9-89f68766b6fe 2025-08-26 16:22:47,386 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '5be398e4-feae-40ee-a8f9-89f68766b6fe', 'name': 'ctest-vn4-06935435', 'tenant_id': '500b6b9d626945108777e1cb0dea7da4', 'project_id': '500b6b9d626945108777e1cb0dea7da4', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['248a6464-a86f-4d43-b179-c6148e318d4a', '4708ee8e-d798-4e82-8f21-1866622227a1'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-44388442', 'ctest-vn4-06935435'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-44388442', 'ctest-policy1-15835973']], 'subnet_ipam': [{'subnet_cidr': '43.123.118.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '2904:5716:6e10:c1c:302d:27d8::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-08-26 16:22:47,546 - DEBUG - Requesting: http://10.0.0.254:8082/domains 2025-08-26 16:22:47,877 - DEBUG - Requesting: http://10.0.0.254:8082/domains 2025-08-26 16:22:47,904 - DEBUG - Requesting: http://10.0.0.254:8082/domain/2647b543-b1d6-4f48-af68-2ea8b452b196 2025-08-26 16:22:47,916 - DEBUG - Requesting: http://10.0.0.254:8082/project/500b6b9d-6269-4510-8777-e1cb0dea7da4 2025-08-26 16:22:47,985 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/5be398e4-feae-40ee-a8f9-89f68766b6fe 2025-08-26 16:22:47,996 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/5be398e4-feae-40ee-a8f9-89f68766b6fe 2025-08-26 16:22:48,005 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/373fdc66-457f-47dc-8aa4-8aa60f824f6b 2025-08-26 16:22:48,012 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/373fdc66-457f-47dc-8aa4-8aa60f824f6b 2025-08-26 16:22:48,017 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/bad671c1-959a-4150-9879-46c0ad68d63a 2025-08-26 16:22:48,022 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-08-26 16:22:48,022 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/5be398e4-feae-40ee-a8f9-89f68766b6fe 2025-08-26 16:22:48,031 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/373fdc66-457f-47dc-8aa4-8aa60f824f6b 2025-08-26 16:22:48,042 - INFO - Verified VN network id 11 for VN 5be398e4-feae-40ee-a8f9-89f68766b6fe 2025-08-26 16:22:48,042 - INFO - Verifications in API Server for VN ctest-vn4-06935435 passed 2025-08-26 16:22:48,043 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/5be398e4-feae-40ee-a8f9-89f68766b6fe 2025-08-26 16:22:48,051 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/373fdc66-457f-47dc-8aa4-8aa60f824f6b 2025-08-26 16:22:48,057 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/373fdc66-457f-47dc-8aa4-8aa60f824f6b 2025-08-26 16:22:48,062 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/bad671c1-959a-4150-9879-46c0ad68d63a 2025-08-26 16:22:48,072 - DEBUG - Control-node 10.0.0.254 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-44388442:ctest-vn4-06935435', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-44388442', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '6621303986457559278', 'uuid-lslong': '12175914759499462398'}, 'enable': 'true', 'created': '2025-08-26T16:22:46', 'last-modified': '2025-08-26T16:22:47', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.718670'} 2025-08-26 16:22:48,077 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-08-26 16:22:48,077 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-06935435 passed 2025-08-26 16:22:48,077 - DEBUG - ====Verifying policy data for ctest-vn4-06935435 in API_Server ====== 2025-08-26 16:22:48,077 - DEBUG - Requesting: http://10.0.0.254:8082/domains 2025-08-26 16:22:48,082 - DEBUG - Requesting: http://10.0.0.254:8082/domain/2647b543-b1d6-4f48-af68-2ea8b452b196 2025-08-26 16:22:48,094 - DEBUG - Requesting: http://10.0.0.254:8082/project/500b6b9d-6269-4510-8777-e1cb0dea7da4 2025-08-26 16:22:48,163 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/5be398e4-feae-40ee-a8f9-89f68766b6fe 2025-08-26 16:22:48,176 - DEBUG - ==>Verifying data for policy with id: ecdafd48-a137-48a5-98c3-d303d4260327, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-44388442', 'ctest-policy1-15835973'] 2025-08-26 16:22:48,176 - INFO - VN ctest-vn4-06935435 Policy verification: verify_vn_policy_in_api_server, status: True 2025-08-26 16:22:48,176 - DEBUG - Verifying the vn in opserver 2025-08-26 16:22:48,176 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-44388442:ctest-vn4-06935435 virtual network link through opserver 10.0.0.254 2025-08-26 16:22:48,176 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks 2025-08-26 16:22:48,505 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks 2025-08-26 16:22:48,554 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-44388442:ctest-vn4-06935435', 'href': 'http://10.0.0.254:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-44388442:ctest-vn4-06935435?flat'} 2025-08-26 16:22:48,555 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-44388442:ctest-vn4-06935435 is found in opserver 2025-08-26 16:22:48,564 - DEBUG - Do not have enough data to verify VN in agent 2025-08-26 16:22:48,568 - DEBUG - VRF ids for VN ctest-vn4-06935435: {} 2025-08-26 16:22:48,569 - DEBUG - ====Verifying data for ctest-policy1-15835973 in API_Server ====== 2025-08-26 16:22:48,569 - DEBUG - Requesting: http://10.0.0.254:8082/domains 2025-08-26 16:22:48,573 - DEBUG - Requesting: http://10.0.0.254:8082/domain/2647b543-b1d6-4f48-af68-2ea8b452b196 2025-08-26 16:22:48,583 - DEBUG - Requesting: http://10.0.0.254:8082/project/500b6b9d-6269-4510-8777-e1cb0dea7da4 2025-08-26 16:22:48,653 - DEBUG - Requesting: http://10.0.0.254:8082/network-policy/ecdafd48-a137-48a5-98c3-d303d4260327 2025-08-26 16:22:48,662 - INFO - Verified policy ctest-policy1-15835973 in API Server, Result: True 2025-08-26 16:22:48,662 - INFO - Done with setup and verification, moving onto test .. 2025-08-26 16:22:48,669 - INFO - Deleting VN ctest-vn4-06935435 2025-08-26 16:22:48,773 - DEBUG - Response for deleting network () 2025-08-26 16:22:48,773 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/373fdc66-457f-47dc-8aa4-8aa60f824f6b 2025-08-26 16:22:48,777 - DEBUG - Response Code: 404 2025-08-26 16:22:48,778 - DEBUG - Requesting: http://10.0.0.254:8082/domains 2025-08-26 16:22:48,782 - DEBUG - Requesting: http://10.0.0.254:8082/domain/2647b543-b1d6-4f48-af68-2ea8b452b196 2025-08-26 16:22:48,834 - DEBUG - Requesting: http://10.0.0.254:8082/project/500b6b9d-6269-4510-8777-e1cb0dea7da4 2025-08-26 16:22:48,905 - INFO - Validated that VN ctest-vn4-06935435 is not found in API Server 2025-08-26 16:22:48,915 - DEBUG - VN ctest-vn4-06935435 is not present in Agent 10.0.0.254 2025-08-26 16:22:48,916 - INFO - Validated that VN ctest-vn4-06935435 is not in any agent 2025-08-26 16:22:48,929 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-06935435 info 2025-08-26 16:22:48,952 - INFO - Deleted policy ctest-policy1-15835973 2025-08-26 16:22:49,110 - DEBUG - policy ctest-policy1-15835973 is not found in API Server 2025-08-26 16:22:49,363 - DEBUG - No XMPP flaps were noticed during the test
2025-08-26 16:22:49,363 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04]
2025-08-26 16:22:49,363 - INFO - -------------------------------------------------------------------------------- 2025-08-26 16:22:49,655 - DEBUG - No XMPP flaps were noticed during the test
2025-08-26 16:22:49,655 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04]
2025-08-26 16:22:49,655 - INFO - -------------------------------------------------------------------------------- 2025-08-26 16:22:50,348 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-44388442, ID : 500b6b9d-6269-4510-8777-e1cb0dea7da4