2025-12-18 10:21:41,171 - INFO - Domain Default found not creating 2025-12-18 10:21:41,374 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-74103806 not found, creating it 2025-12-18 10:21:41,862 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-74103806, ID : 235f67c3-8a22-472b-a601-8a72d68d10d5 2025-12-18 10:21:43,379 - INFO - ================================================================================ 2025-12-18 10:21:43,379 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-12-18 10:21:43,639 - DEBUG - Nothing to compare xmpp stats {'10.0.0.50': {'10.20.0.17': '0'}} with 2025-12-18 10:21:43,639 - INFO - Initial checks done. Running the testcase now 2025-12-18 10:21:43,639 - INFO - 2025-12-18 10:21:43,639 - INFO - ================================================================================ 2025-12-18 10:21:43,639 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-12-18 10:21:43,639 - 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-12-18 10:21:43,924 - DEBUG - Nothing to compare xmpp stats {'10.0.0.50': {'10.20.0.17': '0'}} with 2025-12-18 10:21:43,924 - INFO - Initial checks done. Running the testcase now 2025-12-18 10:21:43,924 - INFO - 2025-12-18 10:21:44,277 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-74103806:ctest-vn4-17251384, 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-74103806:ctest-vn4-17251384, 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-74103806:ctest-vn4-17251384, 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-74103806:ctest-vn4-17251384, 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-12-18 10:21:44,783 - DEBUG - Response for create_network : {'network': {'id': '30cdad62-ed5c-4ede-80de-8658f3d6791a', 'name': 'ctest-vn4-17251384', 'tenant_id': '235f67c38a22472ba6018a72d68d10d5', 'project_id': '235f67c38a22472ba6018a72d68d10d5', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-74103806', 'ctest-vn4-17251384'], 'port_security_enabled': True, 'description': ''}} 2025-12-18 10:21:44,964 - DEBUG - Response for create_subnet : {'subnet': {'id': 'a0ebb69a-7be3-49ab-9c5d-8ca34c6e23d8', 'name': '', 'tenant_id': '235f67c38a22472ba6018a72d68d10d5', 'network_id': '30cdad62-ed5c-4ede-80de-8658f3d6791a', 'ip_version': 4, 'cidr': '23.74.53.128/26', 'allocation_pools': [{'start': '23.74.53.130', 'end': '23.74.53.190'}], 'gateway_ip': '23.74.53.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '23.74.53.130', 'tags': [], 'project_id': '235f67c38a22472ba6018a72d68d10d5'}} 2025-12-18 10:21:45,171 - DEBUG - Response for create_subnet : {'subnet': {'id': 'a004d81f-bb76-485e-8159-574744cd514e', 'name': '', 'tenant_id': '235f67c38a22472ba6018a72d68d10d5', 'network_id': '30cdad62-ed5c-4ede-80de-8658f3d6791a', 'ip_version': 6, 'cidr': '3e9b:616c:dfe8:3c09:f84e:a00f::/96', 'allocation_pools': [{'start': '3e9b:616c:dfe8:3c09:f84e:a00f:0:2', 'end': '3e9b:616c:dfe8:3c09:f84e:a00f:ffff:fffe'}], 'gateway_ip': '3e9b:616c:dfe8:3c09:f84e:a00f:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '3e9b:616c:dfe8:3c09:f84e:a00f:0:2', 'tags': [], 'project_id': '235f67c38a22472ba6018a72d68d10d5'}} 2025-12-18 10:21:45,189 - INFO - Created VN ctest-vn4-17251384 2025-12-18 10:21:45,243 - DEBUG - VN ctest-vn4-17251384 UUID is 30cdad62-ed5c-4ede-80de-8658f3d6791a 2025-12-18 10:21:45,435 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '30cdad62-ed5c-4ede-80de-8658f3d6791a', 'name': 'ctest-vn4-17251384', 'tenant_id': '235f67c38a22472ba6018a72d68d10d5', 'project_id': '235f67c38a22472ba6018a72d68d10d5', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['a0ebb69a-7be3-49ab-9c5d-8ca34c6e23d8', 'a004d81f-bb76-485e-8159-574744cd514e'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-74103806', 'ctest-vn4-17251384'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-74103806', 'ctest-policy1-84208102']], 'subnet_ipam': [{'subnet_cidr': '23.74.53.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '3e9b:616c:dfe8:3c09:f84e:a00f::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-12-18 10:21:45,588 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2025-12-18 10:21:45,880 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2025-12-18 10:21:45,908 - DEBUG - Requesting: http://10.0.0.50:8082/domain/3cde6b1b-7af9-4596-8f35-efafcb4d5542 2025-12-18 10:21:45,918 - DEBUG - Requesting: http://10.0.0.50:8082/project/235f67c3-8a22-472b-a601-8a72d68d10d5 2025-12-18 10:21:45,991 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/30cdad62-ed5c-4ede-80de-8658f3d6791a 2025-12-18 10:21:46,001 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/30cdad62-ed5c-4ede-80de-8658f3d6791a 2025-12-18 10:21:46,009 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/420f747f-7419-4d83-aebd-a0de4e45981e 2025-12-18 10:21:46,014 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/420f747f-7419-4d83-aebd-a0de4e45981e 2025-12-18 10:21:46,020 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/912c3dc8-3e15-4f7a-b57f-78a15803c760 2025-12-18 10:21:46,025 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-12-18 10:21:46,025 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/30cdad62-ed5c-4ede-80de-8658f3d6791a 2025-12-18 10:21:46,033 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/420f747f-7419-4d83-aebd-a0de4e45981e 2025-12-18 10:21:46,044 - INFO - Verified VN network id 11 for VN 30cdad62-ed5c-4ede-80de-8658f3d6791a 2025-12-18 10:21:46,044 - INFO - Verifications in API Server for VN ctest-vn4-17251384 passed 2025-12-18 10:21:46,045 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/30cdad62-ed5c-4ede-80de-8658f3d6791a 2025-12-18 10:21:46,052 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/420f747f-7419-4d83-aebd-a0de4e45981e 2025-12-18 10:21:46,057 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/420f747f-7419-4d83-aebd-a0de4e45981e 2025-12-18 10:21:46,062 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/912c3dc8-3e15-4f7a-b57f-78a15803c760 2025-12-18 10:21:46,071 - DEBUG - Control-node 10.0.0.50 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-74103806:ctest-vn4-17251384', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-74103806', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '3516657524446875358', 'uuid-lslong': '9286007198290704666'}, 'enable': 'true', 'created': '2025-12-18T10:21:44', 'last-modified': '2025-12-18T10:21:45', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.666750'} 2025-12-18 10:21:46,077 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-12-18 10:21:46,077 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-17251384 passed 2025-12-18 10:21:46,077 - DEBUG - ====Verifying policy data for ctest-vn4-17251384 in API_Server ====== 2025-12-18 10:21:46,077 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2025-12-18 10:21:46,083 - DEBUG - Requesting: http://10.0.0.50:8082/domain/3cde6b1b-7af9-4596-8f35-efafcb4d5542 2025-12-18 10:21:46,093 - DEBUG - Requesting: http://10.0.0.50:8082/project/235f67c3-8a22-472b-a601-8a72d68d10d5 2025-12-18 10:21:46,160 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/30cdad62-ed5c-4ede-80de-8658f3d6791a 2025-12-18 10:21:46,168 - DEBUG - ==>Verifying data for policy with id: 725f385b-dad3-40d9-8bfb-2fef873cea52, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-74103806', 'ctest-policy1-84208102'] 2025-12-18 10:21:46,168 - INFO - VN ctest-vn4-17251384 Policy verification: verify_vn_policy_in_api_server, status: True 2025-12-18 10:21:46,168 - DEBUG - Verifying the vn in opserver 2025-12-18 10:21:46,168 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-74103806:ctest-vn4-17251384 virtual network link through opserver 10.0.0.50 2025-12-18 10:21:46,169 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks 2025-12-18 10:21:46,467 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks 2025-12-18 10:21:46,531 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-74103806:ctest-vn4-17251384', 'href': 'http://10.0.0.50:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-74103806:ctest-vn4-17251384?flat'} 2025-12-18 10:21:46,531 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-74103806:ctest-vn4-17251384 is found in opserver 2025-12-18 10:21:46,542 - DEBUG - Do not have enough data to verify VN in agent 2025-12-18 10:21:46,548 - DEBUG - VRF ids for VN ctest-vn4-17251384: {} 2025-12-18 10:21:46,548 - DEBUG - ====Verifying data for ctest-policy1-84208102 in API_Server ====== 2025-12-18 10:21:46,548 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2025-12-18 10:21:46,554 - DEBUG - Requesting: http://10.0.0.50:8082/domain/3cde6b1b-7af9-4596-8f35-efafcb4d5542 2025-12-18 10:21:46,565 - DEBUG - Requesting: http://10.0.0.50:8082/project/235f67c3-8a22-472b-a601-8a72d68d10d5 2025-12-18 10:21:46,636 - DEBUG - Requesting: http://10.0.0.50:8082/network-policy/725f385b-dad3-40d9-8bfb-2fef873cea52 2025-12-18 10:21:46,646 - INFO - Verified policy ctest-policy1-84208102 in API Server, Result: True 2025-12-18 10:21:46,646 - INFO - Done with setup and verification, moving onto test .. 2025-12-18 10:21:46,654 - INFO - Deleting VN ctest-vn4-17251384 2025-12-18 10:21:46,769 - DEBUG - Response for deleting network () 2025-12-18 10:21:46,769 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/420f747f-7419-4d83-aebd-a0de4e45981e 2025-12-18 10:21:46,774 - DEBUG - Response Code: 404 2025-12-18 10:21:46,774 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2025-12-18 10:21:46,779 - DEBUG - Requesting: http://10.0.0.50:8082/domain/3cde6b1b-7af9-4596-8f35-efafcb4d5542 2025-12-18 10:21:46,838 - DEBUG - Requesting: http://10.0.0.50:8082/project/235f67c3-8a22-472b-a601-8a72d68d10d5 2025-12-18 10:21:46,906 - INFO - Validated that VN ctest-vn4-17251384 is not found in API Server 2025-12-18 10:21:46,915 - DEBUG - VN ctest-vn4-17251384 is not present in Agent 10.0.0.50 2025-12-18 10:21:46,915 - INFO - Validated that VN ctest-vn4-17251384 is not in any agent 2025-12-18 10:21:46,928 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-17251384 info 2025-12-18 10:21:46,954 - INFO - Deleted policy ctest-policy1-84208102 2025-12-18 10:21:47,115 - DEBUG - policy ctest-policy1-84208102 is not found in API Server 2025-12-18 10:21:47,368 - DEBUG - No XMPP flaps were noticed during the test
2025-12-18 10:21:47,368 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04]
2025-12-18 10:21:47,368 - INFO - -------------------------------------------------------------------------------- 2025-12-18 10:21:47,656 - DEBUG - No XMPP flaps were noticed during the test
2025-12-18 10:21:47,656 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04]
2025-12-18 10:21:47,656 - INFO - -------------------------------------------------------------------------------- 2025-12-18 10:21:48,315 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-74103806, ID : 235f67c3-8a22-472b-a601-8a72d68d10d5