Hi Ricardo,

Set the last_host_id in vm_instance table to NULL.

-Jithin

From: Ricardo Pertuz <ricardo.per...@kuasar.co.INVALID>
Date: Monday, 1 May 2023 at 11:44 PM
To: users@cloudstack.apache.org <users@cloudstack.apache.org>
Subject: Virtual Machines not starting after upgrade to 4.18
Hi Community,

As part of upgrading to ACS 4.18 in our sandbox, everything went smoothly and 
we removed some KVM Hyps in the process. Now that we are trying to reboot some 
machines, the management server is giving us this error, like it is looking for 
a downed host, what alternative do I have to avoid this behavior and start the 
machines?

2023-05-01 13:00:04,675 DEBUG [c.c.d.DeploymentPlanningManagerImpl] 
(API-Job-Executor-2:ctx-4a417809 job-67468 ctx-6607eb32) (logid:a8eb35d8) 
Adding pods to avoid lists for non-explicit VM deployment: []
2023-05-01 13:00:04,675 DEBUG [c.c.d.DeploymentPlanningManagerImpl] 
(API-Job-Executor-2:ctx-4a417809 job-67468 ctx-6607eb32) (logid:a8eb35d8) 
Adding clusters to avoid lists for non-explicit VM deployment: []
2023-05-01 13:00:04,675 DEBUG [c.c.d.DeploymentPlanningManagerImpl] 
(API-Job-Executor-2:ctx-4a417809 job-67468 ctx-6607eb32) (logid:a8eb35d8) 
Adding hosts to avoid lists for non-explicit VM deployment: []
2023-05-01 13:00:04,675 DEBUG [c.c.d.DeploymentPlanningManagerImpl] 
(API-Job-Executor-2:ctx-4a417809 job-67468 ctx-6607eb32) (logid:a8eb35d8) 
DeploymentPlanner allocation algorithm: null
2023-05-01 13:00:04,675 DEBUG [c.c.d.DeploymentPlanningManagerImpl] 
(API-Job-Executor-2:ctx-4a417809 job-67468 ctx-6607eb32) (logid:a8eb35d8) 
Trying to allocate a host and storage pools from dc:1, pod:null,cluster:null, 
requested cpu: 4800, requested ram: (4.00 GB) 4294967296
2023-05-01 13:00:04,675 DEBUG [c.c.d.DeploymentPlanningManagerImpl] 
(API-Job-Executor-2:ctx-4a417809 job-67468 ctx-6607eb32) (logid:a8eb35d8) Is 
ROOT volume READY (pool already allocated)?: Yes
2023-05-01 13:00:04,678 DEBUG [c.c.d.DeploymentPlanningManagerImpl] 
(API-Job-Executor-2:ctx-4a417809 job-67468 ctx-6607eb32) (logid:a8eb35d8) 
Deploy avoids pods: [], clusters: [], hosts: []
2023-05-01 13:00:04,678 DEBUG [c.c.d.DeploymentPlanningManagerImpl] 
(API-Job-Executor-2:ctx-4a417809 job-67468 ctx-6607eb32) (logid:a8eb35d8) 
Deploy hosts with priorities {} , hosts have NORMAL priority by default
2023-05-01 13:00:04,678 DEBUG [c.c.d.DeploymentPlanningManagerImpl] 
(API-Job-Executor-2:ctx-4a417809 job-67468 ctx-6607eb32) (logid:a8eb35d8) This 
VM has last host_id specified, trying to choose the same host: 9
2023-05-01 13:00:04,682 ERROR [c.c.a.ApiAsyncJobDispatcher] 
(API-Job-Executor-2:ctx-4a417809 job-67468) (logid:a8eb35d8) Unexpected 
exception while executing 
org.apache.cloudstack.api.command.admin.vm.StartVMCmdByAdmin

 

Reply via email to