2026-02-08 16:13:55,519 - INFO - Domain Default found not creating 2026-02-08 16:13:55,682 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-78101088 not found, creating it 2026-02-08 16:13:56,121 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-78101088, ID : 4bef5d9c-5bf2-4332-9f6b-f9e4a67e3811 2026-02-08 16:13:57,509 - INFO - ================================================================================ 2026-02-08 16:13:57,509 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-02-08 16:13:57,763 - DEBUG - Nothing to compare xmpp stats {'10.0.0.50': {'10.20.0.17': '0'}} with 2026-02-08 16:13:57,763 - INFO - Initial checks done. Running the testcase now 2026-02-08 16:13:57,763 - INFO - 2026-02-08 16:13:57,763 - INFO - ================================================================================ 2026-02-08 16:13:57,763 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-02-08 16:13:57,763 - 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. 2026-02-08 16:13:58,059 - DEBUG - Nothing to compare xmpp stats {'10.0.0.50': {'10.20.0.17': '0'}} with 2026-02-08 16:13:58,059 - INFO - Initial checks done. Running the testcase now 2026-02-08 16:13:58,059 - INFO - 2026-02-08 16:13:58,406 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-78101088:ctest-vn4-96586476, 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-78101088:ctest-vn4-96586476, 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-78101088:ctest-vn4-96586476, 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-78101088:ctest-vn4-96586476, 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] 2026-02-08 16:13:58,918 - DEBUG - Response for create_network : {'network': {'id': '637fe6e2-c126-4818-b058-a40644cdfd87', 'name': 'ctest-vn4-96586476', 'tenant_id': '4bef5d9c5bf243329f6bf9e4a67e3811', 'project_id': '4bef5d9c5bf243329f6bf9e4a67e3811', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-78101088', 'ctest-vn4-96586476'], 'port_security_enabled': True, 'description': ''}} 2026-02-08 16:13:59,129 - DEBUG - Response for create_subnet : {'subnet': {'id': 'e62a6b24-cd5a-4d9b-b427-dc874d8f6e44', 'name': '', 'tenant_id': '4bef5d9c5bf243329f6bf9e4a67e3811', 'network_id': '637fe6e2-c126-4818-b058-a40644cdfd87', 'ip_version': 4, 'cidr': '222.19.135.128/26', 'allocation_pools': [{'start': '222.19.135.130', 'end': '222.19.135.190'}], 'gateway_ip': '222.19.135.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '222.19.135.130', 'tags': [], 'project_id': '4bef5d9c5bf243329f6bf9e4a67e3811'}} 2026-02-08 16:13:59,276 - DEBUG - Response for create_subnet : {'subnet': {'id': '7b303a8f-ffdb-40f5-929f-8214ceeea19f', 'name': '', 'tenant_id': '4bef5d9c5bf243329f6bf9e4a67e3811', 'network_id': '637fe6e2-c126-4818-b058-a40644cdfd87', 'ip_version': 6, 'cidr': '29b2:e93f:8240:7f7b:124c:eee8::/96', 'allocation_pools': [{'start': '29b2:e93f:8240:7f7b:124c:eee8:0:2', 'end': '29b2:e93f:8240:7f7b:124c:eee8:ffff:fffe'}], 'gateway_ip': '29b2:e93f:8240:7f7b:124c:eee8:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '29b2:e93f:8240:7f7b:124c:eee8:0:2', 'tags': [], 'project_id': '4bef5d9c5bf243329f6bf9e4a67e3811'}} 2026-02-08 16:13:59,295 - INFO - Created VN ctest-vn4-96586476 2026-02-08 16:13:59,350 - DEBUG - VN ctest-vn4-96586476 UUID is 637fe6e2-c126-4818-b058-a40644cdfd87 2026-02-08 16:13:59,539 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '637fe6e2-c126-4818-b058-a40644cdfd87', 'name': 'ctest-vn4-96586476', 'tenant_id': '4bef5d9c5bf243329f6bf9e4a67e3811', 'project_id': '4bef5d9c5bf243329f6bf9e4a67e3811', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['e62a6b24-cd5a-4d9b-b427-dc874d8f6e44', '7b303a8f-ffdb-40f5-929f-8214ceeea19f'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-78101088', 'ctest-vn4-96586476'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-78101088', 'ctest-policy1-29758481']], 'subnet_ipam': [{'subnet_cidr': '222.19.135.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '29b2:e93f:8240:7f7b:124c:eee8::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2026-02-08 16:13:59,706 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2026-02-08 16:13:59,999 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2026-02-08 16:14:00,033 - DEBUG - Requesting: http://10.0.0.50:8082/domain/3f5e9004-03ca-43a1-a41a-70b25589b98f 2026-02-08 16:14:00,045 - DEBUG - Requesting: http://10.0.0.50:8082/project/4bef5d9c-5bf2-4332-9f6b-f9e4a67e3811 2026-02-08 16:14:00,114 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/637fe6e2-c126-4818-b058-a40644cdfd87 2026-02-08 16:14:00,125 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/637fe6e2-c126-4818-b058-a40644cdfd87 2026-02-08 16:14:00,137 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/79d48b7c-d974-41c0-a9e9-3bc44ac14405 2026-02-08 16:14:00,144 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/79d48b7c-d974-41c0-a9e9-3bc44ac14405 2026-02-08 16:14:00,150 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/872e0875-32aa-44bc-98a1-07bbcfe209c4 2026-02-08 16:14:00,155 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-02-08 16:14:00,155 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/637fe6e2-c126-4818-b058-a40644cdfd87 2026-02-08 16:14:00,165 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/79d48b7c-d974-41c0-a9e9-3bc44ac14405 2026-02-08 16:14:00,179 - INFO - Verified VN network id 11 for VN 637fe6e2-c126-4818-b058-a40644cdfd87 2026-02-08 16:14:00,179 - INFO - Verifications in API Server for VN ctest-vn4-96586476 passed 2026-02-08 16:14:00,179 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/637fe6e2-c126-4818-b058-a40644cdfd87 2026-02-08 16:14:00,187 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/79d48b7c-d974-41c0-a9e9-3bc44ac14405 2026-02-08 16:14:00,194 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/79d48b7c-d974-41c0-a9e9-3bc44ac14405 2026-02-08 16:14:00,201 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/872e0875-32aa-44bc-98a1-07bbcfe209c4 2026-02-08 16:14:00,211 - DEBUG - Control-node 10.0.0.50 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-78101088:ctest-vn4-96586476', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-78101088', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '7169702993374627864', 'uuid-lslong': '12707086695456963975'}, 'enable': 'true', 'created': '2026-02-08T16:13:58', 'last-modified': '2026-02-08T16:13:59', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.690942'} 2026-02-08 16:14:00,216 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-02-08 16:14:00,217 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-96586476 passed 2026-02-08 16:14:00,217 - DEBUG - ====Verifying policy data for ctest-vn4-96586476 in API_Server ====== 2026-02-08 16:14:00,217 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2026-02-08 16:14:00,222 - DEBUG - Requesting: http://10.0.0.50:8082/domain/3f5e9004-03ca-43a1-a41a-70b25589b98f 2026-02-08 16:14:00,232 - DEBUG - Requesting: http://10.0.0.50:8082/project/4bef5d9c-5bf2-4332-9f6b-f9e4a67e3811 2026-02-08 16:14:00,298 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/637fe6e2-c126-4818-b058-a40644cdfd87 2026-02-08 16:14:00,307 - DEBUG - ==>Verifying data for policy with id: 944a2fe0-b37c-487b-a612-1365859e0206, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-78101088', 'ctest-policy1-29758481'] 2026-02-08 16:14:00,307 - INFO - VN ctest-vn4-96586476 Policy verification: verify_vn_policy_in_api_server, status: True 2026-02-08 16:14:00,307 - DEBUG - Verifying the vn in opserver 2026-02-08 16:14:00,307 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-78101088:ctest-vn4-96586476 virtual network link through opserver 10.0.0.50 2026-02-08 16:14:00,307 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks 2026-02-08 16:14:00,601 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks 2026-02-08 16:14:00,659 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-78101088:ctest-vn4-96586476', 'href': 'http://10.0.0.50:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-78101088:ctest-vn4-96586476?flat'} 2026-02-08 16:14:00,659 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-78101088:ctest-vn4-96586476 is found in opserver 2026-02-08 16:14:00,669 - DEBUG - Do not have enough data to verify VN in agent 2026-02-08 16:14:00,673 - DEBUG - VRF ids for VN ctest-vn4-96586476: {} 2026-02-08 16:14:00,674 - DEBUG - ====Verifying data for ctest-policy1-29758481 in API_Server ====== 2026-02-08 16:14:00,674 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2026-02-08 16:14:00,679 - DEBUG - Requesting: http://10.0.0.50:8082/domain/3f5e9004-03ca-43a1-a41a-70b25589b98f 2026-02-08 16:14:00,688 - DEBUG - Requesting: http://10.0.0.50:8082/project/4bef5d9c-5bf2-4332-9f6b-f9e4a67e3811 2026-02-08 16:14:00,760 - DEBUG - Requesting: http://10.0.0.50:8082/network-policy/944a2fe0-b37c-487b-a612-1365859e0206 2026-02-08 16:14:00,769 - INFO - Verified policy ctest-policy1-29758481 in API Server, Result: True 2026-02-08 16:14:00,770 - INFO - Done with setup and verification, moving onto test .. 2026-02-08 16:14:00,778 - INFO - Deleting VN ctest-vn4-96586476 2026-02-08 16:14:00,888 - DEBUG - Response for deleting network () 2026-02-08 16:14:00,888 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/79d48b7c-d974-41c0-a9e9-3bc44ac14405 2026-02-08 16:14:00,893 - DEBUG - Response Code: 404 2026-02-08 16:14:00,893 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2026-02-08 16:14:00,899 - DEBUG - Requesting: http://10.0.0.50:8082/domain/3f5e9004-03ca-43a1-a41a-70b25589b98f 2026-02-08 16:14:00,950 - DEBUG - Requesting: http://10.0.0.50:8082/project/4bef5d9c-5bf2-4332-9f6b-f9e4a67e3811 2026-02-08 16:14:01,017 - INFO - Validated that VN ctest-vn4-96586476 is not found in API Server 2026-02-08 16:14:01,027 - DEBUG - VN ctest-vn4-96586476 is not present in Agent 10.0.0.50 2026-02-08 16:14:01,027 - INFO - Validated that VN ctest-vn4-96586476 is not in any agent 2026-02-08 16:14:01,040 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-96586476 info 2026-02-08 16:14:01,065 - INFO - Deleted policy ctest-policy1-29758481 2026-02-08 16:14:01,233 - DEBUG - policy ctest-policy1-29758481 is not found in API Server 2026-02-08 16:14:01,486 - DEBUG - No XMPP flaps were noticed during the test
2026-02-08 16:14:01,486 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04]
2026-02-08 16:14:01,486 - INFO - -------------------------------------------------------------------------------- 2026-02-08 16:14:01,775 - DEBUG - No XMPP flaps were noticed during the test
2026-02-08 16:14:01,775 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04]
2026-02-08 16:14:01,775 - INFO - -------------------------------------------------------------------------------- 2026-02-08 16:14:02,445 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-78101088, ID : 4bef5d9c-5bf2-4332-9f6b-f9e4a67e3811