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

Allow image-upload to recover from PendingPopulation phase #10380

Merged

Conversation

alromeros
Copy link
Contributor

@alromeros alromeros commented Sep 5, 2023

What this PR does / why we need it:

This PR aims to fix virtctl image-upload so we allow DVs to recover from PendingPopulation phase, as we do with WaitForFirstConsumer.

This means that, if an image-upload command fails due to a DV being in PendingPopulation phase, we can call the command again after creating a consumer and the upload will continue as expected.

Which issue(s) this PR fixes:
Fixes # https://bugzilla.redhat.com/show_bug.cgi?id=2236060

Special notes for your reviewer:

We have two ways of fixing this, either in CDI by adding the missing annotations into the target PVC, or in virtctl by getting the PVC Prime and checking its annotations. We generally attempt to ignore populator logic outside CDI, but I think that adding the annotations into the target PVC is a worse idea since it can mess with the upload controller.

Release note:

Bugfix: Allow image-upload to recover from PendingPopulation phase

@kubevirt-bot
Copy link
Contributor

Skipping CI for Draft Pull Request.
If you want CI signal for your change, please convert it to an actual PR.
You can still manually trigger a test run with /test all

@kubevirt-bot kubevirt-bot added do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. release-note Denotes a PR that will be considered when it comes time to generate release notes. dco-signoff: yes Indicates the PR's author has DCO signed all their commits. size/M labels Sep 5, 2023
This commit fixes virtctl image-upload command so we allow recovering from PendingPopulation phase, as it did with WaitForFirstConsumer.

This means that, if an image-upload fails due to a DV being in PendingPopulation phase, we can call the command again after creating a consumer and the upload will continue as expected.

Signed-off-by: Alvaro Romero <alromero@redhat.com>
@alromeros alromeros force-pushed the improve-imageupload-populators branch from a1ffd3c to 7134205 Compare September 5, 2023 16:10
@kubevirt-bot kubevirt-bot added size/L and removed size/M labels Sep 5, 2023
@alromeros alromeros marked this pull request as ready for review September 5, 2023 16:14
@kubevirt-bot kubevirt-bot removed the do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. label Sep 5, 2023
@alromeros
Copy link
Contributor Author

/test pull-kubevirt-e2e-k8s-1.27-sig-compute

@aburdenthehand
Copy link
Contributor

/uncc @kbidarkar @EdDev @marceloamaral
/cc @mhenriks

@kubevirt-bot kubevirt-bot requested review from mhenriks and removed request for kbidarkar, marceloamaral and EdDev September 6, 2023 14:21
@mhenriks
Copy link
Member

mhenriks commented Sep 6, 2023

Very nice!

/lgtm
/approve

@kubevirt-bot kubevirt-bot added the lgtm Indicates that a PR is ready to be merged. label Sep 6, 2023
@kubevirt-bot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: mhenriks

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@kubevirt-bot kubevirt-bot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Sep 6, 2023
@kubevirt-bot kubevirt-bot merged commit ab74a09 into kubevirt:main Sep 7, 2023
33 of 36 checks passed
@alromeros
Copy link
Contributor Author

/cherry-pick release-1.0

@kubevirt-bot
Copy link
Contributor

@alromeros: new pull request created: #10397

In response to this:

/cherry-pick release-1.0

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved Indicates a PR has been approved by an approver from all required OWNERS files. dco-signoff: yes Indicates the PR's author has DCO signed all their commits. lgtm Indicates that a PR is ready to be merged. release-note Denotes a PR that will be considered when it comes time to generate release notes. size/L
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants