2025-08-26 08:06:42,988 - INFO - Domain Default found not creating 2025-08-26 08:06:43,150 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-06171320 not found, creating it 2025-08-26 08:06:43,689 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-06171320, ID : a714ec16-f43d-4310-9811-330970da9636 2025-08-26 08:06:45,163 - INFO - ================================================================================ 2025-08-26 08:06:45,164 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-08-26 08:06:45,441 - DEBUG - Nothing to compare xmpp stats {'10.0.0.50': {'10.20.0.254': '0'}} with 2025-08-26 08:06:45,441 - INFO - Initial checks done. Running the testcase now 2025-08-26 08:06:45,441 - INFO - 2025-08-26 08:06:45,441 - INFO - ================================================================================ 2025-08-26 08:06:45,441 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-08-26 08:06:45,441 - 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 08:06:45,721 - DEBUG - Nothing to compare xmpp stats {'10.0.0.50': {'10.20.0.254': '0'}} with 2025-08-26 08:06:45,721 - INFO - Initial checks done. Running the testcase now 2025-08-26 08:06:45,722 - INFO - 2025-08-26 08:06:46,076 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-06171320:ctest-vn4-23093020, 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-06171320:ctest-vn4-23093020, 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-06171320:ctest-vn4-23093020, 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-06171320:ctest-vn4-23093020, 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 08:06:46,612 - DEBUG - Response for create_network : {'network': {'id': '2bdbe92d-500c-466c-8f55-ba7652b29d0b', 'name': 'ctest-vn4-23093020', 'tenant_id': 'a714ec16f43d43109811330970da9636', 'project_id': 'a714ec16f43d43109811330970da9636', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-06171320', 'ctest-vn4-23093020'], 'port_security_enabled': True, 'description': ''}} 2025-08-26 08:06:46,818 - DEBUG - Response for create_subnet : {'subnet': {'id': '44e17ef9-e104-4985-a521-fa48fe6fe05a', 'name': '', 'tenant_id': 'a714ec16f43d43109811330970da9636', 'network_id': '2bdbe92d-500c-466c-8f55-ba7652b29d0b', 'ip_version': 4, 'cidr': '219.185.118.64/26', 'allocation_pools': [{'start': '219.185.118.66', 'end': '219.185.118.126'}], 'gateway_ip': '219.185.118.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '219.185.118.66', 'tags': [], 'project_id': 'a714ec16f43d43109811330970da9636'}} 2025-08-26 08:06:47,011 - DEBUG - Response for create_subnet : {'subnet': {'id': '1f56596e-5029-425f-b672-e7cbb850a3c6', 'name': '', 'tenant_id': 'a714ec16f43d43109811330970da9636', 'network_id': '2bdbe92d-500c-466c-8f55-ba7652b29d0b', 'ip_version': 6, 'cidr': '22ef:6fb8:d97d:7dc4:2fb9:524b::/96', 'allocation_pools': [{'start': '22ef:6fb8:d97d:7dc4:2fb9:524b:0:2', 'end': '22ef:6fb8:d97d:7dc4:2fb9:524b:ffff:fffe'}], 'gateway_ip': '22ef:6fb8:d97d:7dc4:2fb9:524b:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '22ef:6fb8:d97d:7dc4:2fb9:524b:0:2', 'tags': [], 'project_id': 'a714ec16f43d43109811330970da9636'}} 2025-08-26 08:06:47,034 - INFO - Created VN ctest-vn4-23093020 2025-08-26 08:06:47,087 - DEBUG - VN ctest-vn4-23093020 UUID is 2bdbe92d-500c-466c-8f55-ba7652b29d0b 2025-08-26 08:06:47,358 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '2bdbe92d-500c-466c-8f55-ba7652b29d0b', 'name': 'ctest-vn4-23093020', 'tenant_id': 'a714ec16f43d43109811330970da9636', 'project_id': 'a714ec16f43d43109811330970da9636', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['44e17ef9-e104-4985-a521-fa48fe6fe05a', '1f56596e-5029-425f-b672-e7cbb850a3c6'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-06171320', 'ctest-vn4-23093020'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-06171320', 'ctest-policy1-29085170']], 'subnet_ipam': [{'subnet_cidr': '219.185.118.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '22ef:6fb8:d97d:7dc4:2fb9:524b::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-08-26 08:06:47,539 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2025-08-26 08:06:47,841 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2025-08-26 08:06:47,871 - DEBUG - Requesting: http://10.0.0.50:8082/domain/342c02d5-2795-4e1c-82bc-cda74abc5ff4 2025-08-26 08:06:47,885 - DEBUG - Requesting: http://10.0.0.50:8082/project/a714ec16-f43d-4310-9811-330970da9636 2025-08-26 08:06:47,966 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/2bdbe92d-500c-466c-8f55-ba7652b29d0b 2025-08-26 08:06:47,981 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/2bdbe92d-500c-466c-8f55-ba7652b29d0b 2025-08-26 08:06:47,992 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/8bd5956a-bd7c-46fa-acb4-e0134e8cfeea 2025-08-26 08:06:48,002 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/8bd5956a-bd7c-46fa-acb4-e0134e8cfeea 2025-08-26 08:06:48,011 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/a64845ef-bab2-432e-a077-3b6fb3e967e3 2025-08-26 08:06:48,020 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-08-26 08:06:48,020 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/2bdbe92d-500c-466c-8f55-ba7652b29d0b 2025-08-26 08:06:48,031 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/8bd5956a-bd7c-46fa-acb4-e0134e8cfeea 2025-08-26 08:06:48,046 - INFO - Verified VN network id 11 for VN 2bdbe92d-500c-466c-8f55-ba7652b29d0b 2025-08-26 08:06:48,046 - INFO - Verifications in API Server for VN ctest-vn4-23093020 passed 2025-08-26 08:06:48,046 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/2bdbe92d-500c-466c-8f55-ba7652b29d0b 2025-08-26 08:06:48,058 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/8bd5956a-bd7c-46fa-acb4-e0134e8cfeea 2025-08-26 08:06:48,066 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/8bd5956a-bd7c-46fa-acb4-e0134e8cfeea 2025-08-26 08:06:48,075 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/a64845ef-bab2-432e-a077-3b6fb3e967e3 2025-08-26 08:06:48,088 - DEBUG - Control-node 10.0.0.50 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-06171320:ctest-vn4-23093020', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-06171320', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '3160375944356316780', 'uuid-lslong': '10328366337800445195'}, 'enable': 'true', 'created': '2025-08-26T08:06:46', 'last-modified': '2025-08-26T08:06:47', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.790060'} 2025-08-26 08:06:48,095 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-08-26 08:06:48,095 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-23093020 passed 2025-08-26 08:06:48,095 - DEBUG - ====Verifying policy data for ctest-vn4-23093020 in API_Server ====== 2025-08-26 08:06:48,095 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2025-08-26 08:06:48,101 - DEBUG - Requesting: http://10.0.0.50:8082/domain/342c02d5-2795-4e1c-82bc-cda74abc5ff4 2025-08-26 08:06:48,114 - DEBUG - Requesting: http://10.0.0.50:8082/project/a714ec16-f43d-4310-9811-330970da9636 2025-08-26 08:06:48,199 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/2bdbe92d-500c-466c-8f55-ba7652b29d0b 2025-08-26 08:06:48,210 - DEBUG - ==>Verifying data for policy with id: e8095bdd-8bbc-44bd-b20f-13f3425c014b, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-06171320', 'ctest-policy1-29085170'] 2025-08-26 08:06:48,210 - INFO - VN ctest-vn4-23093020 Policy verification: verify_vn_policy_in_api_server, status: True 2025-08-26 08:06:48,210 - DEBUG - Verifying the vn in opserver 2025-08-26 08:06:48,210 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-06171320:ctest-vn4-23093020 virtual network link through opserver 10.0.0.50 2025-08-26 08:06:48,210 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks 2025-08-26 08:06:48,506 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks 2025-08-26 08:06:48,572 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-06171320:ctest-vn4-23093020', 'href': 'http://10.0.0.50:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-06171320:ctest-vn4-23093020?flat'} 2025-08-26 08:06:48,572 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-06171320:ctest-vn4-23093020 is found in opserver 2025-08-26 08:06:48,587 - DEBUG - Do not have enough data to verify VN in agent 2025-08-26 08:06:48,593 - DEBUG - VRF ids for VN ctest-vn4-23093020: {} 2025-08-26 08:06:48,593 - DEBUG - ====Verifying data for ctest-policy1-29085170 in API_Server ====== 2025-08-26 08:06:48,593 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2025-08-26 08:06:48,599 - DEBUG - Requesting: http://10.0.0.50:8082/domain/342c02d5-2795-4e1c-82bc-cda74abc5ff4 2025-08-26 08:06:48,611 - DEBUG - Requesting: http://10.0.0.50:8082/project/a714ec16-f43d-4310-9811-330970da9636 2025-08-26 08:06:48,691 - DEBUG - Requesting: http://10.0.0.50:8082/network-policy/e8095bdd-8bbc-44bd-b20f-13f3425c014b 2025-08-26 08:06:48,705 - INFO - Verified policy ctest-policy1-29085170 in API Server, Result: True 2025-08-26 08:06:48,705 - INFO - Done with setup and verification, moving onto test .. 2025-08-26 08:06:48,718 - INFO - Deleting VN ctest-vn4-23093020 2025-08-26 08:06:48,851 - DEBUG - Response for deleting network () 2025-08-26 08:06:48,852 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/8bd5956a-bd7c-46fa-acb4-e0134e8cfeea 2025-08-26 08:06:48,858 - DEBUG - Response Code: 404 2025-08-26 08:06:48,858 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2025-08-26 08:06:48,866 - DEBUG - Requesting: http://10.0.0.50:8082/domain/342c02d5-2795-4e1c-82bc-cda74abc5ff4 2025-08-26 08:06:48,924 - DEBUG - Requesting: http://10.0.0.50:8082/project/a714ec16-f43d-4310-9811-330970da9636 2025-08-26 08:06:49,004 - INFO - Validated that VN ctest-vn4-23093020 is not found in API Server 2025-08-26 08:06:49,019 - DEBUG - VN ctest-vn4-23093020 is not present in Agent 10.0.0.50 2025-08-26 08:06:49,019 - INFO - Validated that VN ctest-vn4-23093020 is not in any agent 2025-08-26 08:06:49,041 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-23093020 info 2025-08-26 08:06:49,073 - INFO - Deleted policy ctest-policy1-29085170 2025-08-26 08:06:49,246 - DEBUG - policy ctest-policy1-29085170 is not found in API Server 2025-08-26 08:06:49,509 - DEBUG - No XMPP flaps were noticed during the test