containerized-data-importer icon indicating copy to clipboard operation
containerized-data-importer copied to clipboard

Fix flake where cross ns finalizer can't be removed

Open akalenyu opened this issue 2 years ago • 2 comments

Signed-off-by: Alex Kalenyuk [email protected]

What this PR does / why we need it: We fail to remove the finalizer because the mutating webhook validates source ns exists, but source ns might not be around anymore, and that is absolutely fine if DV is marked for deletion. The "offending" test case is [test_id:4960].

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: https://prow.ci.kubevirt.io/view/gs/kubevirt-prow/pr-logs/pull/kubevirt_containerized-data-importer/2363/pull-containerized-data-importer-e2e-ceph-gc/1552213098473984000 https://prow.ci.kubevirt.io/view/gs/kubevirt-prow/pr-logs/pull/kubevirt_containerized-data-importer/2381/pull-containerized-data-importer-e2e-ceph-gc/1555211218673733632 https://prow.ci.kubevirt.io/view/gs/kubevirt-prow/pr-logs/pull/kubevirt_containerized-data-importer/2371/pull-containerized-data-importer-e2e-ceph-gc/1553016969739898880

Release note:

NONE

akalenyu avatar Aug 10 '22 14:08 akalenyu

/test all

akalenyu avatar Aug 10 '22 20:08 akalenyu

How about a unit test making sure this is working as expected, like Should always accept mutate when dv is marked for deletion?

awels avatar Aug 17 '22 12:08 awels

How about a unit test making sure this is working as expected, like Should always accept mutate when dv is marked for deletion?

good idea, done

akalenyu avatar Aug 17 '22 13:08 akalenyu

/lgtm @mhenriks any other thoughts?

awels avatar Aug 17 '22 14:08 awels

/approve

mhenriks avatar Aug 17 '22 20:08 mhenriks

[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 avatar Aug 17 '22 20:08 kubevirt-bot