forked from xapi-project/xen-api
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
CA-111637: Reorder Hosts and VMs recovery after a host crash in HA.
When some hosts are considered dead in HA, restart_auto_run_vms were processing them in this way: - for each dead host - List all resident VMs - Host.set_live=false - call Xapi_hooks.host_post_declare_dead which can be very long - set all resident VM to `Halted (including Control Domain) This process was conflicting with db_sync if a host had the bad taste of coming back to life while restart_auto_run_vms was stuck in host_post_declare_dead. This commit reorder the actions to put the shortest first: - for each dead host - set all resident VMs excluding Control Domain to `Halted - Host.set_live=false - for each dead host - call Xapi_hooks.host_post_declare_dead Signed-off-by: Jerome Maloberti <jerome.maloberti@citrix.com>
- Loading branch information
Jerome Maloberti
committed
Sep 10, 2013
1 parent
ac177a4
commit 8d5aef0
Showing
1 changed file
with
47 additions
and
47 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters