2025-12-17 19:03:37,300 - INFO - Domain Default found not creating 2025-12-17 19:03:37,519 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-06787917 not found, creating it 2025-12-17 19:03:37,997 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-06787917, ID : de62203f-3f29-4e20-b002-f2da7e11eab6 2025-12-17 19:03:39,449 - INFO - ================================================================================ 2025-12-17 19:03:39,449 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-12-17 19:03:39,708 - DEBUG - Nothing to compare xmpp stats {'10.0.0.50': {'10.20.0.17': '0'}} with 2025-12-17 19:03:39,708 - INFO - Initial checks done. Running the testcase now 2025-12-17 19:03:39,708 - INFO - 2025-12-17 19:03:39,708 - INFO - ================================================================================ 2025-12-17 19:03:39,708 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-12-17 19:03:39,708 - 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-17 19:03:40,004 - DEBUG - Nothing to compare xmpp stats {'10.0.0.50': {'10.20.0.17': '0'}} with 2025-12-17 19:03:40,004 - INFO - Initial checks done. Running the testcase now 2025-12-17 19:03:40,004 - INFO - 2025-12-17 19:03:40,359 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-06787917:ctest-vn4-87773545, 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-06787917:ctest-vn4-87773545, 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-06787917:ctest-vn4-87773545, 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-06787917:ctest-vn4-87773545, 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-17 19:03:40,877 - DEBUG - Response for create_network : {'network': {'id': '09f73462-f888-4f1f-a0cf-86657804138f', 'name': 'ctest-vn4-87773545', 'tenant_id': 'de62203f3f294e20b002f2da7e11eab6', 'project_id': 'de62203f3f294e20b002f2da7e11eab6', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-06787917', 'ctest-vn4-87773545'], 'port_security_enabled': True, 'description': ''}} 2025-12-17 19:03:41,042 - DEBUG - Response for create_subnet : {'subnet': {'id': 'adbcfec2-10ee-43b4-834d-4ee4ee3be8e3', 'name': '', 'tenant_id': 'de62203f3f294e20b002f2da7e11eab6', 'network_id': '09f73462-f888-4f1f-a0cf-86657804138f', 'ip_version': 4, 'cidr': '44.241.142.0/26', 'allocation_pools': [{'start': '44.241.142.2', 'end': '44.241.142.62'}], 'gateway_ip': '44.241.142.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '44.241.142.2', 'tags': [], 'project_id': 'de62203f3f294e20b002f2da7e11eab6'}} 2025-12-17 19:03:41,215 - DEBUG - Response for create_subnet : {'subnet': {'id': '623d3958-f0a2-4525-9dae-9477dcd40bf8', 'name': '', 'tenant_id': 'de62203f3f294e20b002f2da7e11eab6', 'network_id': '09f73462-f888-4f1f-a0cf-86657804138f', 'ip_version': 6, 'cidr': '2b96:541:41ee:f7fc:313b:9b04::/96', 'allocation_pools': [{'start': '2b96:541:41ee:f7fc:313b:9b04:0:2', 'end': '2b96:541:41ee:f7fc:313b:9b04:ffff:fffe'}], 'gateway_ip': '2b96:541:41ee:f7fc:313b:9b04:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '2b96:541:41ee:f7fc:313b:9b04:0:2', 'tags': [], 'project_id': 'de62203f3f294e20b002f2da7e11eab6'}} 2025-12-17 19:03:41,235 - INFO - Created VN ctest-vn4-87773545 2025-12-17 19:03:41,287 - DEBUG - VN ctest-vn4-87773545 UUID is 09f73462-f888-4f1f-a0cf-86657804138f 2025-12-17 19:03:41,491 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '09f73462-f888-4f1f-a0cf-86657804138f', 'name': 'ctest-vn4-87773545', 'tenant_id': 'de62203f3f294e20b002f2da7e11eab6', 'project_id': 'de62203f3f294e20b002f2da7e11eab6', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['adbcfec2-10ee-43b4-834d-4ee4ee3be8e3', '623d3958-f0a2-4525-9dae-9477dcd40bf8'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-06787917', 'ctest-vn4-87773545'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-06787917', 'ctest-policy1-85286699']], 'subnet_ipam': [{'subnet_cidr': '44.241.142.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '2b96:541:41ee:f7fc:313b:9b04::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-12-17 19:03:41,651 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2025-12-17 19:03:41,947 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2025-12-17 19:03:41,979 - DEBUG - Requesting: http://10.0.0.50:8082/domain/d07efacc-620b-4f1c-9875-9cf04f425a79 2025-12-17 19:03:41,993 - DEBUG - Requesting: http://10.0.0.50:8082/project/de62203f-3f29-4e20-b002-f2da7e11eab6 2025-12-17 19:03:42,065 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/09f73462-f888-4f1f-a0cf-86657804138f 2025-12-17 19:03:42,078 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/09f73462-f888-4f1f-a0cf-86657804138f 2025-12-17 19:03:42,089 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/ceb80da6-da02-4ada-bace-8ae3b156e477 2025-12-17 19:03:42,096 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/ceb80da6-da02-4ada-bace-8ae3b156e477 2025-12-17 19:03:42,104 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/78d90980-5077-4427-83b6-8612798b7a36 2025-12-17 19:03:42,111 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-12-17 19:03:42,111 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/09f73462-f888-4f1f-a0cf-86657804138f 2025-12-17 19:03:42,121 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/ceb80da6-da02-4ada-bace-8ae3b156e477 2025-12-17 19:03:42,136 - INFO - Verified VN network id 11 for VN 09f73462-f888-4f1f-a0cf-86657804138f 2025-12-17 19:03:42,136 - INFO - Verifications in API Server for VN ctest-vn4-87773545 passed 2025-12-17 19:03:42,136 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/09f73462-f888-4f1f-a0cf-86657804138f 2025-12-17 19:03:42,146 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/ceb80da6-da02-4ada-bace-8ae3b156e477 2025-12-17 19:03:42,153 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/ceb80da6-da02-4ada-bace-8ae3b156e477 2025-12-17 19:03:42,161 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/78d90980-5077-4427-83b6-8612798b7a36 2025-12-17 19:03:42,173 - DEBUG - Control-node 10.0.0.50 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-06787917:ctest-vn4-87773545', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-06787917', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '718100265270005535', 'uuid-lslong': '11587628136610927503'}, 'enable': 'true', 'created': '2025-12-17T19:03:40', 'last-modified': '2025-12-17T19:03:41', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.708560'} 2025-12-17 19:03:42,179 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-12-17 19:03:42,179 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-87773545 passed 2025-12-17 19:03:42,179 - DEBUG - ====Verifying policy data for ctest-vn4-87773545 in API_Server ====== 2025-12-17 19:03:42,179 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2025-12-17 19:03:42,185 - DEBUG - Requesting: http://10.0.0.50:8082/domain/d07efacc-620b-4f1c-9875-9cf04f425a79 2025-12-17 19:03:42,196 - DEBUG - Requesting: http://10.0.0.50:8082/project/de62203f-3f29-4e20-b002-f2da7e11eab6 2025-12-17 19:03:42,271 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/09f73462-f888-4f1f-a0cf-86657804138f 2025-12-17 19:03:42,282 - DEBUG - ==>Verifying data for policy with id: 16c1366d-61e7-438d-9de5-953fa710d54a, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-06787917', 'ctest-policy1-85286699'] 2025-12-17 19:03:42,282 - INFO - VN ctest-vn4-87773545 Policy verification: verify_vn_policy_in_api_server, status: True 2025-12-17 19:03:42,282 - DEBUG - Verifying the vn in opserver 2025-12-17 19:03:42,283 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-06787917:ctest-vn4-87773545 virtual network link through opserver 10.0.0.50 2025-12-17 19:03:42,283 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks 2025-12-17 19:03:42,583 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks 2025-12-17 19:03:42,643 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-06787917:ctest-vn4-87773545', 'href': 'http://10.0.0.50:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-06787917:ctest-vn4-87773545?flat'} 2025-12-17 19:03:42,643 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-06787917:ctest-vn4-87773545 is found in opserver 2025-12-17 19:03:42,652 - DEBUG - Do not have enough data to verify VN in agent 2025-12-17 19:03:42,656 - DEBUG - VRF ids for VN ctest-vn4-87773545: {} 2025-12-17 19:03:42,657 - DEBUG - ====Verifying data for ctest-policy1-85286699 in API_Server ====== 2025-12-17 19:03:42,657 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2025-12-17 19:03:42,662 - DEBUG - Requesting: http://10.0.0.50:8082/domain/d07efacc-620b-4f1c-9875-9cf04f425a79 2025-12-17 19:03:42,673 - DEBUG - Requesting: http://10.0.0.50:8082/project/de62203f-3f29-4e20-b002-f2da7e11eab6 2025-12-17 19:03:42,743 - DEBUG - Requesting: http://10.0.0.50:8082/network-policy/16c1366d-61e7-438d-9de5-953fa710d54a 2025-12-17 19:03:42,753 - INFO - Verified policy ctest-policy1-85286699 in API Server, Result: True 2025-12-17 19:03:42,753 - INFO - Done with setup and verification, moving onto test .. 2025-12-17 19:03:42,761 - INFO - Deleting VN ctest-vn4-87773545 2025-12-17 19:03:42,893 - DEBUG - Response for deleting network () 2025-12-17 19:03:42,893 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/ceb80da6-da02-4ada-bace-8ae3b156e477 2025-12-17 19:03:42,898 - DEBUG - Response Code: 404 2025-12-17 19:03:42,899 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2025-12-17 19:03:42,904 - DEBUG - Requesting: http://10.0.0.50:8082/domain/d07efacc-620b-4f1c-9875-9cf04f425a79 2025-12-17 19:03:42,960 - DEBUG - Requesting: http://10.0.0.50:8082/project/de62203f-3f29-4e20-b002-f2da7e11eab6 2025-12-17 19:03:43,027 - INFO - Validated that VN ctest-vn4-87773545 is not found in API Server 2025-12-17 19:03:43,037 - DEBUG - VN ctest-vn4-87773545 is not present in Agent 10.0.0.50 2025-12-17 19:03:43,037 - INFO - Validated that VN ctest-vn4-87773545 is not in any agent 2025-12-17 19:03:43,052 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-87773545 info 2025-12-17 19:03:43,074 - INFO - Deleted policy ctest-policy1-85286699 2025-12-17 19:03:43,239 - DEBUG - policy ctest-policy1-85286699 is not found in API Server 2025-12-17 19:03:43,491 - DEBUG - No XMPP flaps were noticed during the test
2025-12-17 19:03:43,491 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04]
2025-12-17 19:03:43,492 - INFO - -------------------------------------------------------------------------------- 2025-12-17 19:03:43,780 - DEBUG - No XMPP flaps were noticed during the test
2025-12-17 19:03:43,780 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04]
2025-12-17 19:03:43,780 - INFO - -------------------------------------------------------------------------------- 2025-12-17 19:03:44,465 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-06787917, ID : de62203f-3f29-4e20-b002-f2da7e11eab6