2025-10-23 10:46:52,084 - INFO - Domain Default found not creating 2025-10-23 10:46:52,242 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-65737882 not found, creating it 2025-10-23 10:46:52,708 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-65737882, ID : 83d6e04c-0413-49ec-90cf-c7049d6885c0 2025-10-23 10:46:54,338 - INFO - ================================================================================ 2025-10-23 10:46:54,339 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-10-23 10:46:54,598 - DEBUG - Nothing to compare xmpp stats {'10.0.0.19': {'10.20.0.14': '0'}} with 2025-10-23 10:46:54,598 - INFO - Initial checks done. Running the testcase now 2025-10-23 10:46:54,598 - INFO - 2025-10-23 10:46:54,598 - INFO - ================================================================================ 2025-10-23 10:46:54,598 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-10-23 10:46:54,598 - 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-23 10:46:54,890 - DEBUG - Nothing to compare xmpp stats {'10.0.0.19': {'10.20.0.14': '0'}} with 2025-10-23 10:46:54,890 - INFO - Initial checks done. Running the testcase now 2025-10-23 10:46:54,890 - INFO - 2025-10-23 10:46:55,239 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-65737882:ctest-vn4-79725486, 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-65737882:ctest-vn4-79725486, 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-65737882:ctest-vn4-79725486, 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-65737882:ctest-vn4-79725486, 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-23 10:46:55,772 - DEBUG - Response for create_network : {'network': {'id': '32061396-0dab-4e5b-9b87-ae307f9e90d1', 'name': 'ctest-vn4-79725486', 'tenant_id': '83d6e04c041349ec90cfc7049d6885c0', 'project_id': '83d6e04c041349ec90cfc7049d6885c0', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-65737882', 'ctest-vn4-79725486'], 'port_security_enabled': True, 'description': ''}} 2025-10-23 10:46:55,946 - DEBUG - Response for create_subnet : {'subnet': {'id': 'c32647a9-df9d-403a-932f-9bd77063fca4', 'name': '', 'tenant_id': '83d6e04c041349ec90cfc7049d6885c0', 'network_id': '32061396-0dab-4e5b-9b87-ae307f9e90d1', 'ip_version': 4, 'cidr': '198.4.41.0/26', 'allocation_pools': [{'start': '198.4.41.2', 'end': '198.4.41.62'}], 'gateway_ip': '198.4.41.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '198.4.41.2', 'tags': [], 'project_id': '83d6e04c041349ec90cfc7049d6885c0'}} 2025-10-23 10:46:56,131 - DEBUG - Response for create_subnet : {'subnet': {'id': '0c7e510b-462c-441c-930b-9508d9e518df', 'name': '', 'tenant_id': '83d6e04c041349ec90cfc7049d6885c0', 'network_id': '32061396-0dab-4e5b-9b87-ae307f9e90d1', 'ip_version': 6, 'cidr': '32bb:298a:3678:8798:ed35:6ac7::/96', 'allocation_pools': [{'start': '32bb:298a:3678:8798:ed35:6ac7:0:2', 'end': '32bb:298a:3678:8798:ed35:6ac7:ffff:fffe'}], 'gateway_ip': '32bb:298a:3678:8798:ed35:6ac7:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '32bb:298a:3678:8798:ed35:6ac7:0:2', 'tags': [], 'project_id': '83d6e04c041349ec90cfc7049d6885c0'}} 2025-10-23 10:46:56,153 - INFO - Created VN ctest-vn4-79725486 2025-10-23 10:46:56,209 - DEBUG - VN ctest-vn4-79725486 UUID is 32061396-0dab-4e5b-9b87-ae307f9e90d1 2025-10-23 10:46:56,478 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '32061396-0dab-4e5b-9b87-ae307f9e90d1', 'name': 'ctest-vn4-79725486', 'tenant_id': '83d6e04c041349ec90cfc7049d6885c0', 'project_id': '83d6e04c041349ec90cfc7049d6885c0', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['c32647a9-df9d-403a-932f-9bd77063fca4', '0c7e510b-462c-441c-930b-9508d9e518df'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-65737882', 'ctest-vn4-79725486'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-65737882', 'ctest-policy1-31352360']], 'subnet_ipam': [{'subnet_cidr': '198.4.41.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '32bb:298a:3678:8798:ed35:6ac7::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-10-23 10:46:56,637 - DEBUG - Requesting: http://10.0.0.19:8082/domains 2025-10-23 10:46:56,939 - DEBUG - Requesting: http://10.0.0.19:8082/domains 2025-10-23 10:46:56,968 - DEBUG - Requesting: http://10.0.0.19:8082/domain/fbba2215-407a-481f-8c8e-2d76b867e8d0 2025-10-23 10:46:56,980 - DEBUG - Requesting: http://10.0.0.19:8082/project/83d6e04c-0413-49ec-90cf-c7049d6885c0 2025-10-23 10:46:57,052 - DEBUG - Requesting: http://10.0.0.19:8082/virtual-network/32061396-0dab-4e5b-9b87-ae307f9e90d1 2025-10-23 10:46:57,064 - DEBUG - Requesting: http://10.0.0.19:8082/virtual-network/32061396-0dab-4e5b-9b87-ae307f9e90d1 2025-10-23 10:46:57,074 - DEBUG - Requesting: http://10.0.0.19:8082/routing-instance/031ce6e4-1ff0-4d67-883f-8de3a55165e7 2025-10-23 10:46:57,081 - DEBUG - Requesting: http://10.0.0.19:8082/routing-instance/031ce6e4-1ff0-4d67-883f-8de3a55165e7 2025-10-23 10:46:57,087 - DEBUG - Requesting: http://10.0.0.19:8082/route-target/25e01009-db33-4dec-9a6c-75f2d7bf17e5 2025-10-23 10:46:57,094 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-10-23 10:46:57,094 - DEBUG - Requesting: http://10.0.0.19:8082/virtual-network/32061396-0dab-4e5b-9b87-ae307f9e90d1 2025-10-23 10:46:57,102 - DEBUG - Requesting: http://10.0.0.19:8082/routing-instance/031ce6e4-1ff0-4d67-883f-8de3a55165e7 2025-10-23 10:46:57,118 - INFO - Verified VN network id 11 for VN 32061396-0dab-4e5b-9b87-ae307f9e90d1 2025-10-23 10:46:57,118 - INFO - Verifications in API Server for VN ctest-vn4-79725486 passed 2025-10-23 10:46:57,118 - DEBUG - Requesting: http://10.0.0.19:8082/virtual-network/32061396-0dab-4e5b-9b87-ae307f9e90d1 2025-10-23 10:46:57,130 - DEBUG - Requesting: http://10.0.0.19:8082/routing-instance/031ce6e4-1ff0-4d67-883f-8de3a55165e7 2025-10-23 10:46:57,137 - DEBUG - Requesting: http://10.0.0.19:8082/routing-instance/031ce6e4-1ff0-4d67-883f-8de3a55165e7 2025-10-23 10:46:57,145 - DEBUG - Requesting: http://10.0.0.19:8082/route-target/25e01009-db33-4dec-9a6c-75f2d7bf17e5 2025-10-23 10:46:57,158 - DEBUG - Control-node 10.0.0.19 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-65737882:ctest-vn4-79725486', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-65737882', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '3604590086952013403', 'uuid-lslong': '11207117721057530065'}, 'enable': 'true', 'created': '2025-10-23T10:46:55', 'last-modified': '2025-10-23T10:46:56', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.709705'} 2025-10-23 10:46:57,165 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-10-23 10:46:57,165 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-79725486 passed 2025-10-23 10:46:57,165 - DEBUG - ====Verifying policy data for ctest-vn4-79725486 in API_Server ====== 2025-10-23 10:46:57,165 - DEBUG - Requesting: http://10.0.0.19:8082/domains 2025-10-23 10:46:57,172 - DEBUG - Requesting: http://10.0.0.19:8082/domain/fbba2215-407a-481f-8c8e-2d76b867e8d0 2025-10-23 10:46:57,184 - DEBUG - Requesting: http://10.0.0.19:8082/project/83d6e04c-0413-49ec-90cf-c7049d6885c0 2025-10-23 10:46:57,255 - DEBUG - Requesting: http://10.0.0.19:8082/virtual-network/32061396-0dab-4e5b-9b87-ae307f9e90d1 2025-10-23 10:46:57,265 - DEBUG - ==>Verifying data for policy with id: c0c32b2d-5ee8-4fec-91f5-ebdb01801a97, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-65737882', 'ctest-policy1-31352360'] 2025-10-23 10:46:57,265 - INFO - VN ctest-vn4-79725486 Policy verification: verify_vn_policy_in_api_server, status: True 2025-10-23 10:46:57,265 - DEBUG - Verifying the vn in opserver 2025-10-23 10:46:57,265 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-65737882:ctest-vn4-79725486 virtual network link through opserver 10.0.0.19 2025-10-23 10:46:57,265 - DEBUG - Requesting: http://10.0.0.19:8081/analytics/uves/virtual-networks 2025-10-23 10:46:57,562 - DEBUG - Requesting: http://10.0.0.19:8081/analytics/uves/virtual-networks 2025-10-23 10:46:57,619 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-65737882:ctest-vn4-79725486', 'href': 'http://10.0.0.19:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-65737882:ctest-vn4-79725486?flat'} 2025-10-23 10:46:57,619 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-65737882:ctest-vn4-79725486 is found in opserver 2025-10-23 10:46:57,628 - DEBUG - Do not have enough data to verify VN in agent 2025-10-23 10:46:57,632 - DEBUG - VRF ids for VN ctest-vn4-79725486: {} 2025-10-23 10:46:57,632 - DEBUG - ====Verifying data for ctest-policy1-31352360 in API_Server ====== 2025-10-23 10:46:57,632 - DEBUG - Requesting: http://10.0.0.19:8082/domains 2025-10-23 10:46:57,638 - DEBUG - Requesting: http://10.0.0.19:8082/domain/fbba2215-407a-481f-8c8e-2d76b867e8d0 2025-10-23 10:46:57,648 - DEBUG - Requesting: http://10.0.0.19:8082/project/83d6e04c-0413-49ec-90cf-c7049d6885c0 2025-10-23 10:46:57,720 - DEBUG - Requesting: http://10.0.0.19:8082/network-policy/c0c32b2d-5ee8-4fec-91f5-ebdb01801a97 2025-10-23 10:46:57,729 - INFO - Verified policy ctest-policy1-31352360 in API Server, Result: True 2025-10-23 10:46:57,729 - INFO - Done with setup and verification, moving onto test .. 2025-10-23 10:46:57,737 - INFO - Deleting VN ctest-vn4-79725486 2025-10-23 10:46:57,861 - DEBUG - Response for deleting network () 2025-10-23 10:46:57,861 - DEBUG - Requesting: http://10.0.0.19:8082/routing-instance/031ce6e4-1ff0-4d67-883f-8de3a55165e7 2025-10-23 10:46:57,866 - DEBUG - Response Code: 404 2025-10-23 10:46:57,866 - DEBUG - Requesting: http://10.0.0.19:8082/domains 2025-10-23 10:46:57,871 - DEBUG - Requesting: http://10.0.0.19:8082/domain/fbba2215-407a-481f-8c8e-2d76b867e8d0 2025-10-23 10:46:57,927 - DEBUG - Requesting: http://10.0.0.19:8082/project/83d6e04c-0413-49ec-90cf-c7049d6885c0 2025-10-23 10:46:57,995 - INFO - Validated that VN ctest-vn4-79725486 is not found in API Server 2025-10-23 10:46:58,006 - DEBUG - VN ctest-vn4-79725486 is not present in Agent 10.0.0.19 2025-10-23 10:46:58,006 - INFO - Validated that VN ctest-vn4-79725486 is not in any agent 2025-10-23 10:46:58,021 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-79725486 info 2025-10-23 10:46:58,046 - INFO - Deleted policy ctest-policy1-31352360 2025-10-23 10:46:58,213 - DEBUG - policy ctest-policy1-31352360 is not found in API Server 2025-10-23 10:46:58,469 - DEBUG - No XMPP flaps were noticed during the test
2025-10-23 10:46:58,469 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04]
2025-10-23 10:46:58,469 - INFO - -------------------------------------------------------------------------------- 2025-10-23 10:46:58,761 - DEBUG - No XMPP flaps were noticed during the test
2025-10-23 10:46:58,761 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04]
2025-10-23 10:46:58,762 - INFO - -------------------------------------------------------------------------------- 2025-10-23 10:46:59,444 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-65737882, ID : 83d6e04c-0413-49ec-90cf-c7049d6885c0