Title: Issue · GitHub
Open Graph Title: Issue · apache/cloudstack
X Title: Issue · apache/cloudstack
Description: Apache CloudStack is an opensource Infrastructure as a Service (IaaS) cloud computing platform - Issue · apache/cloudstack
Open Graph Description: Apache CloudStack is an opensource Infrastructure as a Service (IaaS) cloud computing platform - Issue · apache/cloudstack
X Description: Apache CloudStack is an opensource Infrastructure as a Service (IaaS) cloud computing platform - Issue · apache/cloudstack
Opengraph URL: https://github.com/apache/cloudstack
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Instance random get stopped while live migration triggered by host maintenance","articleBody":"While enabling maintenance mode i see random instances getting stopped while the host is evacuated, the majority is migrated without any issues. But sometimes i see a instance which should have been live migrated being stopped.\n\nthe management server says this\n\n`2026-04-13 10:26:54,986 INFO [c.c.h.HighAvailabilityManagerExtImpl] (HA-Worker-1:[ctx-7abbe53d, work-3314]) (logid:5ce65c99) Migration attempt: for VM VM instance {\"id\":4930,\"instanceName\":\"i-55-4930-VM\",\"state\":\"Running\",\"type\":\"User\",\"uuid\":\"cf19-00b6-465e-98f1-c63b4860498d\"}from host Host {\"id\":18,\"name\":\"XXXch02\",\"type\":\"Routing\",\"uuid\":\"dc51-a18d-4f7d-9a2e-7dfbb7a1b908\"}. Starting attempt: 1/5 times.\n2026-04-13 10:42:32,197 INFO [c.c.v.ClusteredVirtualMachineManagerImpl] (Work-Job-Executor-21:[ctx-1e4a3543, job-742712/job-743693, ctx-ff1f267b]) (logid:279e8d1b) Migrating VM instance {\"id\":4930,\"instanceName\":\"i-55-4930-VM\",\"state\":\"Running\",\"type\":\"User\",\"uuid\":\"cf19-00b6-465e-98f1-c63b4860498d\"} to Dest[Zone(Id)-Pod(Id)-Cluster(Id)-Host(Id)-Storage(Volume(Id|Type--\u003ePool(Id))] : Dest[Zone(3)-Pod(3)-Cluster(3)-Host(18)-Storage()]\n2026-04-13 10:42:32,349 WARN [c.c.v.ClusteredVirtualMachineManagerImpl] (Work-Job-Executor-21:[ctx-1e4a3543, job-742712/job-743693, ctx-ff1f267b]) (logid:279e8d1b) Unable to migrate VM instance {\"id\":4930,\"instanceName\":\"i-55-4930-VM\",\"state\":\"Running\",\"type\":\"User\",\"uuid\":\"cf19-00b6-465e-98f1-c63b4860498d\"} to Host {\"id\":18,\"name\":\"XXXch02\",\"type\":\"Routing\",\"uuid\":\"dc51-a18d-4f7d-9a2e-7dfbb7a1b908\"} due to [Resource [Host:18] is unreachable: Host 18: Operation timed out] com.cloud.exception.AgentUnavailableException: Resource [Host:18] is unreachable: Host 18: Operation timed out\n2026-04-13 10:43:27,247 INFO [c.c.r.ResourceManagerImpl] (AgentMonitor-1:[ctx-6e6b2b3f]) (logid:afd387b5) Attempting maintenance for Host {\"id\":21,\"name\":\"XXXch03\",\"type\":\"Routing\",\"uuid\":\"eacf-b3e7-4aa9-b4ae-ff5a41862c06\"} found pending migration for VM instance {\"id\":4930,\"instanceName\":\"i-55-4930-VM\",\"state\":\"Stopping\",\"type\":\"User\",\"uuid\":\"cf19-00b6-465e-98f1-c63b4860498d\"}.\n2026-04-13 10:43:40,248 ERROR [c.c.v.VmWorkJobHandlerProxy] (Work-Job-Executor-21:[ctx-1e4a3543, job-742712/job-743693, ctx-ff1f267b]) (logid:279e8d1b) Invocation exception, caused by: com.cloud.utils.exception.CloudRuntimeException: Unable to migrate VM instance {\"id\":4930,\"instanceName\":\"i-55-4930-VM\",\"state\":\"Running\",\"type\":\"User\",\"uuid\":\"cf19-00b6-465e-98f1-c63b4860498d\"}\n2026-04-13 10:43:40,248 INFO [c.c.v.VmWorkJobHandlerProxy] (Work-Job-Executor-21:[ctx-1e4a3543, job-742712/job-743693, ctx-ff1f267b]) (logid:279e8d1b) Rethrow exception com.cloud.utils.exception.CloudRuntimeException: Unable to migrate VM instance {\"id\":4930,\"instanceName\":\"i-55-4930-VM\",\"state\":\"Running\",\"type\":\"User\",\"uuid\":\"cf19-00b6-465e-98f1-c63b4860498d\"}\n2026-04-13 10:43:40,248 ERROR [c.c.v.VmWorkJobDispatcher] (Work-Job-Executor-21:[ctx-1e4a3543, job-742712/job-743693]) (logid:279e8d1b) Unable to complete AsyncJob {\"accountId\":1,\"cmd\":\"com.cloud.vm.VmWorkMigrateAway\",\"cmdInfo\":\"rO0ABXNyAB5jb20uY2xvdWQudm0uVm1Xb3JrTWlncmF0ZUF3YXmt4MX4jtcEmwIAAUoACXNyY0hvc3RJZHhyABNjb20uY2xvdWQudm0uVm1Xb3Jrn5m2VvAlZ2sCAARKAAlhY2NvdW50SWRKAAZ1c2VySWRKAAR2bUlkTAALaGFuZGxlck5hbWV0ABJMamF2YS9sYW5nL1N0cmluZzt4cAAAAAAAAAABAAAAAAAAAAEAAAAAAAATQnQAGVZpcnR1YWxNYWNoaW5lTWFuYWdlckltcGwAAAAAAAAAFQ\",\"cmdVersion\":0,\"completeMsid\":null,\"created\":\"Mon Apr 13 10:42:31 UTC 2026\",\"id\":743693,\"initMsid\":90520733699643,\"instanceId\":null,\"instanceType\":null,\"lastPolled\":null,\"lastUpdated\":null,\"processStatus\":0,\"removed\":null,\"result\":null,\"resultCode\":0,\"status\":\"IN_PROGRESS\",\"userId\":1,\"uuid\":\"1401-8cf9-4276-ab57-c6a844371dd2\"}, job origin: 742712 com.cloud.utils.exception.CloudRuntimeException: Unable to migrate VM instance {\"id\":4930,\"instanceName\":\"i-55-4930-VM\",\"state\":\"Running\",\"type\":\"User\",\"uuid\":\"cf19-00b6-465e-98f1-c63b4860498d\"}`\n\ni would expect to just leave the instance alone up and running on its origin host and trigger a failure for the maintenance mode. \n\n### versions\n\nACS 4.22\nUbuntu 24.04\nKVM\n\n","author":{"url":"https://github.com/jgotteswinter","@type":"Person","name":"jgotteswinter"},"datePublished":"2026-04-13T11:18:52.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":5},"url":"https://github.com/13010/cloudstack/issues/13010"}
| route-pattern | /:user_id/:repository/issues/:id(.:format) |
| route-controller | issues |
| route-action | show |
| fetch-nonce | v2:c5b429cd-a63d-e684-4987-0a2479b8972d |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 9794:C61B2:7C6CBD:B181D2:6A4CB0E7 |
| html-safe-nonce | ae6fabd71e55647997ba55643d60433a045704d333db8f02b10034f08774745b |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5Nzk0OkM2MUIyOjdDNkNCRDpCMTgxRDI6NkE0Q0IwRTciLCJ2aXNpdG9yX2lkIjoiMTM3ODE2OTMyNjc2NzIyMzAxNSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | dbafbd635f2b0d554b22927027a1fbdd663a0dbf55c490d0671b995e77bf4847 |
| hovercard-subject-tag | repository:9759448 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/apache/cloudstack/issues/13010 |
| twitter:image | https://opengraph.githubassets.com/4efb6314bc27dddac041f6e354df06cbe8fea52322e8aebb6af56687e6d62307/apache/cloudstack |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/4efb6314bc27dddac041f6e354df06cbe8fea52322e8aebb6af56687e6d62307/apache/cloudstack |
| og:image:alt | Apache CloudStack is an opensource Infrastructure as a Service (IaaS) cloud computing platform - Issue · apache/cloudstack |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | 3d11bb817438277de2a940854450e83a7d32b6aeb5014e9e6b00a6423900251c |
| turbo-cache-control | no-cache |
| go-import | github.com/apache/cloudstack git https://github.com/apache/cloudstack.git |
| octolytics-dimension-user_id | 47359 |
| octolytics-dimension-user_login | apache |
| octolytics-dimension-repository_id | 9759448 |
| octolytics-dimension-repository_nwo | apache/cloudstack |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 9759448 |
| octolytics-dimension-repository_network_root_nwo | apache/cloudstack |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | ae90d426644ca15e89bacceb72e51f4e9dbf85f7 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width