2026-01-29 17:11:42,216 - INFO - Domain Default found not creating 2026-01-29 17:11:42,379 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-84297603 not found, creating it 2026-01-29 17:11:42,834 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-84297603, ID : d4e748d1-24d7-440d-be8a-13fc4c79493a 2026-01-29 17:11:44,313 - INFO - ================================================================================ 2026-01-29 17:11:44,313 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-01-29 17:11:44,568 - DEBUG - Nothing to compare xmpp stats {'10.0.0.240': {'10.20.0.25': '0'}} with 2026-01-29 17:11:44,568 - INFO - Initial checks done. Running the testcase now 2026-01-29 17:11:44,568 - INFO - 2026-01-29 17:11:44,568 - INFO - ================================================================================ 2026-01-29 17:11:44,568 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-01-29 17:11:44,568 - 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-01-29 17:11:44,854 - DEBUG - Nothing to compare xmpp stats {'10.0.0.240': {'10.20.0.25': '0'}} with 2026-01-29 17:11:44,854 - INFO - Initial checks done. Running the testcase now 2026-01-29 17:11:44,854 - INFO - 2026-01-29 17:11:45,213 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-84297603:ctest-vn4-70199623, 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-84297603:ctest-vn4-70199623, 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-84297603:ctest-vn4-70199623, 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-84297603:ctest-vn4-70199623, 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-01-29 17:11:45,728 - DEBUG - Response for create_network : {'network': {'id': '50414bf7-903e-4a51-96cc-a2e173613153', 'name': 'ctest-vn4-70199623', 'tenant_id': 'd4e748d124d7440dbe8a13fc4c79493a', 'project_id': 'd4e748d124d7440dbe8a13fc4c79493a', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-84297603', 'ctest-vn4-70199623'], 'port_security_enabled': True, 'description': ''}} 2026-01-29 17:11:45,904 - DEBUG - Response for create_subnet : {'subnet': {'id': '590d64d2-9cdf-4bbf-91ad-e97ce6440a5d', 'name': '', 'tenant_id': 'd4e748d124d7440dbe8a13fc4c79493a', 'network_id': '50414bf7-903e-4a51-96cc-a2e173613153', 'ip_version': 4, 'cidr': '196.223.104.128/26', 'allocation_pools': [{'start': '196.223.104.130', 'end': '196.223.104.190'}], 'gateway_ip': '196.223.104.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '196.223.104.130', 'tags': [], 'project_id': 'd4e748d124d7440dbe8a13fc4c79493a'}} 2026-01-29 17:11:46,050 - DEBUG - Response for create_subnet : {'subnet': {'id': '95408fd1-4b94-43b6-ba82-968b4582c1b3', 'name': '', 'tenant_id': 'd4e748d124d7440dbe8a13fc4c79493a', 'network_id': '50414bf7-903e-4a51-96cc-a2e173613153', 'ip_version': 6, 'cidr': '3cd2:6c27:5049:7b18:cf58:4b0a::/96', 'allocation_pools': [{'start': '3cd2:6c27:5049:7b18:cf58:4b0a:0:2', 'end': '3cd2:6c27:5049:7b18:cf58:4b0a:ffff:fffe'}], 'gateway_ip': '3cd2:6c27:5049:7b18:cf58:4b0a:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '3cd2:6c27:5049:7b18:cf58:4b0a:0:2', 'tags': [], 'project_id': 'd4e748d124d7440dbe8a13fc4c79493a'}} 2026-01-29 17:11:46,069 - INFO - Created VN ctest-vn4-70199623 2026-01-29 17:11:46,121 - DEBUG - VN ctest-vn4-70199623 UUID is 50414bf7-903e-4a51-96cc-a2e173613153 2026-01-29 17:11:46,318 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '50414bf7-903e-4a51-96cc-a2e173613153', 'name': 'ctest-vn4-70199623', 'tenant_id': 'd4e748d124d7440dbe8a13fc4c79493a', 'project_id': 'd4e748d124d7440dbe8a13fc4c79493a', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['590d64d2-9cdf-4bbf-91ad-e97ce6440a5d', '95408fd1-4b94-43b6-ba82-968b4582c1b3'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-84297603', 'ctest-vn4-70199623'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-84297603', 'ctest-policy1-54809112']], 'subnet_ipam': [{'subnet_cidr': '196.223.104.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '3cd2:6c27:5049:7b18:cf58:4b0a::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2026-01-29 17:11:46,477 - DEBUG - Requesting: http://10.0.0.240:8082/domains 2026-01-29 17:11:46,772 - DEBUG - Requesting: http://10.0.0.240:8082/domains 2026-01-29 17:11:46,803 - DEBUG - Requesting: http://10.0.0.240:8082/domain/707db02e-1694-496e-92de-c734a10ad632 2026-01-29 17:11:46,814 - DEBUG - Requesting: http://10.0.0.240:8082/project/d4e748d1-24d7-440d-be8a-13fc4c79493a 2026-01-29 17:11:46,885 - DEBUG - Requesting: http://10.0.0.240:8082/virtual-network/50414bf7-903e-4a51-96cc-a2e173613153 2026-01-29 17:11:46,897 - DEBUG - Requesting: http://10.0.0.240:8082/virtual-network/50414bf7-903e-4a51-96cc-a2e173613153 2026-01-29 17:11:46,906 - DEBUG - Requesting: http://10.0.0.240:8082/routing-instance/f535fb68-8834-498f-9582-f4753942ee44 2026-01-29 17:11:46,913 - DEBUG - Requesting: http://10.0.0.240:8082/routing-instance/f535fb68-8834-498f-9582-f4753942ee44 2026-01-29 17:11:46,919 - DEBUG - Requesting: http://10.0.0.240:8082/route-target/6f54a66e-7201-4339-9c9f-e1df08162393 2026-01-29 17:11:46,925 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-01-29 17:11:46,925 - DEBUG - Requesting: http://10.0.0.240:8082/virtual-network/50414bf7-903e-4a51-96cc-a2e173613153 2026-01-29 17:11:46,934 - DEBUG - Requesting: http://10.0.0.240:8082/routing-instance/f535fb68-8834-498f-9582-f4753942ee44 2026-01-29 17:11:46,949 - INFO - Verified VN network id 11 for VN 50414bf7-903e-4a51-96cc-a2e173613153 2026-01-29 17:11:46,949 - INFO - Verifications in API Server for VN ctest-vn4-70199623 passed 2026-01-29 17:11:46,950 - DEBUG - Requesting: http://10.0.0.240:8082/virtual-network/50414bf7-903e-4a51-96cc-a2e173613153 2026-01-29 17:11:46,960 - DEBUG - Requesting: http://10.0.0.240:8082/routing-instance/f535fb68-8834-498f-9582-f4753942ee44 2026-01-29 17:11:46,967 - DEBUG - Requesting: http://10.0.0.240:8082/routing-instance/f535fb68-8834-498f-9582-f4753942ee44 2026-01-29 17:11:46,974 - DEBUG - Requesting: http://10.0.0.240:8082/route-target/6f54a66e-7201-4339-9c9f-e1df08162393 2026-01-29 17:11:46,986 - DEBUG - Control-node 10.0.0.240 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-84297603:ctest-vn4-70199623', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-84297603', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '5782986923169434193', 'uuid-lslong': '10866239090125254995'}, 'enable': 'true', 'created': '2026-01-29T17:11:45', 'last-modified': '2026-01-29T17:11:46', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.688664'} 2026-01-29 17:11:46,993 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-01-29 17:11:46,993 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-70199623 passed 2026-01-29 17:11:46,993 - DEBUG - ====Verifying policy data for ctest-vn4-70199623 in API_Server ====== 2026-01-29 17:11:46,993 - DEBUG - Requesting: http://10.0.0.240:8082/domains 2026-01-29 17:11:46,999 - DEBUG - Requesting: http://10.0.0.240:8082/domain/707db02e-1694-496e-92de-c734a10ad632 2026-01-29 17:11:47,010 - DEBUG - Requesting: http://10.0.0.240:8082/project/d4e748d1-24d7-440d-be8a-13fc4c79493a 2026-01-29 17:11:47,082 - DEBUG - Requesting: http://10.0.0.240:8082/virtual-network/50414bf7-903e-4a51-96cc-a2e173613153 2026-01-29 17:11:47,091 - DEBUG - ==>Verifying data for policy with id: dbf6c9d7-230e-49cd-82ad-3425dec9b654, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-84297603', 'ctest-policy1-54809112'] 2026-01-29 17:11:47,091 - INFO - VN ctest-vn4-70199623 Policy verification: verify_vn_policy_in_api_server, status: True 2026-01-29 17:11:47,091 - DEBUG - Verifying the vn in opserver 2026-01-29 17:11:47,091 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-84297603:ctest-vn4-70199623 virtual network link through opserver 10.0.0.240 2026-01-29 17:11:47,091 - DEBUG - Requesting: http://10.0.0.240:8081/analytics/uves/virtual-networks 2026-01-29 17:11:47,384 - DEBUG - Requesting: http://10.0.0.240:8081/analytics/uves/virtual-networks 2026-01-29 17:11:47,447 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-84297603:ctest-vn4-70199623', 'href': 'http://10.0.0.240:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-84297603:ctest-vn4-70199623?flat'} 2026-01-29 17:11:47,447 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-84297603:ctest-vn4-70199623 is found in opserver 2026-01-29 17:11:47,456 - DEBUG - Do not have enough data to verify VN in agent 2026-01-29 17:11:47,461 - DEBUG - VRF ids for VN ctest-vn4-70199623: {} 2026-01-29 17:11:47,462 - DEBUG - ====Verifying data for ctest-policy1-54809112 in API_Server ====== 2026-01-29 17:11:47,462 - DEBUG - Requesting: http://10.0.0.240:8082/domains 2026-01-29 17:11:47,467 - DEBUG - Requesting: http://10.0.0.240:8082/domain/707db02e-1694-496e-92de-c734a10ad632 2026-01-29 17:11:47,478 - DEBUG - Requesting: http://10.0.0.240:8082/project/d4e748d1-24d7-440d-be8a-13fc4c79493a 2026-01-29 17:11:47,547 - DEBUG - Requesting: http://10.0.0.240:8082/network-policy/dbf6c9d7-230e-49cd-82ad-3425dec9b654 2026-01-29 17:11:47,557 - INFO - Verified policy ctest-policy1-54809112 in API Server, Result: True 2026-01-29 17:11:47,557 - INFO - Done with setup and verification, moving onto test .. 2026-01-29 17:11:47,566 - INFO - Deleting VN ctest-vn4-70199623 2026-01-29 17:11:47,681 - DEBUG - Response for deleting network () 2026-01-29 17:11:47,681 - DEBUG - Requesting: http://10.0.0.240:8082/routing-instance/f535fb68-8834-498f-9582-f4753942ee44 2026-01-29 17:11:47,686 - DEBUG - Response Code: 404 2026-01-29 17:11:47,686 - DEBUG - Requesting: http://10.0.0.240:8082/domains 2026-01-29 17:11:47,692 - DEBUG - Requesting: http://10.0.0.240:8082/domain/707db02e-1694-496e-92de-c734a10ad632 2026-01-29 17:11:47,746 - DEBUG - Requesting: http://10.0.0.240:8082/project/d4e748d1-24d7-440d-be8a-13fc4c79493a 2026-01-29 17:11:47,812 - INFO - Validated that VN ctest-vn4-70199623 is not found in API Server 2026-01-29 17:11:47,822 - DEBUG - VN ctest-vn4-70199623 is not present in Agent 10.0.0.240 2026-01-29 17:11:47,822 - INFO - Validated that VN ctest-vn4-70199623 is not in any agent 2026-01-29 17:11:47,840 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-70199623 info 2026-01-29 17:11:47,868 - INFO - Deleted policy ctest-policy1-54809112 2026-01-29 17:11:48,033 - DEBUG - policy ctest-policy1-54809112 is not found in API Server 2026-01-29 17:11:48,290 - DEBUG - No XMPP flaps were noticed during the test
2026-01-29 17:11:48,290 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04]
2026-01-29 17:11:48,290 - INFO - -------------------------------------------------------------------------------- 2026-01-29 17:11:48,582 - DEBUG - No XMPP flaps were noticed during the test
2026-01-29 17:11:48,582 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04]
2026-01-29 17:11:48,582 - INFO - -------------------------------------------------------------------------------- 2026-01-29 17:11:49,256 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-84297603, ID : d4e748d1-24d7-440d-be8a-13fc4c79493a