2026-10-12 02:14:07,078 - INFO - Domain Default found not creating 2026-10-12 02:14:07,222 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-21037415 not found, creating it 2026-10-12 02:14:07,682 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-21037415, ID : fa18b208-9097-4f6f-a008-652a9c7d36c6 2026-10-12 02:14:09,228 - INFO - ================================================================================ 2026-10-12 02:14:09,228 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-10-12 02:14:09,487 - DEBUG - Nothing to compare xmpp stats {'10.0.0.190': {'10.20.0.17': '0'}} with 2026-10-12 02:14:09,487 - INFO - Initial checks done. Running the testcase now 2026-10-12 02:14:09,487 - INFO - 2026-10-12 02:14:09,487 - INFO - ================================================================================ 2026-10-12 02:14:09,487 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-10-12 02:14:09,487 - 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-10-12 02:14:09,779 - DEBUG - Nothing to compare xmpp stats {'10.0.0.190': {'10.20.0.17': '0'}} with 2026-10-12 02:14:09,780 - INFO - Initial checks done. Running the testcase now 2026-10-12 02:14:09,780 - INFO - 2026-10-12 02:14:10,191 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-21037415:ctest-vn4-53796363, 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-21037415:ctest-vn4-53796363, 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-21037415:ctest-vn4-53796363, 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-21037415:ctest-vn4-53796363, 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-10-12 02:14:10,686 - DEBUG - Response for create_network : {'network': {'id': '4b963f6c-6da9-4c7e-8f63-bf32366e6ce0', 'name': 'ctest-vn4-53796363', 'tenant_id': 'fa18b20890974f6fa008652a9c7d36c6', 'project_id': 'fa18b20890974f6fa008652a9c7d36c6', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'tags': [], 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-21037415', 'ctest-vn4-53796363'], 'port_security_enabled': True, 'description': '', 'created_at': None, 'updated_at': None}} 2026-10-12 02:14:10,901 - DEBUG - Response for create_subnet : {'subnet': {'id': 'd5f9cb2a-7129-483e-94a5-cc7095ba7561', 'name': '', 'tenant_id': 'fa18b20890974f6fa008652a9c7d36c6', 'network_id': '4b963f6c-6da9-4c7e-8f63-bf32366e6ce0', 'ip_version': 4, 'cidr': '162.57.83.128/26', 'allocation_pools': [{'start': '162.57.83.130', 'end': '162.57.83.190'}], 'gateway_ip': '162.57.83.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'created_at': '2026-10-12T02:14:10.853268', 'updated_at': '2026-10-12T02:14:10.853268', 'dns_server_address': '162.57.83.130', 'tags': [], 'project_id': 'fa18b20890974f6fa008652a9c7d36c6'}} 2026-10-12 02:14:11,058 - DEBUG - Response for create_subnet : {'subnet': {'id': '602c7350-d503-42d5-87a2-129170f19239', 'name': '', 'tenant_id': 'fa18b20890974f6fa008652a9c7d36c6', 'network_id': '4b963f6c-6da9-4c7e-8f63-bf32366e6ce0', 'ip_version': 6, 'cidr': '2d8e:eb6e:8ebd:b9e:5100:aca8::/96', 'allocation_pools': [{'start': '2d8e:eb6e:8ebd:b9e:5100:aca8:0:2', 'end': '2d8e:eb6e:8ebd:b9e:5100:aca8:ffff:fffe'}], 'gateway_ip': '2d8e:eb6e:8ebd:b9e:5100:aca8:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'created_at': '2026-10-12T02:14:10.990621', 'updated_at': '2026-10-12T02:14:10.990621', 'dns_server_address': '2d8e:eb6e:8ebd:b9e:5100:aca8:0:2', 'tags': [], 'project_id': 'fa18b20890974f6fa008652a9c7d36c6'}} 2026-10-12 02:14:11,074 - INFO - Created VN ctest-vn4-53796363 2026-10-12 02:14:11,126 - DEBUG - VN ctest-vn4-53796363 UUID is 4b963f6c-6da9-4c7e-8f63-bf32366e6ce0 2026-10-12 02:14:11,325 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '4b963f6c-6da9-4c7e-8f63-bf32366e6ce0', 'name': 'ctest-vn4-53796363', 'tenant_id': 'fa18b20890974f6fa008652a9c7d36c6', 'project_id': 'fa18b20890974f6fa008652a9c7d36c6', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'tags': [], 'subnets': ['d5f9cb2a-7129-483e-94a5-cc7095ba7561', '602c7350-d503-42d5-87a2-129170f19239'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-21037415', 'ctest-vn4-53796363'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-21037415', 'ctest-policy1-21517799']], 'subnet_ipam': [{'subnet_cidr': '162.57.83.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '2d8e:eb6e:8ebd:b9e:5100:aca8::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': '', 'created_at': '2026-10-12T02:14:10.648797', 'updated_at': '2026-10-12T02:14:11.004895'}} 2026-10-12 02:14:11,510 - DEBUG - Requesting: http://10.0.0.190:8082/domains 2026-10-12 02:14:11,871 - DEBUG - Requesting: http://10.0.0.190:8082/domains 2026-10-12 02:14:11,894 - DEBUG - Requesting: http://10.0.0.190:8082/domain/b421ea98-0a4f-4ac6-a991-92b4785db2d3 2026-10-12 02:14:11,905 - DEBUG - Requesting: http://10.0.0.190:8082/project/fa18b208-9097-4f6f-a008-652a9c7d36c6 2026-10-12 02:14:11,984 - DEBUG - Requesting: http://10.0.0.190:8082/virtual-network/4b963f6c-6da9-4c7e-8f63-bf32366e6ce0 2026-10-12 02:14:11,994 - DEBUG - Requesting: http://10.0.0.190:8082/virtual-network/4b963f6c-6da9-4c7e-8f63-bf32366e6ce0 2026-10-12 02:14:12,002 - DEBUG - Requesting: http://10.0.0.190:8082/routing-instance/a992e4f2-7d8e-4df5-b1e2-e17caef6f8e9 2026-10-12 02:14:12,007 - DEBUG - Requesting: http://10.0.0.190:8082/routing-instance/a992e4f2-7d8e-4df5-b1e2-e17caef6f8e9 2026-10-12 02:14:12,013 - DEBUG - Requesting: http://10.0.0.190:8082/route-target/c039e6a1-82a7-4060-9eff-f4464c11be91 2026-10-12 02:14:12,018 - DEBUG - Route Targets: ['target:64512:8000005'] 2026-10-12 02:14:12,018 - DEBUG - Requesting: http://10.0.0.190:8082/virtual-network/4b963f6c-6da9-4c7e-8f63-bf32366e6ce0 2026-10-12 02:14:12,027 - DEBUG - Requesting: http://10.0.0.190:8082/routing-instance/a992e4f2-7d8e-4df5-b1e2-e17caef6f8e9 2026-10-12 02:14:12,038 - INFO - Verified VN network id 12 for VN 4b963f6c-6da9-4c7e-8f63-bf32366e6ce0 2026-10-12 02:14:12,038 - INFO - Verifications in API Server for VN ctest-vn4-53796363 passed 2026-10-12 02:14:12,038 - DEBUG - Requesting: http://10.0.0.190:8082/virtual-network/4b963f6c-6da9-4c7e-8f63-bf32366e6ce0 2026-10-12 02:14:12,046 - DEBUG - Requesting: http://10.0.0.190:8082/routing-instance/a992e4f2-7d8e-4df5-b1e2-e17caef6f8e9 2026-10-12 02:14:12,051 - DEBUG - Requesting: http://10.0.0.190:8082/routing-instance/a992e4f2-7d8e-4df5-b1e2-e17caef6f8e9 2026-10-12 02:14:12,057 - DEBUG - Requesting: http://10.0.0.190:8082/route-target/c039e6a1-82a7-4060-9eff-f4464c11be91 2026-10-12 02:14:12,066 - DEBUG - Control-node 10.0.0.190 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-21037415:ctest-vn4-53796363', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-21037415', 'owner-access': '7', 'group': 'manager', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '5446610534280023166', 'uuid-lslong': '10332312192500526304'}, 'enable': 'true', 'created': '2026-10-12T02:14:10', 'last-modified': '2026-10-12T02:14:11', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.771272'} 2026-10-12 02:14:12,071 - DEBUG - Route Targets: ['target:64512:8000005'] 2026-10-12 02:14:12,071 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-53796363 passed 2026-10-12 02:14:12,071 - DEBUG - ====Verifying policy data for ctest-vn4-53796363 in API_Server ====== 2026-10-12 02:14:12,071 - DEBUG - Requesting: http://10.0.0.190:8082/domains 2026-10-12 02:14:12,076 - DEBUG - Requesting: http://10.0.0.190:8082/domain/b421ea98-0a4f-4ac6-a991-92b4785db2d3 2026-10-12 02:14:12,085 - DEBUG - Requesting: http://10.0.0.190:8082/project/fa18b208-9097-4f6f-a008-652a9c7d36c6 2026-10-12 02:14:12,160 - DEBUG - Requesting: http://10.0.0.190:8082/virtual-network/4b963f6c-6da9-4c7e-8f63-bf32366e6ce0 2026-10-12 02:14:12,169 - DEBUG - ==>Verifying data for policy with id: 6f3b4234-8118-4e23-88d8-47e5104b9401, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-21037415', 'ctest-policy1-21517799'] 2026-10-12 02:14:12,169 - INFO - VN ctest-vn4-53796363 Policy verification: verify_vn_policy_in_api_server, status: True 2026-10-12 02:14:12,169 - DEBUG - Verifying the vn in opserver 2026-10-12 02:14:12,169 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-21037415:ctest-vn4-53796363 virtual network link through opserver 10.0.0.190 2026-10-12 02:14:12,170 - DEBUG - Requesting: http://10.0.0.190:8081/analytics/uves/virtual-networks 2026-10-12 02:14:12,528 - DEBUG - Requesting: http://10.0.0.190:8081/analytics/uves/virtual-networks 2026-10-12 02:14:12,575 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-21037415:ctest-vn4-53796363', 'href': 'http://10.0.0.190:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-21037415:ctest-vn4-53796363?flat'} 2026-10-12 02:14:12,575 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-21037415:ctest-vn4-53796363 is found in opserver 2026-10-12 02:14:12,585 - DEBUG - Do not have enough data to verify VN in agent 2026-10-12 02:14:12,589 - DEBUG - VRF ids for VN ctest-vn4-53796363: {} 2026-10-12 02:14:12,590 - DEBUG - ====Verifying data for ctest-policy1-21517799 in API_Server ====== 2026-10-12 02:14:12,590 - DEBUG - Requesting: http://10.0.0.190:8082/domains 2026-10-12 02:14:12,595 - DEBUG - Requesting: http://10.0.0.190:8082/domain/b421ea98-0a4f-4ac6-a991-92b4785db2d3 2026-10-12 02:14:12,604 - DEBUG - Requesting: http://10.0.0.190:8082/project/fa18b208-9097-4f6f-a008-652a9c7d36c6 2026-10-12 02:14:12,674 - DEBUG - Requesting: http://10.0.0.190:8082/network-policy/6f3b4234-8118-4e23-88d8-47e5104b9401 2026-10-12 02:14:12,686 - INFO - Verified policy ctest-policy1-21517799 in API Server, Result: True 2026-10-12 02:14:12,686 - INFO - Done with setup and verification, moving onto test .. 2026-10-12 02:14:12,694 - INFO - Deleting VN ctest-vn4-53796363 2026-10-12 02:14:12,791 - DEBUG - Response for deleting network () 2026-10-12 02:14:12,791 - DEBUG - Requesting: http://10.0.0.190:8082/routing-instance/a992e4f2-7d8e-4df5-b1e2-e17caef6f8e9 2026-10-12 02:14:12,795 - DEBUG - Response Code: 404 2026-10-12 02:14:12,795 - DEBUG - Requesting: http://10.0.0.190:8082/domains 2026-10-12 02:14:12,800 - DEBUG - Requesting: http://10.0.0.190:8082/domain/b421ea98-0a4f-4ac6-a991-92b4785db2d3 2026-10-12 02:14:12,851 - DEBUG - Requesting: http://10.0.0.190:8082/project/fa18b208-9097-4f6f-a008-652a9c7d36c6 2026-10-12 02:14:12,929 - INFO - Validated that VN ctest-vn4-53796363 is not found in API Server 2026-10-12 02:14:12,937 - DEBUG - VN ctest-vn4-53796363 is not present in Agent 10.0.0.190 2026-10-12 02:14:12,937 - INFO - Validated that VN ctest-vn4-53796363 is not in any agent 2026-10-12 02:14:12,950 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-53796363 info 2026-10-12 02:14:12,972 - INFO - Deleted policy ctest-policy1-21517799 2026-10-12 02:14:13,134 - DEBUG - policy ctest-policy1-21517799 is not found in API Server 2026-10-12 02:14:13,387 - DEBUG - No XMPP flaps were noticed during the test
2026-10-12 02:14:13,387 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04]
2026-10-12 02:14:13,387 - INFO - -------------------------------------------------------------------------------- 2026-10-12 02:14:13,678 - DEBUG - No XMPP flaps were noticed during the test
2026-10-12 02:14:13,678 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04]
2026-10-12 02:14:13,678 - INFO - -------------------------------------------------------------------------------- 2026-10-12 02:14:14,399 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-21037415, ID : fa18b208-9097-4f6f-a008-652a9c7d36c6