2025-08-25 14:25:37,386 - INFO - Domain Default found not creating 2025-08-25 14:25:37,530 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-54017278 not found, creating it 2025-08-25 14:25:38,014 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-54017278, ID : e978f2c0-99aa-4fc4-b75d-110acfb1853a 2025-08-25 14:25:39,519 - INFO - ================================================================================ 2025-08-25 14:25:39,519 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-08-25 14:25:39,775 - DEBUG - Nothing to compare xmpp stats {'10.0.0.254': {'10.20.0.254': '0'}} with 2025-08-25 14:25:39,775 - INFO - Initial checks done. Running the testcase now 2025-08-25 14:25:39,775 - INFO - 2025-08-25 14:25:39,775 - INFO - ================================================================================ 2025-08-25 14:25:39,775 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-08-25 14:25:39,775 - 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-25 14:25:40,074 - DEBUG - Nothing to compare xmpp stats {'10.0.0.254': {'10.20.0.254': '0'}} with 2025-08-25 14:25:40,074 - INFO - Initial checks done. Running the testcase now 2025-08-25 14:25:40,074 - INFO - 2025-08-25 14:25:40,461 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-54017278:ctest-vn4-00739284, 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-54017278:ctest-vn4-00739284, 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-54017278:ctest-vn4-00739284, 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-54017278:ctest-vn4-00739284, 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-25 14:25:41,004 - DEBUG - Response for create_network : {'network': {'id': '8f4d592c-a126-4135-8d8c-f9d00f0d8bc0', 'name': 'ctest-vn4-00739284', 'tenant_id': 'e978f2c099aa4fc4b75d110acfb1853a', 'project_id': 'e978f2c099aa4fc4b75d110acfb1853a', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-54017278', 'ctest-vn4-00739284'], 'port_security_enabled': True, 'description': ''}} 2025-08-25 14:25:41,240 - DEBUG - Response for create_subnet : {'subnet': {'id': '2dd7d364-d86c-4375-9823-f6567aa6723a', 'name': '', 'tenant_id': 'e978f2c099aa4fc4b75d110acfb1853a', 'network_id': '8f4d592c-a126-4135-8d8c-f9d00f0d8bc0', 'ip_version': 4, 'cidr': '46.29.195.192/26', 'allocation_pools': [{'start': '46.29.195.194', 'end': '46.29.195.254'}], 'gateway_ip': '46.29.195.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '46.29.195.194', 'tags': [], 'project_id': 'e978f2c099aa4fc4b75d110acfb1853a'}} 2025-08-25 14:25:41,444 - DEBUG - Response for create_subnet : {'subnet': {'id': '8bd78887-127e-45a0-a732-7ae534a23619', 'name': '', 'tenant_id': 'e978f2c099aa4fc4b75d110acfb1853a', 'network_id': '8f4d592c-a126-4135-8d8c-f9d00f0d8bc0', 'ip_version': 6, 'cidr': '3cd9:fec5:88b5:9cac:b37f:9c5b::/96', 'allocation_pools': [{'start': '3cd9:fec5:88b5:9cac:b37f:9c5b:0:2', 'end': '3cd9:fec5:88b5:9cac:b37f:9c5b:ffff:fffe'}], 'gateway_ip': '3cd9:fec5:88b5:9cac:b37f:9c5b:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '3cd9:fec5:88b5:9cac:b37f:9c5b:0:2', 'tags': [], 'project_id': 'e978f2c099aa4fc4b75d110acfb1853a'}} 2025-08-25 14:25:41,464 - INFO - Created VN ctest-vn4-00739284 2025-08-25 14:25:41,517 - DEBUG - VN ctest-vn4-00739284 UUID is 8f4d592c-a126-4135-8d8c-f9d00f0d8bc0 2025-08-25 14:25:41,731 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '8f4d592c-a126-4135-8d8c-f9d00f0d8bc0', 'name': 'ctest-vn4-00739284', 'tenant_id': 'e978f2c099aa4fc4b75d110acfb1853a', 'project_id': 'e978f2c099aa4fc4b75d110acfb1853a', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['2dd7d364-d86c-4375-9823-f6567aa6723a', '8bd78887-127e-45a0-a732-7ae534a23619'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-54017278', 'ctest-vn4-00739284'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-54017278', 'ctest-policy1-07886307']], 'subnet_ipam': [{'subnet_cidr': '46.29.195.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '3cd9:fec5:88b5:9cac:b37f:9c5b::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-08-25 14:25:41,897 - DEBUG - Requesting: http://10.0.0.254:8082/domains 2025-08-25 14:25:42,233 - DEBUG - Requesting: http://10.0.0.254:8082/domains 2025-08-25 14:25:42,591 - DEBUG - Requesting: http://10.0.0.254:8082/domain/64eabc82-8de7-4a06-ba8c-49f19c9f314a 2025-08-25 14:25:42,605 - DEBUG - Requesting: http://10.0.0.254:8082/project/e978f2c0-99aa-4fc4-b75d-110acfb1853a 2025-08-25 14:25:42,696 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/8f4d592c-a126-4135-8d8c-f9d00f0d8bc0 2025-08-25 14:25:42,711 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/8f4d592c-a126-4135-8d8c-f9d00f0d8bc0 2025-08-25 14:25:42,724 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/888353f0-fcc3-493f-8af3-be2c3d6c475c 2025-08-25 14:25:42,734 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/888353f0-fcc3-493f-8af3-be2c3d6c475c 2025-08-25 14:25:42,745 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/3b6b03af-0ea6-4361-a76b-c6d85dc4a6ab 2025-08-25 14:25:42,752 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-08-25 14:25:42,752 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/8f4d592c-a126-4135-8d8c-f9d00f0d8bc0 2025-08-25 14:25:42,762 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/888353f0-fcc3-493f-8af3-be2c3d6c475c 2025-08-25 14:25:42,776 - INFO - Verified VN network id 11 for VN 8f4d592c-a126-4135-8d8c-f9d00f0d8bc0 2025-08-25 14:25:42,777 - INFO - Verifications in API Server for VN ctest-vn4-00739284 passed 2025-08-25 14:25:42,777 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/8f4d592c-a126-4135-8d8c-f9d00f0d8bc0 2025-08-25 14:25:42,789 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/888353f0-fcc3-493f-8af3-be2c3d6c475c 2025-08-25 14:25:42,797 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/888353f0-fcc3-493f-8af3-be2c3d6c475c 2025-08-25 14:25:42,804 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/3b6b03af-0ea6-4361-a76b-c6d85dc4a6ab 2025-08-25 14:25:42,818 - DEBUG - Control-node 10.0.0.254 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-54017278:ctest-vn4-00739284', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-54017278', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '10326007568847487285', 'uuid-lslong': '10199801928088390592'}, 'enable': 'true', 'created': '2025-08-25T14:25:40', 'last-modified': '2025-08-25T14:25:41', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.126701'} 2025-08-25 14:25:42,826 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-08-25 14:25:42,826 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-00739284 passed 2025-08-25 14:25:42,827 - DEBUG - ====Verifying policy data for ctest-vn4-00739284 in API_Server ====== 2025-08-25 14:25:42,827 - DEBUG - Requesting: http://10.0.0.254:8082/domains 2025-08-25 14:25:42,834 - DEBUG - Requesting: http://10.0.0.254:8082/domain/64eabc82-8de7-4a06-ba8c-49f19c9f314a 2025-08-25 14:25:42,848 - DEBUG - Requesting: http://10.0.0.254:8082/project/e978f2c0-99aa-4fc4-b75d-110acfb1853a 2025-08-25 14:25:42,927 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/8f4d592c-a126-4135-8d8c-f9d00f0d8bc0 2025-08-25 14:25:42,939 - DEBUG - ==>Verifying data for policy with id: 2db39227-f4bc-45d4-94ad-ccded859e802, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-54017278', 'ctest-policy1-07886307'] 2025-08-25 14:25:42,939 - INFO - VN ctest-vn4-00739284 Policy verification: verify_vn_policy_in_api_server, status: True 2025-08-25 14:25:42,939 - DEBUG - Verifying the vn in opserver 2025-08-25 14:25:42,939 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-54017278:ctest-vn4-00739284 virtual network link through opserver 10.0.0.254 2025-08-25 14:25:42,939 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks 2025-08-25 14:25:43,295 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks 2025-08-25 14:25:43,365 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-54017278:ctest-vn4-00739284', 'href': 'http://10.0.0.254:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-54017278:ctest-vn4-00739284?flat'} 2025-08-25 14:25:43,365 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-54017278:ctest-vn4-00739284 is found in opserver 2025-08-25 14:25:43,376 - DEBUG - Do not have enough data to verify VN in agent 2025-08-25 14:25:43,382 - DEBUG - VRF ids for VN ctest-vn4-00739284: {} 2025-08-25 14:25:43,382 - DEBUG - ====Verifying data for ctest-policy1-07886307 in API_Server ====== 2025-08-25 14:25:43,382 - DEBUG - Requesting: http://10.0.0.254:8082/domains 2025-08-25 14:25:43,388 - DEBUG - Requesting: http://10.0.0.254:8082/domain/64eabc82-8de7-4a06-ba8c-49f19c9f314a 2025-08-25 14:25:43,400 - DEBUG - Requesting: http://10.0.0.254:8082/project/e978f2c0-99aa-4fc4-b75d-110acfb1853a 2025-08-25 14:25:43,474 - DEBUG - Requesting: http://10.0.0.254:8082/network-policy/2db39227-f4bc-45d4-94ad-ccded859e802 2025-08-25 14:25:43,486 - INFO - Verified policy ctest-policy1-07886307 in API Server, Result: True 2025-08-25 14:25:43,486 - INFO - Done with setup and verification, moving onto test .. 2025-08-25 14:25:43,494 - INFO - Deleting VN ctest-vn4-00739284 2025-08-25 14:25:43,647 - DEBUG - Response for deleting network () 2025-08-25 14:25:43,648 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/888353f0-fcc3-493f-8af3-be2c3d6c475c 2025-08-25 14:25:43,654 - DEBUG - Response Code: 404 2025-08-25 14:25:43,655 - DEBUG - Requesting: http://10.0.0.254:8082/domains 2025-08-25 14:25:43,663 - DEBUG - Requesting: http://10.0.0.254:8082/domain/64eabc82-8de7-4a06-ba8c-49f19c9f314a 2025-08-25 14:25:43,719 - DEBUG - Requesting: http://10.0.0.254:8082/project/e978f2c0-99aa-4fc4-b75d-110acfb1853a 2025-08-25 14:25:43,792 - INFO - Validated that VN ctest-vn4-00739284 is not found in API Server 2025-08-25 14:25:43,805 - DEBUG - VN ctest-vn4-00739284 is not present in Agent 10.0.0.254 2025-08-25 14:25:43,805 - INFO - Validated that VN ctest-vn4-00739284 is not in any agent 2025-08-25 14:25:43,821 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-00739284 info 2025-08-25 14:25:43,864 - INFO - Deleted policy ctest-policy1-07886307 2025-08-25 14:25:44,037 - DEBUG - policy ctest-policy1-07886307 is not found in API Server 2025-08-25 14:25:44,302 - DEBUG - No XMPP flaps were noticed during the test