Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Block on execution of ImportVmFromConfiguration #318

Merged
merged 2 commits into from
May 2, 2022

Conversation

ahadas
Copy link
Member

@ahadas ahadas commented Apr 28, 2022

we don't normally to this but in case of ImportVmFromConfiguration it makes
some sense to invoke it as a blocking (sync) operation since it doesn't involve
disk operation so if may only have async operation related to vm leases which are
relatively quick. The main reason to do this is that some backup applications
relied on getting Created response and can't cope with Accepted but it also makes
to do that because it is often the case that clients try to start the VM right
after the execution of ImportVmFromConfiguration is completed.

Bug-Url: https://bugzilla.redhat.com/2074112
Signed-off-by: Arik Hadas ahadas@redhat.com

@oliel
Copy link
Contributor

oliel commented May 2, 2022

I understand this is a unique case, and that it always makes sense to block, and that existing applications suffer from this. So it's fine by me, but please add a comment in ovirt-engien-api-model for this flow, that it is always performed with async=false and user has no way to select otherwise

@ahadas
Copy link
Member Author

ahadas commented May 2, 2022

@nyoxi I know it renders
the change you did in virt-v2v redundant but we need to do that in order to solve an issue with have with Veeam, can you please confirm that's the desired behavior also when it comes to virt-v2v?

@ahadas ahadas requested a review from nyoxi May 2, 2022 08:55
Copy link
Member

@nyoxi nyoxi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me. The change in virt-v2v is still useful for older RHV environments.

ahadas added 2 commits May 2, 2022 15:24
we don't normally to this but in case of ImportVmFromConfiguration it makes
some sense to invoke it as a blocking (sync) operation since it doesn't involve
disk operation so if may only have async operation related to vm leases which are
relatively quick. The main reason to do this is that some backup applications
relied on getting Created response and can't cope with Accepted but it also makes
to do that because it is often the case that clients try to start the VM right
after the execution of ImportVmFromConfiguration is completed.

Bug-Url: https://bugzilla.redhat.com/2074112
Signed-off-by: Arik Hadas <ahadas@redhat.com>
Set entity-info in the parameters of AddVmLease to avoid the pre-polling
period in case a VM with a lease is imported from configuration.

Bug-Url: https://bugzilla.redhat.com/2074112
Signed-off-by: Arik Hadas <ahadas@redhat.com>
@ahadas
Copy link
Member Author

ahadas commented May 2, 2022

/ost

@ahadas ahadas merged commit 0e2160d into oVirt:master May 2, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants