2025-10-17 22:47:39,010 - INFO - Reading existing Domain with UUID c2fab7b5-42f0-4b0e-a131-4c62931bf465 2025-10-17 22:47:39,021 - INFO - Using existing domain ['admin_domain'](c2fab7b5-42f0-4b0e-a131-4c62931bf465) 2025-10-17 22:47:39,227 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-10109291 not found, creating it 2025-10-17 22:47:39,759 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-10109291, ID : 4f32cb12-6111-43bb-93be-f86da1b3ada6 2025-10-17 22:47:41,503 - INFO - ================================================================================ 2025-10-17 22:47:41,503 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-10-17 22:47:41,892 - DEBUG - Nothing to compare xmpp stats {'10.0.0.131': {'10.0.0.131': '0'}} with 2025-10-17 22:47:41,892 - INFO - Initial checks done. Running the testcase now 2025-10-17 22:47:41,892 - INFO - 2025-10-17 22:47:41,892 - INFO - ================================================================================ 2025-10-17 22:47:41,892 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-10-17 22:47:41,893 - 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-17 22:47:42,280 - DEBUG - Nothing to compare xmpp stats {'10.0.0.131': {'10.0.0.131': '0'}} with 2025-10-17 22:47:42,280 - INFO - Initial checks done. Running the testcase now 2025-10-17 22:47:42,280 - INFO - 2025-10-17 22:47:42,706 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = admin_domain:ctest-TestBasicPolicyNegativeIpv4v6-10109291:ctest-vn4-63341514, security_group = None, network_policy = None, subnet_list = []], src_ports = [start_port = -1, end_port = -1], application = [], dst_addresses = [subnet = None, virtual_network = admin_domain:ctest-TestBasicPolicyNegativeIpv4v6-10109291:ctest-vn4-63341514, 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 = admin_domain:ctest-TestBasicPolicyNegativeIpv4v6-10109291:ctest-vn4-63341514, security_group = None, network_policy = None, subnet_list = []], src_ports = [start_port = -1, end_port = -1], application = [], dst_addresses = [subnet = None, virtual_network = admin_domain:ctest-TestBasicPolicyNegativeIpv4v6-10109291:ctest-vn4-63341514, 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-17 22:47:43,411 - DEBUG - Response for create_network : {'network': {'id': '833f7f1a-e4cc-4924-93f6-07a40b8a5ebe', 'name': 'ctest-vn4-63341514', 'tenant_id': '4f32cb12611143bb93bef86da1b3ada6', 'project_id': '4f32cb12611143bb93bef86da1b3ada6', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['admin_domain', 'ctest-TestBasicPolicyNegativeIpv4v6-10109291', 'ctest-vn4-63341514'], 'port_security_enabled': True, 'description': '', 'created_at': None, 'updated_at': None}} 2025-10-17 22:47:43,671 - DEBUG - Response for create_subnet : {'subnet': {'id': '3e905e7b-d3e1-4534-83d4-7d2521459448', 'name': '', 'tenant_id': '4f32cb12611143bb93bef86da1b3ada6', 'network_id': '833f7f1a-e4cc-4924-93f6-07a40b8a5ebe', 'ip_version': 4, 'cidr': '116.67.70.128/26', 'allocation_pools': [{'start': '116.67.70.130', 'end': '116.67.70.190'}], 'gateway_ip': '116.67.70.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'created_at': '2025-10-17T22:47:43.568916', 'updated_at': '2025-10-17T22:47:43.568916', 'dns_server_address': '116.67.70.130', 'tags': [], 'project_id': '4f32cb12611143bb93bef86da1b3ada6'}} 2025-10-17 22:47:43,927 - DEBUG - Response for create_subnet : {'subnet': {'id': '4ad0758a-f96e-4b27-aef8-4b8c012e519a', 'name': '', 'tenant_id': '4f32cb12611143bb93bef86da1b3ada6', 'network_id': '833f7f1a-e4cc-4924-93f6-07a40b8a5ebe', 'ip_version': 6, 'cidr': '2965:8c9b:cc1a:ec32:7038:46ea::/96', 'allocation_pools': [{'start': '2965:8c9b:cc1a:ec32:7038:46ea:0:2', 'end': '2965:8c9b:cc1a:ec32:7038:46ea:ffff:fffe'}], 'gateway_ip': '2965:8c9b:cc1a:ec32:7038:46ea:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'created_at': '2025-10-17T22:47:43.823437', 'updated_at': '2025-10-17T22:47:43.823437', 'dns_server_address': '2965:8c9b:cc1a:ec32:7038:46ea:0:2', 'tags': [], 'project_id': '4f32cb12611143bb93bef86da1b3ada6'}} 2025-10-17 22:47:43,993 - INFO - Created VN ctest-vn4-63341514 2025-10-17 22:47:44,050 - DEBUG - VN ctest-vn4-63341514 UUID is 833f7f1a-e4cc-4924-93f6-07a40b8a5ebe 2025-10-17 22:47:44,518 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '833f7f1a-e4cc-4924-93f6-07a40b8a5ebe', 'name': 'ctest-vn4-63341514', 'tenant_id': '4f32cb12611143bb93bef86da1b3ada6', 'project_id': '4f32cb12611143bb93bef86da1b3ada6', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['3e905e7b-d3e1-4534-83d4-7d2521459448', '4ad0758a-f96e-4b27-aef8-4b8c012e519a'], 'fq_name': ['admin_domain', 'ctest-TestBasicPolicyNegativeIpv4v6-10109291', 'ctest-vn4-63341514'], 'policys': [['admin_domain', 'ctest-TestBasicPolicyNegativeIpv4v6-10109291', 'ctest-policy1-07226625']], 'subnet_ipam': [{'subnet_cidr': '116.67.70.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '2965:8c9b:cc1a:ec32:7038:46ea::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': '', 'created_at': '2025-10-17T22:47:43.331359', 'updated_at': '2025-10-17T22:47:43.838206'}} 2025-10-17 22:47:44,691 - DEBUG - Requesting: https://10.0.0.131:8082/domains 2025-10-17 22:47:45,038 - DEBUG - Requesting: https://10.0.0.131:8082/domains 2025-10-17 22:47:45,119 - DEBUG - Requesting: https://10.0.0.131:8082/domain/c2fab7b5-42f0-4b0e-a131-4c62931bf465 2025-10-17 22:47:45,180 - DEBUG - Requesting: https://10.0.0.131:8082/project/4f32cb12-6111-43bb-93be-f86da1b3ada6 2025-10-17 22:47:45,276 - DEBUG - Requesting: https://10.0.0.131:8082/virtual-network/833f7f1a-e4cc-4924-93f6-07a40b8a5ebe 2025-10-17 22:47:45,338 - DEBUG - Requesting: https://10.0.0.131:8082/virtual-network/833f7f1a-e4cc-4924-93f6-07a40b8a5ebe 2025-10-17 22:47:45,397 - DEBUG - Requesting: https://10.0.0.131:8082/routing-instance/7bc3be96-ac74-4a90-bdf6-f2c00c0af91d 2025-10-17 22:47:45,451 - DEBUG - Requesting: https://10.0.0.131:8082/routing-instance/7bc3be96-ac74-4a90-bdf6-f2c00c0af91d 2025-10-17 22:47:45,504 - DEBUG - Requesting: https://10.0.0.131:8082/route-target/611b2dc7-79a7-4191-907b-cb485ad6e137 2025-10-17 22:47:45,555 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-10-17 22:47:45,555 - DEBUG - Requesting: https://10.0.0.131:8082/virtual-network/833f7f1a-e4cc-4924-93f6-07a40b8a5ebe 2025-10-17 22:47:45,613 - DEBUG - Requesting: https://10.0.0.131:8082/routing-instance/7bc3be96-ac74-4a90-bdf6-f2c00c0af91d 2025-10-17 22:47:45,676 - INFO - Verified VN network id 10 for VN 833f7f1a-e4cc-4924-93f6-07a40b8a5ebe 2025-10-17 22:47:45,676 - INFO - Verifications in API Server for VN ctest-vn4-63341514 passed 2025-10-17 22:47:45,676 - DEBUG - Requesting: https://10.0.0.131:8082/virtual-network/833f7f1a-e4cc-4924-93f6-07a40b8a5ebe 2025-10-17 22:47:45,732 - DEBUG - Requesting: https://10.0.0.131:8082/routing-instance/7bc3be96-ac74-4a90-bdf6-f2c00c0af91d 2025-10-17 22:47:45,787 - DEBUG - Requesting: https://10.0.0.131:8082/routing-instance/7bc3be96-ac74-4a90-bdf6-f2c00c0af91d 2025-10-17 22:47:45,840 - DEBUG - Requesting: https://10.0.0.131:8082/route-target/611b2dc7-79a7-4191-907b-cb485ad6e137 2025-10-17 22:47:45,948 - DEBUG - Control-node 10.0.0.131 : VN object is : {'node_name': 'virtual-network:admin_domain:ctest-TestBasicPolicyNegativeIpv4v6-10109291:ctest-vn4-63341514', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-10109291', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '9457417495985801508', 'uuid-lslong': '10661717568995876542'}, 'enable': 'true', 'created': '2025-10-17T22:47:43', 'last-modified': '2025-10-17T22:47:44', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.476112'} 2025-10-17 22:47:45,997 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-10-17 22:47:45,997 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-63341514 passed 2025-10-17 22:47:45,997 - DEBUG - ====Verifying policy data for ctest-vn4-63341514 in API_Server ====== 2025-10-17 22:47:45,997 - DEBUG - Requesting: https://10.0.0.131:8082/domains 2025-10-17 22:47:46,051 - DEBUG - Requesting: https://10.0.0.131:8082/domain/c2fab7b5-42f0-4b0e-a131-4c62931bf465 2025-10-17 22:47:46,108 - DEBUG - Requesting: https://10.0.0.131:8082/project/4f32cb12-6111-43bb-93be-f86da1b3ada6 2025-10-17 22:47:46,180 - DEBUG - Requesting: https://10.0.0.131:8082/virtual-network/833f7f1a-e4cc-4924-93f6-07a40b8a5ebe 2025-10-17 22:47:46,242 - DEBUG - ==>Verifying data for policy with id: 30fb4e39-fa2f-4604-b2e4-09733bd361dd, fqn: ['admin_domain', 'ctest-TestBasicPolicyNegativeIpv4v6-10109291', 'ctest-policy1-07226625'] 2025-10-17 22:47:46,242 - INFO - VN ctest-vn4-63341514 Policy verification: verify_vn_policy_in_api_server, status: True 2025-10-17 22:47:46,243 - DEBUG - Verifying the vn in opserver 2025-10-17 22:47:46,243 - DEBUG - Verifying the admin_domain:ctest-TestBasicPolicyNegativeIpv4v6-10109291:ctest-vn4-63341514 virtual network link through opserver 10.0.0.131 2025-10-17 22:47:46,243 - DEBUG - Requesting: https://10.0.0.131:8081/analytics/uves/virtual-networks 2025-10-17 22:47:46,600 - DEBUG - Requesting: https://10.0.0.131:8081/analytics/uves/virtual-networks 2025-10-17 22:47:46,759 - DEBUG - vn link and name as {'name': 'admin_domain:ctest-TestBasicPolicyNegativeIpv4v6-10109291:ctest-vn4-63341514', 'href': 'https://10.0.0.131:8081/analytics/uves/virtual-network/admin_domain:ctest-TestBasicPolicyNegativeIpv4v6-10109291:ctest-vn4-63341514?flat'} 2025-10-17 22:47:46,759 - INFO - Validated that VN admin_domain:ctest-TestBasicPolicyNegativeIpv4v6-10109291:ctest-vn4-63341514 is found in opserver 2025-10-17 22:47:46,859 - DEBUG - Do not have enough data to verify VN in agent 2025-10-17 22:47:46,907 - DEBUG - VRF ids for VN ctest-vn4-63341514: {} 2025-10-17 22:47:46,908 - DEBUG - ====Verifying data for ctest-policy1-07226625 in API_Server ====== 2025-10-17 22:47:46,908 - DEBUG - Requesting: https://10.0.0.131:8082/domains 2025-10-17 22:47:46,959 - DEBUG - Requesting: https://10.0.0.131:8082/domain/c2fab7b5-42f0-4b0e-a131-4c62931bf465 2025-10-17 22:47:47,016 - DEBUG - Requesting: https://10.0.0.131:8082/project/4f32cb12-6111-43bb-93be-f86da1b3ada6 2025-10-17 22:47:47,112 - DEBUG - Requesting: https://10.0.0.131:8082/network-policy/30fb4e39-fa2f-4604-b2e4-09733bd361dd 2025-10-17 22:47:47,169 - INFO - Verified policy ctest-policy1-07226625 in API Server, Result: True 2025-10-17 22:47:47,170 - INFO - Done with setup and verification, moving onto test .. 2025-10-17 22:47:47,179 - INFO - Deleting VN ctest-vn4-63341514 2025-10-17 22:47:47,363 - DEBUG - Response for deleting network () 2025-10-17 22:47:47,363 - DEBUG - Requesting: https://10.0.0.131:8082/routing-instance/7bc3be96-ac74-4a90-bdf6-f2c00c0af91d 2025-10-17 22:47:47,414 - DEBUG - Response Code: 404 2025-10-17 22:47:47,415 - DEBUG - Requesting: https://10.0.0.131:8082/domains 2025-10-17 22:47:47,467 - DEBUG - Requesting: https://10.0.0.131:8082/domain/c2fab7b5-42f0-4b0e-a131-4c62931bf465 2025-10-17 22:47:47,524 - DEBUG - Requesting: https://10.0.0.131:8082/project/4f32cb12-6111-43bb-93be-f86da1b3ada6 2025-10-17 22:47:47,599 - INFO - Validated that VN ctest-vn4-63341514 is not found in API Server 2025-10-17 22:47:47,699 - DEBUG - VN ctest-vn4-63341514 is not present in Agent 10.0.0.131 2025-10-17 22:47:47,699 - INFO - Validated that VN ctest-vn4-63341514 is not in any agent 2025-10-17 22:47:47,847 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-63341514 info 2025-10-17 22:47:47,874 - INFO - Deleted policy ctest-policy1-07226625 2025-10-17 22:47:48,046 - DEBUG - policy ctest-policy1-07226625 is not found in API Server 2025-10-17 22:47:48,428 - DEBUG - No XMPP flaps were noticed during the test 2025-10-17 22:47:48,428 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:07] 2025-10-17 22:47:48,428 - INFO - -------------------------------------------------------------------------------- 2025-10-17 22:47:48,824 - DEBUG - No XMPP flaps were noticed during the test 2025-10-17 22:47:48,824 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:07] 2025-10-17 22:47:48,824 - INFO - -------------------------------------------------------------------------------- 2025-10-17 22:47:49,577 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-10109291, ID : 4f32cb12-6111-43bb-93be-f86da1b3ada6