You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Host maintenance stops VMs without a VM.STOP event or alert #14894
When a host goes into maintenance and one of its VMs can't be moved off it, CloudStack stops that VM. Maintenance still succeeds. Nothing in events or alerts says the VM was stopped, so the owner usually finds out because their workload went down.
Case
What happens
Event / alert today
No other Up host in the cluster, migration not allowed, or vGPU offering
HA ForceStop work stops the VM
none
VM on local storage with host.maintenance.local.storage.strategy=ForceStop
HA ForceStop work stops the VM
none
Migration to the chosen host fails
orchestrateMigrateAway force-stops the VM
only a generic VM.MIGRATE error ("Unexpected exception ... migration"), no VM.STOP
User and out-of-band stops do record a VM.STOP event, so this is a gap only for stops caused by maintenance.
Steps to reproduce
Run a VM on a KVM host that is the only Up host in its cluster (or put the VM on local storage with the ForceStop strategy).
prepareHostForMaintenance on that host.
The host reaches Maintenance and the VM is Stopped. listEvents shows no VM.STOP for the VM, and listAlerts shows nothing.
Expected
A VM.STOP event against the VM's owner saying host maintenance stopped it, plus an alert.
Versions
4.22 (also main). KVM.
Related: #13189 stops orchestrateMigrateAway from force-stopping a VM when its migration fails, and retries the migration instead. With that change only the first two rows above can still stop a VM.
threat detection engine error
The threat detection engine encountered an error and could not complete analysis. This is a tooling failure, not a security finding.
What happened
The threat detection engine failed to produce results.
When host maintenance cannot move a VM off the host, CloudStack stops the VM through HA ForceStop work, or force-stops it after a failed migration. Maintenance still succeeds, and no VM.STOP event or alert is recorded. Users only learn of the stop when their workload goes down. Out-of-band and user stops do record VM.STOP, so the gap is limited to maintenance-driven stops.
📊 Assessment
Dimension
Value
Reasoning
Type
type:enhancement
Missing event and alert for a stop; behaviour is otherwise as designed
Component
component:management-server
Host maintenance and HA stop paths in the management server
Severity
n/a
Not a bug report; the stop itself is expected, the lack of notice is the gap
Labels
type:enhancement, component:management-server
Coding agent
Needs more info
Needs a decision on the event text and whether the alert is per VM or per host
Activity
github-actions commentedon Dec 2, 2026
Warning
threat detection engine error
The threat detection engine encountered an error and could not complete analysis. This is a tooling failure, not a security finding.
What happened
The threat detection engine failed to produce results.
Review the workflow run logs for details.
🎯 Triage report
When host maintenance cannot move a VM off the host, CloudStack stops the VM through HA
ForceStopwork, or force-stops it after a failed migration. Maintenance still succeeds, and noVM.STOPevent or alert is recorded. Users only learn of the stop when their workload goes down. Out-of-band and user stops do recordVM.STOP, so the gap is limited to maintenance-driven stops.📊 Assessment
🔗 Similar issues
orchestrateMigrateAwayfrom force-stopping a VM after a failed migration and retries instead💡 Notes and suggestions
prepareHostForMaintenance. ChecklistEventsforVM.STOP.Add this agentic workflow to your repo
To install this agentic workflow, run