GitHub user GerorgeEG closed a discussion: ACS is not able to restart VM during 
HA process

### problem

We are testing HA and shutting down the KVM hypervisor through BMC, host status 
changed to down and ACS tried to start VM on another host but it gets failed.

### versions

ACS Version : 4.19.1.2

KVM : RHEL 8

Storage : NFS v3



### The steps to reproduce the bug

1. Shut down the KVM hypervisor through BMC.
2.Both host and VM is HA enabled
3.  Wait for the status of hosts to change to down
4. ACS tries to start VM but getting failed.

Below is the log 
=========
2025-02-18 02:33:48,554 DEBUG [c.c.c.CapacityManagerImpl] 
(Work-Job-Executor-3:ctx-dae42fc9 job-17413/job-17446 ctx-06b6ee00) 
(logid:6675dfa0) VM instance 
{"id":541,"instanceName":"i-19-541-VM","type":"User","uuid":"130c856a-d5e4-4745-9a6a-c41c2508573a"}
 state transited from [Starting] to [Stopped] with event [OperationFailed]. 
VM's original host: Host {"id":85,"name":" host1.xx.xxx.xxx 
","type":"Routing","uuid":"804bcf95-e073-462e-810a-aa64e85c78bd"}, new host: 
null, host before state transition: Host 
{"id":127,"name":"host2.xx.xxx.xxx","type":"Routing","uuid":"a9698e0c-9c63-4392-ae28-b7dbdceffd9d"}
 
2025-02-18 02:33:48,580 ERROR [c.c.v.VmWorkJobHandlerProxy] 
(Work-Job-Executor-3:ctx-dae42fc9 job-17413/job-17446 ctx-06b6ee00) 
(logid:6675dfa0) Invocation exception, caused by: 
com.cloud.exception.InsufficientServerCapacityException: Unable to create a 
deployment for VM instance 
{"id":541,"instanceName":"i-19-541-VM","type":"User","uuid":"130c856a-d5e4-4745-9a6a-c41c2508573a"}Scope=interface
 com.cloud.dc.DataCenter; id=1

2025-02-18 02:33:48,580 INFO  [c.c.v.VmWorkJobHandlerProxy] 
(Work-Job-Executor-3:ctx-dae42fc9 job-17413/job-17446 ctx-06b6ee00) 
(logid:6675dfa0) Rethrow exception 
com.cloud.exception.InsufficientServerCapacityException: Unable to create a 
deployment for VM instance 
{"id":541,"instanceName":"i-19-541-VM","type":"User","uuid":"130c856a-d5e4-4745-9a6a-c41c2508573a"}Scope=interface
 com.cloud.dc.DataCenter; id=1
 
com.cloud.exception.InsufficientServerCapacityException: Unable to create a 
deployment for VM instance 
{"id":541,"instanceName":"i-19-541-VM","type":"User","uuid":"130c856a-d5e4-4745-9a6a-c41c2508573a"}Scope=interface
 com.cloud.dc.DataCenter; id=1
 
2025-02-18 02:33:48,639 WARN  [c.c.h.HighAvailabilityManagerImpl] 
(HA-Worker-2:ctx-10bdb53f work-1129) (logid:2a0083a1) Unable to restart VM 
instance 
{"id":541,"instanceName":"i-19-541-VM","type":"User","uuid":"130c856a-d5e4-4745-9a6a-c41c2508573a"}
 due to Unable to create a deployment for VM instance 
{"id":541,"instanceName":"i-19-541-VM","type":"User","uuid":"130c856a-d5e4-4745-9a6a-c41c2508573a"}



### What to do about it?

we need HA functionality to make sure VM gets restarted in case of KVM host 
getting down due to any issue. 

GitHub link: https://github.com/apache/cloudstack/discussions/10690

----
This is an automatically sent email for users@cloudstack.apache.org.
To unsubscribe, please send an email to: users-unsubscr...@cloudstack.apache.org

Reply via email to