2025-08-20 09:17:25,011 - INFO - Domain Default found not creating 2025-08-20 09:17:25,142 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-66928270 not found, creating it 2025-08-20 09:17:25,579 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-66928270, ID : b781227b-38e4-4b70-865d-7a23a04fe4a3 2025-08-20 09:17:27,101 - INFO - ================================================================================ 2025-08-20 09:17:27,102 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-08-20 09:17:27,358 - DEBUG - Nothing to compare xmpp stats {'10.0.0.57': {'10.20.0.254': '0'}} with 2025-08-20 09:17:27,358 - INFO - Initial checks done. Running the testcase now 2025-08-20 09:17:27,358 - INFO - 2025-08-20 09:17:27,358 - INFO - ================================================================================ 2025-08-20 09:17:27,358 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-08-20 09:17:27,358 - 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-20 09:17:27,644 - DEBUG - Nothing to compare xmpp stats {'10.0.0.57': {'10.20.0.254': '0'}} with 2025-08-20 09:17:27,644 - INFO - Initial checks done. Running the testcase now 2025-08-20 09:17:27,644 - INFO - 2025-08-20 09:17:28,028 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-66928270:ctest-vn4-80805873, 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-66928270:ctest-vn4-80805873, 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-66928270:ctest-vn4-80805873, 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-66928270:ctest-vn4-80805873, 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-20 09:17:28,540 - DEBUG - Response for create_network : {'network': {'id': '2590ac15-1a13-49e5-8aa0-5c1355673bf7', 'name': 'ctest-vn4-80805873', 'tenant_id': 'b781227b38e44b70865d7a23a04fe4a3', 'project_id': 'b781227b38e44b70865d7a23a04fe4a3', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-66928270', 'ctest-vn4-80805873'], 'port_security_enabled': True, 'description': ''}} 2025-08-20 09:17:28,718 - DEBUG - Response for create_subnet : {'subnet': {'id': '442abca2-b584-4236-b9f9-d512cbc86608', 'name': '', 'tenant_id': 'b781227b38e44b70865d7a23a04fe4a3', 'network_id': '2590ac15-1a13-49e5-8aa0-5c1355673bf7', 'ip_version': 4, 'cidr': '145.13.228.192/26', 'allocation_pools': [{'start': '145.13.228.194', 'end': '145.13.228.254'}], 'gateway_ip': '145.13.228.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '145.13.228.194', 'tags': [], 'project_id': 'b781227b38e44b70865d7a23a04fe4a3'}} 2025-08-20 09:17:28,885 - DEBUG - Response for create_subnet : {'subnet': {'id': '5211acca-9315-4954-a462-7c3abbfd2aea', 'name': '', 'tenant_id': 'b781227b38e44b70865d7a23a04fe4a3', 'network_id': '2590ac15-1a13-49e5-8aa0-5c1355673bf7', 'ip_version': 6, 'cidr': '35c9:d165:1bff:afa7:287b:70c5::/96', 'allocation_pools': [{'start': '35c9:d165:1bff:afa7:287b:70c5:0:2', 'end': '35c9:d165:1bff:afa7:287b:70c5:ffff:fffe'}], 'gateway_ip': '35c9:d165:1bff:afa7:287b:70c5:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '35c9:d165:1bff:afa7:287b:70c5:0:2', 'tags': [], 'project_id': 'b781227b38e44b70865d7a23a04fe4a3'}} 2025-08-20 09:17:28,904 - INFO - Created VN ctest-vn4-80805873 2025-08-20 09:17:28,955 - DEBUG - VN ctest-vn4-80805873 UUID is 2590ac15-1a13-49e5-8aa0-5c1355673bf7 2025-08-20 09:17:29,169 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '2590ac15-1a13-49e5-8aa0-5c1355673bf7', 'name': 'ctest-vn4-80805873', 'tenant_id': 'b781227b38e44b70865d7a23a04fe4a3', 'project_id': 'b781227b38e44b70865d7a23a04fe4a3', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['442abca2-b584-4236-b9f9-d512cbc86608', '5211acca-9315-4954-a462-7c3abbfd2aea'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-66928270', 'ctest-vn4-80805873'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-66928270', 'ctest-policy1-57808278']], 'subnet_ipam': [{'subnet_cidr': '145.13.228.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '35c9:d165:1bff:afa7:287b:70c5::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-08-20 09:17:29,339 - DEBUG - Requesting: http://10.0.0.57:8082/domains 2025-08-20 09:17:29,668 - DEBUG - Requesting: http://10.0.0.57:8082/domains 2025-08-20 09:17:29,696 - DEBUG - Requesting: http://10.0.0.57:8082/domain/f6f36838-ec57-408a-a3fc-ce44c8e524e3 2025-08-20 09:17:29,710 - DEBUG - Requesting: http://10.0.0.57:8082/project/b781227b-38e4-4b70-865d-7a23a04fe4a3 2025-08-20 09:17:29,794 - DEBUG - Requesting: http://10.0.0.57:8082/virtual-network/2590ac15-1a13-49e5-8aa0-5c1355673bf7 2025-08-20 09:17:29,809 - DEBUG - Requesting: http://10.0.0.57:8082/virtual-network/2590ac15-1a13-49e5-8aa0-5c1355673bf7 2025-08-20 09:17:29,821 - DEBUG - Requesting: http://10.0.0.57:8082/routing-instance/1e723f1e-c626-44b7-9fb0-d42f153f986b 2025-08-20 09:17:29,830 - DEBUG - Requesting: http://10.0.0.57:8082/routing-instance/1e723f1e-c626-44b7-9fb0-d42f153f986b 2025-08-20 09:17:29,838 - DEBUG - Requesting: http://10.0.0.57:8082/route-target/a4935539-5996-426c-97a5-cea2a7500aa5 2025-08-20 09:17:29,845 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-08-20 09:17:29,845 - DEBUG - Requesting: http://10.0.0.57:8082/virtual-network/2590ac15-1a13-49e5-8aa0-5c1355673bf7 2025-08-20 09:17:29,855 - DEBUG - Requesting: http://10.0.0.57:8082/routing-instance/1e723f1e-c626-44b7-9fb0-d42f153f986b 2025-08-20 09:17:29,871 - INFO - Verified VN network id 12 for VN 2590ac15-1a13-49e5-8aa0-5c1355673bf7 2025-08-20 09:17:29,871 - INFO - Verifications in API Server for VN ctest-vn4-80805873 passed 2025-08-20 09:17:29,871 - DEBUG - Requesting: http://10.0.0.57:8082/virtual-network/2590ac15-1a13-49e5-8aa0-5c1355673bf7 2025-08-20 09:17:29,882 - DEBUG - Requesting: http://10.0.0.57:8082/routing-instance/1e723f1e-c626-44b7-9fb0-d42f153f986b 2025-08-20 09:17:29,889 - DEBUG - Requesting: http://10.0.0.57:8082/routing-instance/1e723f1e-c626-44b7-9fb0-d42f153f986b 2025-08-20 09:17:29,895 - DEBUG - Requesting: http://10.0.0.57:8082/route-target/a4935539-5996-426c-97a5-cea2a7500aa5 2025-08-20 09:17:29,909 - DEBUG - Control-node 10.0.0.57 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-66928270:ctest-vn4-80805873', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-66928270', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '2706852582681430501', 'uuid-lslong': '9989085211614723063'}, 'enable': 'true', 'created': '2025-08-20T09:17:28', 'last-modified': '2025-08-20T09:17:29', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.778249'} 2025-08-20 09:17:29,915 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-08-20 09:17:29,916 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-80805873 passed 2025-08-20 09:17:29,916 - DEBUG - ====Verifying policy data for ctest-vn4-80805873 in API_Server ====== 2025-08-20 09:17:29,916 - DEBUG - Requesting: http://10.0.0.57:8082/domains 2025-08-20 09:17:29,921 - DEBUG - Requesting: http://10.0.0.57:8082/domain/f6f36838-ec57-408a-a3fc-ce44c8e524e3 2025-08-20 09:17:29,932 - DEBUG - Requesting: http://10.0.0.57:8082/project/b781227b-38e4-4b70-865d-7a23a04fe4a3 2025-08-20 09:17:30,003 - DEBUG - Requesting: http://10.0.0.57:8082/virtual-network/2590ac15-1a13-49e5-8aa0-5c1355673bf7 2025-08-20 09:17:30,016 - DEBUG - ==>Verifying data for policy with id: b15aa3c6-3e67-4916-937b-112c4440f58f, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-66928270', 'ctest-policy1-57808278'] 2025-08-20 09:17:30,016 - INFO - VN ctest-vn4-80805873 Policy verification: verify_vn_policy_in_api_server, status: True 2025-08-20 09:17:30,016 - DEBUG - Verifying the vn in opserver 2025-08-20 09:17:30,016 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-66928270:ctest-vn4-80805873 virtual network link through opserver 10.0.0.57 2025-08-20 09:17:30,016 - DEBUG - Requesting: http://10.0.0.57:8081/analytics/uves/virtual-networks 2025-08-20 09:17:30,349 - DEBUG - Requesting: http://10.0.0.57:8081/analytics/uves/virtual-networks 2025-08-20 09:17:30,401 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-66928270:ctest-vn4-80805873', 'href': 'http://10.0.0.57:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-66928270:ctest-vn4-80805873?flat'} 2025-08-20 09:17:30,401 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-66928270:ctest-vn4-80805873 is found in opserver 2025-08-20 09:17:30,412 - DEBUG - Do not have enough data to verify VN in agent 2025-08-20 09:17:30,418 - DEBUG - VRF ids for VN ctest-vn4-80805873: {} 2025-08-20 09:17:30,418 - DEBUG - ====Verifying data for ctest-policy1-57808278 in API_Server ====== 2025-08-20 09:17:30,418 - DEBUG - Requesting: http://10.0.0.57:8082/domains 2025-08-20 09:17:30,423 - DEBUG - Requesting: http://10.0.0.57:8082/domain/f6f36838-ec57-408a-a3fc-ce44c8e524e3 2025-08-20 09:17:30,435 - DEBUG - Requesting: http://10.0.0.57:8082/project/b781227b-38e4-4b70-865d-7a23a04fe4a3 2025-08-20 09:17:30,506 - DEBUG - Requesting: http://10.0.0.57:8082/network-policy/b15aa3c6-3e67-4916-937b-112c4440f58f 2025-08-20 09:17:30,517 - INFO - Verified policy ctest-policy1-57808278 in API Server, Result: True 2025-08-20 09:17:30,517 - INFO - Done with setup and verification, moving onto test .. 2025-08-20 09:17:30,526 - INFO - Deleting VN ctest-vn4-80805873 2025-08-20 09:17:30,640 - DEBUG - Response for deleting network () 2025-08-20 09:17:30,640 - DEBUG - Requesting: http://10.0.0.57:8082/routing-instance/1e723f1e-c626-44b7-9fb0-d42f153f986b 2025-08-20 09:17:30,645 - DEBUG - Response Code: 404 2025-08-20 09:17:30,646 - DEBUG - Requesting: http://10.0.0.57:8082/domains 2025-08-20 09:17:30,650 - DEBUG - Requesting: http://10.0.0.57:8082/domain/f6f36838-ec57-408a-a3fc-ce44c8e524e3 2025-08-20 09:17:30,704 - DEBUG - Requesting: http://10.0.0.57:8082/project/b781227b-38e4-4b70-865d-7a23a04fe4a3 2025-08-20 09:17:30,780 - INFO - Validated that VN ctest-vn4-80805873 is not found in API Server 2025-08-20 09:17:30,793 - DEBUG - VN ctest-vn4-80805873 is not present in Agent 10.0.0.57 2025-08-20 09:17:30,793 - INFO - Validated that VN ctest-vn4-80805873 is not in any agent 2025-08-20 09:17:30,809 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-80805873 info 2025-08-20 09:17:30,834 - INFO - Deleted policy ctest-policy1-57808278 2025-08-20 09:17:31,003 - DEBUG - policy ctest-policy1-57808278 is not found in API Server 2025-08-20 09:17:31,257 - DEBUG - No XMPP flaps were noticed during the test