-
Notifications
You must be signed in to change notification settings - Fork 270
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
core: handle absent of lease SD when starting ha vm
This patch looks like a hack but as we don't have enough time to do that more cleanly for 4.5.3, we go this way in order to address a significant issue with disaster recovery: When registering an highly avilable VM on the secondary site and trying to start it, the latter operation may fail due to filtering hosts that didn't report a proper state for the storage domain on which the VM lease was created. The proposed solution is to add the VM to HaAutoStartVmsRunner so we would keep trying to start it in that case. Specifically, when we fail to find a host due to the filterng that is done by VmLeasesReadyFilterPolicyUnit on an attempt to start the VM by a request we get from outside (i.e., not internal execution), we switch the VM to Down state with exit reason that reflects an Error and then add it to the aforementioned runner service. Bug-Url: https://bugzilla.redhat.com/1974535 Signed-off-by: Arik Hadas <ahadas@redhat.com>
- Loading branch information
Showing
6 changed files
with
41 additions
and
2 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
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
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
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
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
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