Skip to content

Commit cdf2a11

Browse files
committed
CLOUDSTACK-5649: Vms are stopped and not migrated from a host when the
host is put in maintenance mode. The migrate flag wasn't set to true in the maintain answer. This caused cloudstack to not to schedule a migration work item for vms on the host. Made a change to set the migrate flag to true in migrate answer.
1 parent ea09c04 commit cdf2a11

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

plugins/hypervisors/hyperv/DotNet/ServerResource/HypervResource/HypervResourceController.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1200,6 +1200,7 @@ public JContainer MaintainCommand([FromBody]dynamic cmd)
12001200
object ansContent = new
12011201
{
12021202
result = true,
1203+
willMigrate = true,
12031204
details = "success - NOP for MaintainCommand",
12041205
_reconnect = false,
12051206
contextMap = contextMap

0 commit comments

Comments
 (0)