2025-11-10 01:58:51,427 - INFO - Domain Default found not creating 2025-11-10 01:58:51,567 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-45555428 not found, creating it 2025-11-10 01:58:52,001 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-45555428, ID : 110e9085-ca7d-4ce8-9bb9-1e3e95f5a194 2025-11-10 01:58:53,447 - INFO - ================================================================================ 2025-11-10 01:58:53,447 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-11-10 01:58:53,699 - DEBUG - Nothing to compare xmpp stats {'10.0.0.41': {'10.20.0.17': '0'}} with 2025-11-10 01:58:53,699 - INFO - Initial checks done. Running the testcase now 2025-11-10 01:58:53,699 - INFO - 2025-11-10 01:58:53,699 - INFO - ================================================================================ 2025-11-10 01:58:53,699 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-11-10 01:58:53,699 - 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-11-10 01:58:53,987 - DEBUG - Nothing to compare xmpp stats {'10.0.0.41': {'10.20.0.17': '0'}} with 2025-11-10 01:58:53,987 - INFO - Initial checks done. Running the testcase now 2025-11-10 01:58:53,987 - INFO - 2025-11-10 01:58:54,331 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-45555428:ctest-vn4-13060451, 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-45555428:ctest-vn4-13060451, 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-45555428:ctest-vn4-13060451, 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-45555428:ctest-vn4-13060451, 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-11-10 01:58:54,835 - DEBUG - Response for create_network : {'network': {'id': 'd8636b65-6078-4849-a408-8f1d4cacd6e6', 'name': 'ctest-vn4-13060451', 'tenant_id': '110e9085ca7d4ce89bb91e3e95f5a194', 'project_id': '110e9085ca7d4ce89bb91e3e95f5a194', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-45555428', 'ctest-vn4-13060451'], 'port_security_enabled': True, 'description': ''}} 2025-11-10 01:58:55,045 - DEBUG - Response for create_subnet : {'subnet': {'id': 'b561637b-6618-4c09-ab81-9f05e0ac604e', 'name': '', 'tenant_id': '110e9085ca7d4ce89bb91e3e95f5a194', 'network_id': 'd8636b65-6078-4849-a408-8f1d4cacd6e6', 'ip_version': 4, 'cidr': '128.159.121.128/26', 'allocation_pools': [{'start': '128.159.121.130', 'end': '128.159.121.190'}], 'gateway_ip': '128.159.121.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '128.159.121.130', 'tags': [], 'project_id': '110e9085ca7d4ce89bb91e3e95f5a194'}} 2025-11-10 01:58:55,239 - DEBUG - Response for create_subnet : {'subnet': {'id': '450a2692-5482-4e1a-b885-846f08f0e5cd', 'name': '', 'tenant_id': '110e9085ca7d4ce89bb91e3e95f5a194', 'network_id': 'd8636b65-6078-4849-a408-8f1d4cacd6e6', 'ip_version': 6, 'cidr': '3df3:a555:6690:42e9:86ee:cc53::/96', 'allocation_pools': [{'start': '3df3:a555:6690:42e9:86ee:cc53:0:2', 'end': '3df3:a555:6690:42e9:86ee:cc53:ffff:fffe'}], 'gateway_ip': '3df3:a555:6690:42e9:86ee:cc53:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '3df3:a555:6690:42e9:86ee:cc53:0:2', 'tags': [], 'project_id': '110e9085ca7d4ce89bb91e3e95f5a194'}} 2025-11-10 01:58:55,258 - INFO - Created VN ctest-vn4-13060451 2025-11-10 01:58:55,311 - DEBUG - VN ctest-vn4-13060451 UUID is d8636b65-6078-4849-a408-8f1d4cacd6e6 2025-11-10 01:58:55,596 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'd8636b65-6078-4849-a408-8f1d4cacd6e6', 'name': 'ctest-vn4-13060451', 'tenant_id': '110e9085ca7d4ce89bb91e3e95f5a194', 'project_id': '110e9085ca7d4ce89bb91e3e95f5a194', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['b561637b-6618-4c09-ab81-9f05e0ac604e', '450a2692-5482-4e1a-b885-846f08f0e5cd'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-45555428', 'ctest-vn4-13060451'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-45555428', 'ctest-policy1-39933916']], 'subnet_ipam': [{'subnet_cidr': '128.159.121.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '3df3:a555:6690:42e9:86ee:cc53::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-11-10 01:58:55,767 - DEBUG - Requesting: http://10.0.0.41:8082/domains 2025-11-10 01:58:56,063 - DEBUG - Requesting: http://10.0.0.41:8082/domains 2025-11-10 01:58:56,090 - DEBUG - Requesting: http://10.0.0.41:8082/domain/870d4706-0fa5-4a50-ac53-19235cac7181 2025-11-10 01:58:56,100 - DEBUG - Requesting: http://10.0.0.41:8082/project/110e9085-ca7d-4ce8-9bb9-1e3e95f5a194 2025-11-10 01:58:56,170 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-network/d8636b65-6078-4849-a408-8f1d4cacd6e6 2025-11-10 01:58:56,182 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-network/d8636b65-6078-4849-a408-8f1d4cacd6e6 2025-11-10 01:58:56,190 - DEBUG - Requesting: http://10.0.0.41:8082/routing-instance/886a9b8c-5d4e-406c-8707-df2e9de0c992 2025-11-10 01:58:56,197 - DEBUG - Requesting: http://10.0.0.41:8082/routing-instance/886a9b8c-5d4e-406c-8707-df2e9de0c992 2025-11-10 01:58:56,206 - DEBUG - Requesting: http://10.0.0.41:8082/route-target/5931e54f-266d-4713-8ef1-fa03ecf51d3c 2025-11-10 01:58:56,212 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-11-10 01:58:56,212 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-network/d8636b65-6078-4849-a408-8f1d4cacd6e6 2025-11-10 01:58:56,220 - DEBUG - Requesting: http://10.0.0.41:8082/routing-instance/886a9b8c-5d4e-406c-8707-df2e9de0c992 2025-11-10 01:58:56,232 - INFO - Verified VN network id 9 for VN d8636b65-6078-4849-a408-8f1d4cacd6e6 2025-11-10 01:58:56,232 - INFO - Verifications in API Server for VN ctest-vn4-13060451 passed 2025-11-10 01:58:56,232 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-network/d8636b65-6078-4849-a408-8f1d4cacd6e6 2025-11-10 01:58:56,239 - DEBUG - Requesting: http://10.0.0.41:8082/routing-instance/886a9b8c-5d4e-406c-8707-df2e9de0c992 2025-11-10 01:58:56,244 - DEBUG - Requesting: http://10.0.0.41:8082/routing-instance/886a9b8c-5d4e-406c-8707-df2e9de0c992 2025-11-10 01:58:56,250 - DEBUG - Requesting: http://10.0.0.41:8082/route-target/5931e54f-266d-4713-8ef1-fa03ecf51d3c 2025-11-10 01:58:56,260 - DEBUG - Control-node 10.0.0.41 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-45555428:ctest-vn4-13060451', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-45555428', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '15592424418041153609', 'uuid-lslong': '11819854578037085926'}, 'enable': 'true', 'created': '2025-11-10T01:58:54', 'last-modified': '2025-11-10T01:58:55', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.695050'} 2025-11-10 01:58:56,265 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-11-10 01:58:56,265 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-13060451 passed 2025-11-10 01:58:56,265 - DEBUG - ====Verifying policy data for ctest-vn4-13060451 in API_Server ====== 2025-11-10 01:58:56,265 - DEBUG - Requesting: http://10.0.0.41:8082/domains 2025-11-10 01:58:56,271 - DEBUG - Requesting: http://10.0.0.41:8082/domain/870d4706-0fa5-4a50-ac53-19235cac7181 2025-11-10 01:58:56,280 - DEBUG - Requesting: http://10.0.0.41:8082/project/110e9085-ca7d-4ce8-9bb9-1e3e95f5a194 2025-11-10 01:58:56,346 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-network/d8636b65-6078-4849-a408-8f1d4cacd6e6 2025-11-10 01:58:56,354 - DEBUG - ==>Verifying data for policy with id: 321d201e-92f5-4978-9ed3-7816da7d3d32, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-45555428', 'ctest-policy1-39933916'] 2025-11-10 01:58:56,354 - INFO - VN ctest-vn4-13060451 Policy verification: verify_vn_policy_in_api_server, status: True 2025-11-10 01:58:56,354 - DEBUG - Verifying the vn in opserver 2025-11-10 01:58:56,354 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-45555428:ctest-vn4-13060451 virtual network link through opserver 10.0.0.41 2025-11-10 01:58:56,354 - DEBUG - Requesting: http://10.0.0.41:8081/analytics/uves/virtual-networks 2025-11-10 01:58:56,644 - DEBUG - Requesting: http://10.0.0.41:8081/analytics/uves/virtual-networks 2025-11-10 01:58:56,701 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-45555428:ctest-vn4-13060451', 'href': 'http://10.0.0.41:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-45555428:ctest-vn4-13060451?flat'} 2025-11-10 01:58:56,701 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-45555428:ctest-vn4-13060451 is found in opserver 2025-11-10 01:58:56,709 - DEBUG - Do not have enough data to verify VN in agent 2025-11-10 01:58:56,713 - DEBUG - VRF ids for VN ctest-vn4-13060451: {} 2025-11-10 01:58:56,714 - DEBUG - ====Verifying data for ctest-policy1-39933916 in API_Server ====== 2025-11-10 01:58:56,714 - DEBUG - Requesting: http://10.0.0.41:8082/domains 2025-11-10 01:58:56,719 - DEBUG - Requesting: http://10.0.0.41:8082/domain/870d4706-0fa5-4a50-ac53-19235cac7181 2025-11-10 01:58:56,729 - DEBUG - Requesting: http://10.0.0.41:8082/project/110e9085-ca7d-4ce8-9bb9-1e3e95f5a194 2025-11-10 01:58:56,799 - DEBUG - Requesting: http://10.0.0.41:8082/network-policy/321d201e-92f5-4978-9ed3-7816da7d3d32 2025-11-10 01:58:56,808 - INFO - Verified policy ctest-policy1-39933916 in API Server, Result: True 2025-11-10 01:58:56,808 - INFO - Done with setup and verification, moving onto test .. 2025-11-10 01:58:56,815 - INFO - Deleting VN ctest-vn4-13060451 2025-11-10 01:58:56,922 - DEBUG - Response for deleting network () 2025-11-10 01:58:56,922 - DEBUG - Requesting: http://10.0.0.41:8082/routing-instance/886a9b8c-5d4e-406c-8707-df2e9de0c992 2025-11-10 01:58:56,926 - DEBUG - Response Code: 404 2025-11-10 01:58:56,927 - DEBUG - Requesting: http://10.0.0.41:8082/domains 2025-11-10 01:58:56,931 - DEBUG - Requesting: http://10.0.0.41:8082/domain/870d4706-0fa5-4a50-ac53-19235cac7181 2025-11-10 01:58:56,987 - DEBUG - Requesting: http://10.0.0.41:8082/project/110e9085-ca7d-4ce8-9bb9-1e3e95f5a194 2025-11-10 01:58:57,055 - INFO - Validated that VN ctest-vn4-13060451 is not found in API Server 2025-11-10 01:58:57,064 - DEBUG - VN ctest-vn4-13060451 is not present in Agent 10.0.0.41 2025-11-10 01:58:57,064 - INFO - Validated that VN ctest-vn4-13060451 is not in any agent 2025-11-10 01:58:57,077 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-13060451 info 2025-11-10 01:58:57,101 - INFO - Deleted policy ctest-policy1-39933916 2025-11-10 01:58:57,266 - DEBUG - policy ctest-policy1-39933916 is not found in API Server 2025-11-10 01:58:57,528 - DEBUG - No XMPP flaps were noticed during the test 2025-11-10 01:58:57,528 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04] 2025-11-10 01:58:57,528 - INFO - -------------------------------------------------------------------------------- 2025-11-10 01:58:57,826 - DEBUG - No XMPP flaps were noticed during the test 2025-11-10 01:58:57,826 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04] 2025-11-10 01:58:57,826 - INFO - -------------------------------------------------------------------------------- 2025-11-10 01:58:58,614 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-45555428, ID : 110e9085-ca7d-4ce8-9bb9-1e3e95f5a194