bhouse-nexthop commented on PR #13189: URL: https://github.com/apache/cloudstack/pull/13189#issuecomment-7250416022
Tested this on a KVM lab (4.22 plus this change), with the failure we hit in production: a destination host that can't mount the config-drive share on secondary storage, so `PrepareForMigration` fails. Host A goes into maintenance with 3 VMs; hosts B and C are the destinations. | Case | Without this change | With this change | |---|---|---| | Nothing broken | n/a | all 3 VMs migrate on the first attempt | | One destination broken | all 3 VMs stopped after one failed attempt; maintenance still reported success | each VM fails on the broken host, then migrates to the other one in the same round; no VM leaves Running, no VM.STOP | | Both destinations broken | n/a | VMs stay Running on host A (same libvirt domain ids, so not restarted); host goes to ErrorInMaintenance after the HA retries run out | Not tested: the case from the earlier comment where the request fails later on the agent (e.g. a MigrateCommand timeout that has already scheduled an HA restart). Looking at the code, the loop can retry on top of that scheduled restart; stopping the loop once a restart is scheduled might cover it. -- 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]
