2025-10-16 02:17:45,719 - INFO - Domain Default found not creating 2025-10-16 02:17:45,866 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-59691005 not found, creating it 2025-10-16 02:17:46,323 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-59691005, ID : c04baddc-60ad-4a44-9624-446602e1a711 2025-10-16 02:17:47,819 - INFO - ================================================================================ 2025-10-16 02:17:47,819 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-10-16 02:17:48,086 - DEBUG - Nothing to compare xmpp stats {'10.0.0.73': {'10.20.0.253': '0'}} with 2025-10-16 02:17:48,086 - INFO - Initial checks done. Running the testcase now 2025-10-16 02:17:48,086 - INFO - 2025-10-16 02:17:48,086 - INFO - ================================================================================ 2025-10-16 02:17:48,086 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-10-16 02:17:48,086 - 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-10-16 02:17:48,378 - DEBUG - Nothing to compare xmpp stats {'10.0.0.73': {'10.20.0.253': '0'}} with 2025-10-16 02:17:48,378 - INFO - Initial checks done. Running the testcase now 2025-10-16 02:17:48,378 - INFO - 2025-10-16 02:17:48,736 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-59691005:ctest-vn4-71266223, 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-59691005:ctest-vn4-71266223, 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-59691005:ctest-vn4-71266223, 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-59691005:ctest-vn4-71266223, 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-10-16 02:17:49,239 - DEBUG - Response for create_network : {'network': {'id': 'ae2d7232-9da4-47e1-a3d5-4a8df6ffec8c', 'name': 'ctest-vn4-71266223', 'tenant_id': 'c04baddc60ad4a449624446602e1a711', 'project_id': 'c04baddc60ad4a449624446602e1a711', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-59691005', 'ctest-vn4-71266223'], 'port_security_enabled': True, 'description': ''}} 2025-10-16 02:17:49,432 - DEBUG - Response for create_subnet : {'subnet': {'id': 'aad3d79b-c68a-4b30-9004-17b93393084f', 'name': '', 'tenant_id': 'c04baddc60ad4a449624446602e1a711', 'network_id': 'ae2d7232-9da4-47e1-a3d5-4a8df6ffec8c', 'ip_version': 4, 'cidr': '37.189.111.192/26', 'allocation_pools': [{'start': '37.189.111.194', 'end': '37.189.111.254'}], 'gateway_ip': '37.189.111.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '37.189.111.194', 'tags': [], 'project_id': 'c04baddc60ad4a449624446602e1a711'}} 2025-10-16 02:17:49,627 - DEBUG - Response for create_subnet : {'subnet': {'id': 'f5f65240-fc37-46e7-901f-fe4e750bb864', 'name': '', 'tenant_id': 'c04baddc60ad4a449624446602e1a711', 'network_id': 'ae2d7232-9da4-47e1-a3d5-4a8df6ffec8c', 'ip_version': 6, 'cidr': '213d:3be6:836e:cda6:c0a0:786e::/96', 'allocation_pools': [{'start': '213d:3be6:836e:cda6:c0a0:786e:0:2', 'end': '213d:3be6:836e:cda6:c0a0:786e:ffff:fffe'}], 'gateway_ip': '213d:3be6:836e:cda6:c0a0:786e:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '213d:3be6:836e:cda6:c0a0:786e:0:2', 'tags': [], 'project_id': 'c04baddc60ad4a449624446602e1a711'}} 2025-10-16 02:17:49,650 - INFO - Created VN ctest-vn4-71266223 2025-10-16 02:17:49,704 - DEBUG - VN ctest-vn4-71266223 UUID is ae2d7232-9da4-47e1-a3d5-4a8df6ffec8c 2025-10-16 02:17:49,905 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'ae2d7232-9da4-47e1-a3d5-4a8df6ffec8c', 'name': 'ctest-vn4-71266223', 'tenant_id': 'c04baddc60ad4a449624446602e1a711', 'project_id': 'c04baddc60ad4a449624446602e1a711', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['aad3d79b-c68a-4b30-9004-17b93393084f', 'f5f65240-fc37-46e7-901f-fe4e750bb864'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-59691005', 'ctest-vn4-71266223'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-59691005', 'ctest-policy1-06730155']], 'subnet_ipam': [{'subnet_cidr': '37.189.111.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '213d:3be6:836e:cda6:c0a0:786e::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-10-16 02:17:50,096 - DEBUG - Requesting: http://10.0.0.73:8082/domains 2025-10-16 02:17:50,405 - DEBUG - Requesting: http://10.0.0.73:8082/domains 2025-10-16 02:17:50,450 - DEBUG - Requesting: http://10.0.0.73:8082/domain/61b1a5e4-4f17-4839-837e-aba6307473a6 2025-10-16 02:17:50,463 - DEBUG - Requesting: http://10.0.0.73:8082/project/c04baddc-60ad-4a44-9624-446602e1a711 2025-10-16 02:17:50,545 - DEBUG - Requesting: http://10.0.0.73:8082/virtual-network/ae2d7232-9da4-47e1-a3d5-4a8df6ffec8c 2025-10-16 02:17:50,560 - DEBUG - Requesting: http://10.0.0.73:8082/virtual-network/ae2d7232-9da4-47e1-a3d5-4a8df6ffec8c 2025-10-16 02:17:50,575 - DEBUG - Requesting: http://10.0.0.73:8082/routing-instance/fed2d6ca-8f80-4d2c-b792-36c6fb3fe828 2025-10-16 02:17:50,582 - DEBUG - Requesting: http://10.0.0.73:8082/routing-instance/fed2d6ca-8f80-4d2c-b792-36c6fb3fe828 2025-10-16 02:17:50,589 - DEBUG - Requesting: http://10.0.0.73:8082/route-target/68e07cfb-8274-46d9-b428-5fe0d6775137 2025-10-16 02:17:50,595 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-10-16 02:17:50,595 - DEBUG - Requesting: http://10.0.0.73:8082/virtual-network/ae2d7232-9da4-47e1-a3d5-4a8df6ffec8c 2025-10-16 02:17:50,604 - DEBUG - Requesting: http://10.0.0.73:8082/routing-instance/fed2d6ca-8f80-4d2c-b792-36c6fb3fe828 2025-10-16 02:17:50,619 - INFO - Verified VN network id 11 for VN ae2d7232-9da4-47e1-a3d5-4a8df6ffec8c 2025-10-16 02:17:50,619 - INFO - Verifications in API Server for VN ctest-vn4-71266223 passed 2025-10-16 02:17:50,619 - DEBUG - Requesting: http://10.0.0.73:8082/virtual-network/ae2d7232-9da4-47e1-a3d5-4a8df6ffec8c 2025-10-16 02:17:50,629 - DEBUG - Requesting: http://10.0.0.73:8082/routing-instance/fed2d6ca-8f80-4d2c-b792-36c6fb3fe828 2025-10-16 02:17:50,636 - DEBUG - Requesting: http://10.0.0.73:8082/routing-instance/fed2d6ca-8f80-4d2c-b792-36c6fb3fe828 2025-10-16 02:17:50,645 - DEBUG - Requesting: http://10.0.0.73:8082/route-target/68e07cfb-8274-46d9-b428-5fe0d6775137 2025-10-16 02:17:50,656 - DEBUG - Control-node 10.0.0.73 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-59691005:ctest-vn4-71266223', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-59691005', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '12550813298270160865', 'uuid-lslong': '11805423971816434828'}, 'enable': 'true', 'created': '2025-10-16T02:17:49', 'last-modified': '2025-10-16T02:17:49', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.782418'} 2025-10-16 02:17:50,662 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-10-16 02:17:50,662 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-71266223 passed 2025-10-16 02:17:50,662 - DEBUG - ====Verifying policy data for ctest-vn4-71266223 in API_Server ====== 2025-10-16 02:17:50,662 - DEBUG - Requesting: http://10.0.0.73:8082/domains 2025-10-16 02:17:50,667 - DEBUG - Requesting: http://10.0.0.73:8082/domain/61b1a5e4-4f17-4839-837e-aba6307473a6 2025-10-16 02:17:50,678 - DEBUG - Requesting: http://10.0.0.73:8082/project/c04baddc-60ad-4a44-9624-446602e1a711 2025-10-16 02:17:50,745 - DEBUG - Requesting: http://10.0.0.73:8082/virtual-network/ae2d7232-9da4-47e1-a3d5-4a8df6ffec8c 2025-10-16 02:17:50,755 - DEBUG - ==>Verifying data for policy with id: 419f9eba-5ac0-4f03-9455-2c350429e323, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-59691005', 'ctest-policy1-06730155'] 2025-10-16 02:17:50,755 - INFO - VN ctest-vn4-71266223 Policy verification: verify_vn_policy_in_api_server, status: True 2025-10-16 02:17:50,755 - DEBUG - Verifying the vn in opserver 2025-10-16 02:17:50,756 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-59691005:ctest-vn4-71266223 virtual network link through opserver 10.0.0.73 2025-10-16 02:17:50,756 - DEBUG - Requesting: http://10.0.0.73:8081/analytics/uves/virtual-networks 2025-10-16 02:17:51,053 - DEBUG - Requesting: http://10.0.0.73:8081/analytics/uves/virtual-networks 2025-10-16 02:17:51,114 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-59691005:ctest-vn4-71266223', 'href': 'http://10.0.0.73:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-59691005:ctest-vn4-71266223?flat'} 2025-10-16 02:17:51,114 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-59691005:ctest-vn4-71266223 is found in opserver 2025-10-16 02:17:51,124 - DEBUG - Do not have enough data to verify VN in agent 2025-10-16 02:17:51,129 - DEBUG - VRF ids for VN ctest-vn4-71266223: {} 2025-10-16 02:17:51,130 - DEBUG - ====Verifying data for ctest-policy1-06730155 in API_Server ====== 2025-10-16 02:17:51,130 - DEBUG - Requesting: http://10.0.0.73:8082/domains 2025-10-16 02:17:51,136 - DEBUG - Requesting: http://10.0.0.73:8082/domain/61b1a5e4-4f17-4839-837e-aba6307473a6 2025-10-16 02:17:51,147 - DEBUG - Requesting: http://10.0.0.73:8082/project/c04baddc-60ad-4a44-9624-446602e1a711 2025-10-16 02:17:51,222 - DEBUG - Requesting: http://10.0.0.73:8082/network-policy/419f9eba-5ac0-4f03-9455-2c350429e323 2025-10-16 02:17:51,232 - INFO - Verified policy ctest-policy1-06730155 in API Server, Result: True 2025-10-16 02:17:51,232 - INFO - Done with setup and verification, moving onto test .. 2025-10-16 02:17:51,241 - INFO - Deleting VN ctest-vn4-71266223 2025-10-16 02:17:51,360 - DEBUG - Response for deleting network () 2025-10-16 02:17:51,360 - DEBUG - Requesting: http://10.0.0.73:8082/routing-instance/fed2d6ca-8f80-4d2c-b792-36c6fb3fe828 2025-10-16 02:17:51,365 - DEBUG - Response Code: 404 2025-10-16 02:17:51,365 - DEBUG - Requesting: http://10.0.0.73:8082/domains 2025-10-16 02:17:51,370 - DEBUG - Requesting: http://10.0.0.73:8082/domain/61b1a5e4-4f17-4839-837e-aba6307473a6 2025-10-16 02:17:51,425 - DEBUG - Requesting: http://10.0.0.73:8082/project/c04baddc-60ad-4a44-9624-446602e1a711 2025-10-16 02:17:51,499 - INFO - Validated that VN ctest-vn4-71266223 is not found in API Server 2025-10-16 02:17:51,510 - DEBUG - VN ctest-vn4-71266223 is not present in Agent 10.0.0.73 2025-10-16 02:17:51,510 - INFO - Validated that VN ctest-vn4-71266223 is not in any agent 2025-10-16 02:17:51,527 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-71266223 info 2025-10-16 02:17:51,551 - INFO - Deleted policy ctest-policy1-06730155 2025-10-16 02:17:51,716 - DEBUG - policy ctest-policy1-06730155 is not found in API Server 2025-10-16 02:17:51,973 - DEBUG - No XMPP flaps were noticed during the test