jmsperu commented on issue #8869:
URL: https://github.com/apache/cloudstack/issues/8869#issuecomment-7112427750
Lab check on 4.22.1.1 (KVM, Ubuntu 24.04, 2 hosts), with
ha.vm.restart.hostup=true, ping.interval=60, ping.timeout=2.5. One instance
with its ROOT volume on the local storage of host 2, compute offering without
HA. Host 2 was then rebooted from its own shell (a true reboot, boot time
changed).
| Time after the reboot | Host 2 | Instance (state / power state) | System
VMs on host 2 |
|---|---|---|---|
| before | Up | Running | Running |
| 40 s | Disconnected | Running (not updated) | down |
| 1.5 min | Up | Running | down |
| 2 min | Up | Stopped / PowerReportMissing | down |
| 3.5 min | Up | Stopped / PowerReportMissing | started again by CloudStack |
| up to 20 min | Up | Stopped / PowerReportMissing, never started | Running |
So the report reproduces: once the host is back, the first power report
marks the instance Stopped ("VM state report is updated", then network and
storage resources released, Running to Stopped), and nothing starts it again.
The system VMs on the same host are restarted within about 3 minutes.
Two notes:
- The instance cannot be given an HA offering as a way around this:
createServiceOffering with storagetype=local and offerha=true is refused ("HA
offering with local storage is not supported"). So for instances on local
storage, ha.vm.restart.hostup has nothing to act on.
- An earlier run where I only stopped the Agent and destroyed the libvirt
domain (no reboot) gave the same end state, Stopped / PowerReportMissing and no
restart.
Not tested: other hypervisors, and a host that stays down longer than the
ping timeout before it returns.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]