2025-10-30 22:23:15,794 - INFO - Domain Default found not creating 2025-10-30 22:23:15,917 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-86021260 not found, creating it 2025-10-30 22:23:16,331 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-86021260, ID : 18d019b2-c37a-4581-bca3-0b8d29e1cc61 2025-10-30 22:23:17,661 - INFO - ================================================================================ 2025-10-30 22:23:17,661 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-10-30 22:23:17,917 - DEBUG - Nothing to compare xmpp stats {'10.0.0.242': {'10.20.0.153': '0'}} with 2025-10-30 22:23:17,917 - INFO - Initial checks done. Running the testcase now 2025-10-30 22:23:17,917 - INFO - 2025-10-30 22:23:17,917 - INFO - ================================================================================ 2025-10-30 22:23:17,917 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-10-30 22:23:17,917 - 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-10-30 22:23:18,209 - DEBUG - Nothing to compare xmpp stats {'10.0.0.242': {'10.20.0.153': '0'}} with 2025-10-30 22:23:18,209 - INFO - Initial checks done. Running the testcase now 2025-10-30 22:23:18,209 - INFO - 2025-10-30 22:23:18,545 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-86021260:ctest-vn4-11031846, 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-86021260:ctest-vn4-11031846, 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-86021260:ctest-vn4-11031846, 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-86021260:ctest-vn4-11031846, 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-10-30 22:23:19,031 - DEBUG - Response for create_network : {'network': {'id': '97645cf0-e879-47d4-ad14-f8728fd68304', 'name': 'ctest-vn4-11031846', 'tenant_id': '18d019b2c37a4581bca30b8d29e1cc61', 'project_id': '18d019b2c37a4581bca30b8d29e1cc61', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-86021260', 'ctest-vn4-11031846'], 'port_security_enabled': True, 'description': ''}} 2025-10-30 22:23:19,226 - DEBUG - Response for create_subnet : {'subnet': {'id': '3de9b7e7-d40b-409c-981c-ab4480dd3e72', 'name': '', 'tenant_id': '18d019b2c37a4581bca30b8d29e1cc61', 'network_id': '97645cf0-e879-47d4-ad14-f8728fd68304', 'ip_version': 4, 'cidr': '182.176.147.0/26', 'allocation_pools': [{'start': '182.176.147.2', 'end': '182.176.147.62'}], 'gateway_ip': '182.176.147.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '182.176.147.2', 'tags': [], 'project_id': '18d019b2c37a4581bca30b8d29e1cc61'}} 2025-10-30 22:23:19,373 - DEBUG - Response for create_subnet : {'subnet': {'id': '186ba31e-3a32-444c-b649-2154f6c9f440', 'name': '', 'tenant_id': '18d019b2c37a4581bca30b8d29e1cc61', 'network_id': '97645cf0-e879-47d4-ad14-f8728fd68304', 'ip_version': 6, 'cidr': '3c2d:c71c:faf1:a948:2fa:a693::/96', 'allocation_pools': [{'start': '3c2d:c71c:faf1:a948:2fa:a693:0:2', 'end': '3c2d:c71c:faf1:a948:2fa:a693:ffff:fffe'}], 'gateway_ip': '3c2d:c71c:faf1:a948:2fa:a693:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '3c2d:c71c:faf1:a948:2fa:a693:0:2', 'tags': [], 'project_id': '18d019b2c37a4581bca30b8d29e1cc61'}} 2025-10-30 22:23:19,392 - INFO - Created VN ctest-vn4-11031846 2025-10-30 22:23:19,444 - DEBUG - VN ctest-vn4-11031846 UUID is 97645cf0-e879-47d4-ad14-f8728fd68304 2025-10-30 22:23:19,640 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '97645cf0-e879-47d4-ad14-f8728fd68304', 'name': 'ctest-vn4-11031846', 'tenant_id': '18d019b2c37a4581bca30b8d29e1cc61', 'project_id': '18d019b2c37a4581bca30b8d29e1cc61', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['3de9b7e7-d40b-409c-981c-ab4480dd3e72', '186ba31e-3a32-444c-b649-2154f6c9f440'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-86021260', 'ctest-vn4-11031846'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-86021260', 'ctest-policy1-45542214']], 'subnet_ipam': [{'subnet_cidr': '182.176.147.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '3c2d:c71c:faf1:a948:2fa:a693::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-10-30 22:23:19,793 - DEBUG - Requesting: http://10.0.0.242:8082/domains 2025-10-30 22:23:20,086 - DEBUG - Requesting: http://10.0.0.242:8082/domains 2025-10-30 22:23:20,112 - DEBUG - Requesting: http://10.0.0.242:8082/domain/ce87f7e5-e2d5-4a4b-9d51-34ba94d3a13f 2025-10-30 22:23:20,122 - DEBUG - Requesting: http://10.0.0.242:8082/project/18d019b2-c37a-4581-bca3-0b8d29e1cc61 2025-10-30 22:23:20,250 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/97645cf0-e879-47d4-ad14-f8728fd68304 2025-10-30 22:23:20,260 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/97645cf0-e879-47d4-ad14-f8728fd68304 2025-10-30 22:23:20,268 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/d6c90c42-a357-43bc-9114-75808d747d26 2025-10-30 22:23:20,273 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/d6c90c42-a357-43bc-9114-75808d747d26 2025-10-30 22:23:20,278 - DEBUG - Requesting: http://10.0.0.242:8082/route-target/936f5260-7bd2-4012-99ad-8ce29bdd9af6 2025-10-30 22:23:20,283 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-10-30 22:23:20,283 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/97645cf0-e879-47d4-ad14-f8728fd68304 2025-10-30 22:23:20,291 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/d6c90c42-a357-43bc-9114-75808d747d26 2025-10-30 22:23:20,301 - INFO - Verified VN network id 12 for VN 97645cf0-e879-47d4-ad14-f8728fd68304 2025-10-30 22:23:20,301 - INFO - Verifications in API Server for VN ctest-vn4-11031846 passed 2025-10-30 22:23:20,301 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/97645cf0-e879-47d4-ad14-f8728fd68304 2025-10-30 22:23:20,308 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/d6c90c42-a357-43bc-9114-75808d747d26 2025-10-30 22:23:20,312 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/d6c90c42-a357-43bc-9114-75808d747d26 2025-10-30 22:23:20,317 - DEBUG - Requesting: http://10.0.0.242:8082/route-target/936f5260-7bd2-4012-99ad-8ce29bdd9af6 2025-10-30 22:23:20,326 - DEBUG - Control-node 10.0.0.242 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-86021260:ctest-vn4-11031846', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-86021260', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '10908946387160352724', 'uuid-lslong': '12471866439018906372'}, 'enable': 'true', 'created': '2025-10-30T22:23:19', 'last-modified': '2025-10-30T22:23:19', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.714207'} 2025-10-30 22:23:20,331 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-10-30 22:23:20,331 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-11031846 passed 2025-10-30 22:23:20,331 - DEBUG - ====Verifying policy data for ctest-vn4-11031846 in API_Server ====== 2025-10-30 22:23:20,331 - DEBUG - Requesting: http://10.0.0.242:8082/domains 2025-10-30 22:23:20,335 - DEBUG - Requesting: http://10.0.0.242:8082/domain/ce87f7e5-e2d5-4a4b-9d51-34ba94d3a13f 2025-10-30 22:23:20,344 - DEBUG - Requesting: http://10.0.0.242:8082/project/18d019b2-c37a-4581-bca3-0b8d29e1cc61 2025-10-30 22:23:20,408 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/97645cf0-e879-47d4-ad14-f8728fd68304 2025-10-30 22:23:20,416 - DEBUG - ==>Verifying data for policy with id: a3f352ab-c4ea-42e5-a8f0-ee8674120b44, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-86021260', 'ctest-policy1-45542214'] 2025-10-30 22:23:20,416 - INFO - VN ctest-vn4-11031846 Policy verification: verify_vn_policy_in_api_server, status: True 2025-10-30 22:23:20,416 - DEBUG - Verifying the vn in opserver 2025-10-30 22:23:20,416 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-86021260:ctest-vn4-11031846 virtual network link through opserver 10.0.0.242 2025-10-30 22:23:20,416 - DEBUG - Requesting: http://10.0.0.242:8081/analytics/uves/virtual-networks 2025-10-30 22:23:20,703 - DEBUG - Requesting: http://10.0.0.242:8081/analytics/uves/virtual-networks 2025-10-30 22:23:20,754 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-86021260:ctest-vn4-11031846', 'href': 'http://10.0.0.242:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-86021260:ctest-vn4-11031846?flat'} 2025-10-30 22:23:20,754 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-86021260:ctest-vn4-11031846 is found in opserver 2025-10-30 22:23:20,762 - DEBUG - Do not have enough data to verify VN in agent 2025-10-30 22:23:20,767 - DEBUG - VRF ids for VN ctest-vn4-11031846: {} 2025-10-30 22:23:20,767 - DEBUG - ====Verifying data for ctest-policy1-45542214 in API_Server ====== 2025-10-30 22:23:20,767 - DEBUG - Requesting: http://10.0.0.242:8082/domains 2025-10-30 22:23:20,772 - DEBUG - Requesting: http://10.0.0.242:8082/domain/ce87f7e5-e2d5-4a4b-9d51-34ba94d3a13f 2025-10-30 22:23:20,781 - DEBUG - Requesting: http://10.0.0.242:8082/project/18d019b2-c37a-4581-bca3-0b8d29e1cc61 2025-10-30 22:23:20,850 - DEBUG - Requesting: http://10.0.0.242:8082/network-policy/a3f352ab-c4ea-42e5-a8f0-ee8674120b44 2025-10-30 22:23:20,858 - INFO - Verified policy ctest-policy1-45542214 in API Server, Result: True 2025-10-30 22:23:20,858 - INFO - Done with setup and verification, moving onto test .. 2025-10-30 22:23:20,865 - INFO - Deleting VN ctest-vn4-11031846 2025-10-30 22:23:20,967 - DEBUG - Response for deleting network () 2025-10-30 22:23:20,967 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/d6c90c42-a357-43bc-9114-75808d747d26 2025-10-30 22:23:20,971 - DEBUG - Response Code: 404 2025-10-30 22:23:20,971 - DEBUG - Requesting: http://10.0.0.242:8082/domains 2025-10-30 22:23:20,975 - DEBUG - Requesting: http://10.0.0.242:8082/domain/ce87f7e5-e2d5-4a4b-9d51-34ba94d3a13f 2025-10-30 22:23:21,025 - DEBUG - Requesting: http://10.0.0.242:8082/project/18d019b2-c37a-4581-bca3-0b8d29e1cc61 2025-10-30 22:23:21,095 - INFO - Validated that VN ctest-vn4-11031846 is not found in API Server 2025-10-30 22:23:21,104 - DEBUG - VN ctest-vn4-11031846 is not present in Agent 10.0.0.242 2025-10-30 22:23:21,104 - INFO - Validated that VN ctest-vn4-11031846 is not in any agent 2025-10-30 22:23:21,116 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-11031846 info 2025-10-30 22:23:21,136 - INFO - Deleted policy ctest-policy1-45542214 2025-10-30 22:23:21,300 - DEBUG - policy ctest-policy1-45542214 is not found in API Server 2025-10-30 22:23:21,553 - DEBUG - No XMPP flaps were noticed during the test
2025-10-30 22:23:21,553 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04]
2025-10-30 22:23:21,553 - INFO - -------------------------------------------------------------------------------- 2025-10-30 22:23:21,845 - DEBUG - No XMPP flaps were noticed during the test
2025-10-30 22:23:21,845 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04]
2025-10-30 22:23:21,845 - INFO - -------------------------------------------------------------------------------- 2025-10-30 22:23:22,488 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-86021260, ID : 18d019b2-c37a-4581-bca3-0b8d29e1cc61