-
Notifications
You must be signed in to change notification settings - Fork 261
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
core: make register-vm a sync operation
In 38d5120 we've changed adding vm from configuration to be blocking/sync operations. Here we do the same for calls to register-vm for the same reason - this operation doesn't involve copying the disks, only add-lease is asynchronous and it is a relatively short operation, so the caller won't wait much and at the end of the call the vm is ready to be used. This is particularly important for disaster recovery as we try to start highly available vms right after registering them. It might have been better to change the disaster recovery scripts to specify async=false, but that would require more efforts. Bug-Url: https://bugzilla.redhat.com/1968433 Signed-off-by: Arik Hadas <ahadas@redhat.com>
- Loading branch information
Showing
4 changed files
with
25 additions
and
24 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