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

[release-v1.59] Manual backport "Move size detection pod deletion to cleanup" #3629

Merged

Conversation

akalenyu
Copy link
Collaborator

@akalenyu akalenyu commented Feb 6, 2025

What this PR does / why we need it:
Manual backport of #3553

Which issue(s) this PR fixes (optional, in fixes #<issue number>(, fixes #<issue_number>, ...) format, will close the issue(s) when PR gets merged):
Fixes #

Special notes for your reviewer:

Release note:

BugFix: size-detection pod is not always cleaned after it completes

@kubevirt-bot kubevirt-bot added 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. labels Feb 6, 2025
* Correct check deciding whether to delete size detection pod

This is probably not the resolving many cases but it does look
like an oversight since the size detection pod's appearance
is triggered by the target clone request and not the source.

Signed-off-by: Alex Kalenyuk <akalenyu@redhat.com>

* Move size detection pod deletion to cleanup

Apparently it's possible that the size detection pod
will stick around even if the dv is succeeded/deleted.
I think this belongs in the cleanup loop anyway

Signed-off-by: Alex Kalenyuk <akalenyu@redhat.com>

* Fix datasource watch indexing

We slap on the index key regardless of source.PVC/source.Snapshot so
it was possible for a DV with PVC source to get queued for the snapshot controller
and trigger all sorts of fun nils.

Signed-off-by: Alex Kalenyuk <akalenyu@redhat.com>

* Add datasource watch in snapshot controller as well

This is also needed for snapshot clones, guess it just merged
around the time they were introduced.

Signed-off-by: Alex Kalenyuk <akalenyu@redhat.com>

* Add check for nil pointers post CI run

This should make it easier to spot obvious nil pointers
through CI runs.

Signed-off-by: Alex Kalenyuk <akalenyu@redhat.com>

---------

Signed-off-by: Alex Kalenyuk <akalenyu@redhat.com>
@akalenyu akalenyu force-pushed the delete-size-detection-59 branch from a76865d to c455f3d Compare February 6, 2025 11:42
Copy link
Contributor

@ShellyKa13 ShellyKa13 left a comment

Choose a reason for hiding this comment

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

/lgtm

@kubevirt-bot kubevirt-bot added the lgtm Indicates that a PR is ready to be merged. label Feb 9, 2025
@akalenyu
Copy link
Collaborator Author

/approve

@kubevirt-bot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: akalenyu

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 Feb 11, 2025
@kubevirt-bot kubevirt-bot merged commit 4ad036d into kubevirt:release-v1.59 Feb 11, 2025
9 of 10 checks passed
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.

3 participants