-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Description
problem
We had a vm that was migrated from host A to host B after putting host A into maintenance mode. The first attempt at maintenance mode had a Errorinmaintenance so maintenance was canceled and started again.
After maintenance was done and maintenance mode canceled on host A, host B was set in maintenance. This caused the vm to be migrated to host A again. Right after the migration to host A was finished Cloudstack attempted to migrate the vm to host B for maintenance. But due to host B being in maintenance the com.cloud.agent.api.PrepareForMigrationCommand failed with com.cloud.exception.AgentUnavailableException. This caused Cloudstack to stop the vm.
The time between maintenance cancel on Host A and the migrations of the vm was around 2 hours.
versions
Cloudstack 4.19.3
The steps to reproduce the bug
Currently trying to reproduce on our testing environment but the steps would be
- Host A: Put in maintenance
- Host A: Cancel maintenance
- Host A: Put in maintenance
- Host A: Wait for host to be in maintenance
- Host A: Cancel maintenance
- Host B: Put in maintenance
What to do about it?
We do not expect Cloudstack to stop the vm due to a failed prepare for migration.