2025-10-21 17:50:32,161 - INFO - Domain Default found not creating 2025-10-21 17:50:32,469 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-23408487 not found, creating it 2025-10-21 17:50:33,042 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-23408487, ID : 8abf14f5-7b1d-4406-b6de-e1101335f437 2025-10-21 17:50:34,837 - INFO - ================================================================================ 2025-10-21 17:50:34,837 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-10-21 17:50:35,148 - DEBUG - Nothing to compare xmpp stats {'10.0.0.130': {'10.20.0.25': '0'}} with 2025-10-21 17:50:35,148 - INFO - Initial checks done. Running the testcase now 2025-10-21 17:50:35,148 - INFO - 2025-10-21 17:50:35,148 - INFO - ================================================================================ 2025-10-21 17:50:35,148 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-10-21 17:50:35,149 - 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-21 17:50:35,476 - DEBUG - Nothing to compare xmpp stats {'10.0.0.130': {'10.20.0.25': '0'}} with 2025-10-21 17:50:35,476 - INFO - Initial checks done. Running the testcase now 2025-10-21 17:50:35,476 - INFO - 2025-10-21 17:50:35,893 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-23408487:ctest-vn4-64588331, 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-23408487:ctest-vn4-64588331, 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-23408487:ctest-vn4-64588331, 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-23408487:ctest-vn4-64588331, 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-21 17:50:36,662 - DEBUG - Response for create_network : {'network': {'id': 'bf05741e-07e1-402a-8a8a-c0ecb68634c8', 'name': 'ctest-vn4-64588331', 'tenant_id': '8abf14f57b1d4406b6dee1101335f437', 'project_id': '8abf14f57b1d4406b6dee1101335f437', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-23408487', 'ctest-vn4-64588331'], 'port_security_enabled': True, 'description': ''}} 2025-10-21 17:50:36,911 - DEBUG - Response for create_subnet : {'subnet': {'id': 'c8ad7fc2-b80a-438d-a0f5-e5a3db0168e7', 'name': '', 'tenant_id': '8abf14f57b1d4406b6dee1101335f437', 'network_id': 'bf05741e-07e1-402a-8a8a-c0ecb68634c8', 'ip_version': 4, 'cidr': '9.106.101.0/26', 'allocation_pools': [{'start': '9.106.101.2', 'end': '9.106.101.62'}], 'gateway_ip': '9.106.101.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '9.106.101.2', 'tags': [], 'project_id': '8abf14f57b1d4406b6dee1101335f437'}} 2025-10-21 17:50:37,196 - DEBUG - Response for create_subnet : {'subnet': {'id': '6f0c77e1-5b0c-482b-83cc-7e63e2ace418', 'name': '', 'tenant_id': '8abf14f57b1d4406b6dee1101335f437', 'network_id': 'bf05741e-07e1-402a-8a8a-c0ecb68634c8', 'ip_version': 6, 'cidr': '3bda:ce44:3db3:e024:ba82:9cdd::/96', 'allocation_pools': [{'start': '3bda:ce44:3db3:e024:ba82:9cdd:0:2', 'end': '3bda:ce44:3db3:e024:ba82:9cdd:ffff:fffe'}], 'gateway_ip': '3bda:ce44:3db3:e024:ba82:9cdd:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '3bda:ce44:3db3:e024:ba82:9cdd:0:2', 'tags': [], 'project_id': '8abf14f57b1d4406b6dee1101335f437'}} 2025-10-21 17:50:37,226 - INFO - Created VN ctest-vn4-64588331 2025-10-21 17:50:37,280 - DEBUG - VN ctest-vn4-64588331 UUID is bf05741e-07e1-402a-8a8a-c0ecb68634c8 2025-10-21 17:50:37,504 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'bf05741e-07e1-402a-8a8a-c0ecb68634c8', 'name': 'ctest-vn4-64588331', 'tenant_id': '8abf14f57b1d4406b6dee1101335f437', 'project_id': '8abf14f57b1d4406b6dee1101335f437', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['c8ad7fc2-b80a-438d-a0f5-e5a3db0168e7', '6f0c77e1-5b0c-482b-83cc-7e63e2ace418'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-23408487', 'ctest-vn4-64588331'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-23408487', 'ctest-policy1-15175185']], 'subnet_ipam': [{'subnet_cidr': '9.106.101.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '3bda:ce44:3db3:e024:ba82:9cdd::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-10-21 17:50:37,671 - DEBUG - Requesting: http://10.0.0.130:8082/domains 2025-10-21 17:50:37,997 - DEBUG - Requesting: http://10.0.0.130:8082/domains 2025-10-21 17:50:38,052 - DEBUG - Requesting: http://10.0.0.130:8082/domain/a9b02489-17d2-4343-bae9-3201b5557307 2025-10-21 17:50:38,080 - DEBUG - Requesting: http://10.0.0.130:8082/project/8abf14f5-7b1d-4406-b6de-e1101335f437 2025-10-21 17:50:38,196 - DEBUG - Requesting: http://10.0.0.130:8082/virtual-network/bf05741e-07e1-402a-8a8a-c0ecb68634c8 2025-10-21 17:50:38,217 - DEBUG - Requesting: http://10.0.0.130:8082/virtual-network/bf05741e-07e1-402a-8a8a-c0ecb68634c8 2025-10-21 17:50:38,235 - DEBUG - Requesting: http://10.0.0.130:8082/routing-instance/f3962afe-8e98-4bf6-bf8e-22961f58d395 2025-10-21 17:50:38,248 - DEBUG - Requesting: http://10.0.0.130:8082/routing-instance/f3962afe-8e98-4bf6-bf8e-22961f58d395 2025-10-21 17:50:38,259 - DEBUG - Requesting: http://10.0.0.130:8082/route-target/cd4c8b59-ead3-4258-b68e-6a3da4a8658b 2025-10-21 17:50:38,270 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-10-21 17:50:38,271 - DEBUG - Requesting: http://10.0.0.130:8082/virtual-network/bf05741e-07e1-402a-8a8a-c0ecb68634c8 2025-10-21 17:50:38,288 - DEBUG - Requesting: http://10.0.0.130:8082/routing-instance/f3962afe-8e98-4bf6-bf8e-22961f58d395 2025-10-21 17:50:38,378 - INFO - Verified VN network id 11 for VN bf05741e-07e1-402a-8a8a-c0ecb68634c8 2025-10-21 17:50:38,379 - INFO - Verifications in API Server for VN ctest-vn4-64588331 passed 2025-10-21 17:50:38,379 - DEBUG - Requesting: http://10.0.0.130:8082/virtual-network/bf05741e-07e1-402a-8a8a-c0ecb68634c8 2025-10-21 17:50:38,392 - DEBUG - Requesting: http://10.0.0.130:8082/routing-instance/f3962afe-8e98-4bf6-bf8e-22961f58d395 2025-10-21 17:50:38,408 - DEBUG - Requesting: http://10.0.0.130:8082/routing-instance/f3962afe-8e98-4bf6-bf8e-22961f58d395 2025-10-21 17:50:38,421 - DEBUG - Requesting: http://10.0.0.130:8082/route-target/cd4c8b59-ead3-4258-b68e-6a3da4a8658b 2025-10-21 17:50:38,441 - DEBUG - Control-node 10.0.0.130 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-23408487:ctest-vn4-64588331', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-23408487', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '13764535508457832490', 'uuid-lslong': '9983003646927189192'}, 'enable': 'true', 'created': '2025-10-21T17:50:36', 'last-modified': '2025-10-21T17:50:37', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.971385'} 2025-10-21 17:50:38,452 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-10-21 17:50:38,452 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-64588331 passed 2025-10-21 17:50:38,453 - DEBUG - ====Verifying policy data for ctest-vn4-64588331 in API_Server ====== 2025-10-21 17:50:38,453 - DEBUG - Requesting: http://10.0.0.130:8082/domains 2025-10-21 17:50:38,462 - DEBUG - Requesting: http://10.0.0.130:8082/domain/a9b02489-17d2-4343-bae9-3201b5557307 2025-10-21 17:50:38,482 - DEBUG - Requesting: http://10.0.0.130:8082/project/8abf14f5-7b1d-4406-b6de-e1101335f437 2025-10-21 17:50:38,587 - DEBUG - Requesting: http://10.0.0.130:8082/virtual-network/bf05741e-07e1-402a-8a8a-c0ecb68634c8 2025-10-21 17:50:38,606 - DEBUG - ==>Verifying data for policy with id: 3ce3ff6b-7fba-4397-aac3-06ce3d9876f6, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-23408487', 'ctest-policy1-15175185'] 2025-10-21 17:50:38,606 - INFO - VN ctest-vn4-64588331 Policy verification: verify_vn_policy_in_api_server, status: True 2025-10-21 17:50:38,606 - DEBUG - Verifying the vn in opserver 2025-10-21 17:50:38,606 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-23408487:ctest-vn4-64588331 virtual network link through opserver 10.0.0.130 2025-10-21 17:50:38,607 - DEBUG - Requesting: http://10.0.0.130:8081/analytics/uves/virtual-networks 2025-10-21 17:50:38,974 - DEBUG - Requesting: http://10.0.0.130:8081/analytics/uves/virtual-networks 2025-10-21 17:50:39,123 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-23408487:ctest-vn4-64588331', 'href': 'http://10.0.0.130:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-23408487:ctest-vn4-64588331?flat'} 2025-10-21 17:50:39,123 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-23408487:ctest-vn4-64588331 is found in opserver 2025-10-21 17:50:39,136 - DEBUG - Do not have enough data to verify VN in agent 2025-10-21 17:50:39,142 - DEBUG - VRF ids for VN ctest-vn4-64588331: {} 2025-10-21 17:50:39,142 - DEBUG - ====Verifying data for ctest-policy1-15175185 in API_Server ====== 2025-10-21 17:50:39,143 - DEBUG - Requesting: http://10.0.0.130:8082/domains 2025-10-21 17:50:39,153 - DEBUG - Requesting: http://10.0.0.130:8082/domain/a9b02489-17d2-4343-bae9-3201b5557307 2025-10-21 17:50:39,177 - DEBUG - Requesting: http://10.0.0.130:8082/project/8abf14f5-7b1d-4406-b6de-e1101335f437 2025-10-21 17:50:39,286 - DEBUG - Requesting: http://10.0.0.130:8082/network-policy/3ce3ff6b-7fba-4397-aac3-06ce3d9876f6 2025-10-21 17:50:39,308 - INFO - Verified policy ctest-policy1-15175185 in API Server, Result: True 2025-10-21 17:50:39,308 - INFO - Done with setup and verification, moving onto test .. 2025-10-21 17:50:39,327 - INFO - Deleting VN ctest-vn4-64588331 2025-10-21 17:50:39,502 - DEBUG - Response for deleting network () 2025-10-21 17:50:39,502 - DEBUG - Requesting: http://10.0.0.130:8082/routing-instance/f3962afe-8e98-4bf6-bf8e-22961f58d395 2025-10-21 17:50:39,510 - DEBUG - Response Code: 404 2025-10-21 17:50:39,510 - DEBUG - Requesting: http://10.0.0.130:8082/domains 2025-10-21 17:50:39,518 - DEBUG - Requesting: http://10.0.0.130:8082/domain/a9b02489-17d2-4343-bae9-3201b5557307 2025-10-21 17:50:39,577 - DEBUG - Requesting: http://10.0.0.130:8082/project/8abf14f5-7b1d-4406-b6de-e1101335f437 2025-10-21 17:50:39,677 - INFO - Validated that VN ctest-vn4-64588331 is not found in API Server 2025-10-21 17:50:39,694 - DEBUG - VN ctest-vn4-64588331 is not present in Agent 10.0.0.130 2025-10-21 17:50:39,695 - INFO - Validated that VN ctest-vn4-64588331 is not in any agent 2025-10-21 17:50:39,732 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-64588331 info 2025-10-21 17:50:39,782 - INFO - Deleted policy ctest-policy1-15175185 2025-10-21 17:50:39,983 - DEBUG - policy ctest-policy1-15175185 is not found in API Server 2025-10-21 17:50:40,285 - DEBUG - No XMPP flaps were noticed during the test
2025-10-21 17:50:40,285 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:05]
2025-10-21 17:50:40,285 - INFO - -------------------------------------------------------------------------------- 2025-10-21 17:50:40,626 - DEBUG - No XMPP flaps were noticed during the test
2025-10-21 17:50:40,627 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:06]
2025-10-21 17:50:40,627 - INFO - -------------------------------------------------------------------------------- 2025-10-21 17:50:41,481 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-23408487, ID : 8abf14f5-7b1d-4406-b6de-e1101335f437