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

do not check for storageconsumer when storagerequest is being deleted #2618

Merged
merged 1 commit into from
May 23, 2024

Conversation

leelavg
Copy link
Contributor

@leelavg leelavg commented May 17, 2024

there is a possibility that getting storageconsumer from cache would work even when the resource is deleted however if the event gets requeued then we will always hit failure while trying to get deleted resource after a cache sync.

with this commit we only check presence of storageconsumer if storagerequest is not being deleted as the deletion of storagerequest is generally triggered via owner references and storageconsumer is owner of storagerequest.

fix for https://bugzilla.redhat.com/show_bug.cgi?id=2280813

@leelavg
Copy link
Contributor Author

leelavg commented May 17, 2024

An alternate implementation is not doing a get on storageconsumer from storagerequest controller at all, that also seemed clean but didn't find strong reasons to prefer one over other.

@leelavg leelavg requested a review from nb-ohad May 17, 2024 12:46
@leelavg
Copy link
Contributor Author

leelavg commented May 17, 2024

/cherry-pick release-4.16

@openshift-cherrypick-robot

@leelavg: once the present PR merges, I will cherry-pick it on top of release-4.16 in a new PR and assign it to you.

In response to this:

/cherry-pick release-4.16

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-sigs/prow repository.

@leelavg
Copy link
Contributor Author

leelavg commented May 18, 2024

/hold

@openshift-ci openshift-ci bot added the do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. label May 18, 2024
@leelavg
Copy link
Contributor Author

leelavg commented May 19, 2024

/retest-required

@leelavg
Copy link
Contributor Author

leelavg commented May 20, 2024

/test ocs-operator-bundle-e2e-aws

there is a possibility that getting storageconsumer from cache would
work even when the resource is deleted however if the event gets
requeued then we will always hit failure while trying to get deleted
resource after a cache sync.

with this commit we only check presence of storageconsumer if
storagerequest is not being deleted as the deletion of storagerequest is
generally triggered via owner references and storageconsumer is owner
of storagerequest.

Signed-off-by: Leela Venkaiah G <lgangava@ibm.com>
@nb-ohad
Copy link
Contributor

nb-ohad commented May 23, 2024

/lgtm

@openshift-ci openshift-ci bot added the lgtm Indicates that a PR is ready to be merged. label May 23, 2024
Copy link
Contributor

openshift-ci bot commented May 23, 2024

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: leelavg, nb-ohad

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

@openshift-ci openshift-ci bot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label May 23, 2024
@leelavg
Copy link
Contributor Author

leelavg commented May 23, 2024

/unhold

@openshift-ci openshift-ci bot removed the do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. label May 23, 2024
@openshift-merge-bot openshift-merge-bot bot merged commit 9adb14d into red-hat-storage:main May 23, 2024
11 checks passed
@openshift-cherrypick-robot

@leelavg: new pull request created: #2626

In response to this:

/cherry-pick release-4.16

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-sigs/prow 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. lgtm Indicates that a PR is ready to be merged.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants