Bug 1932400 - Namespacestore deletion takes 15 minutes
Summary: Namespacestore deletion takes 15 minutes
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat OpenShift Container Storage
Classification: Red Hat Storage
Component: Multi-Cloud Object Gateway
Version: 4.7
Hardware: Unspecified
OS: Unspecified
unspecified
high
Target Milestone: ---
: OCS 4.7.0
Assignee: Nimrod Becker
QA Contact: Ben Eli
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2021-02-24 15:07 UTC by Ben Eli
Modified: 2021-06-01 08:51 UTC (History)
6 users (show)

Fixed In Version: v4.7.0-281.ci
Doc Type: No Doc Update
Doc Text:
Clone Of:
Environment:
Last Closed: 2021-05-19 09:20:01 UTC
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Github noobaa noobaa-operator pull 559 0 None open namespace bucket will be normally deleted 2021-02-25 10:00:18 UTC
Github noobaa noobaa-operator pull 562 0 None open Backport to 5.7 2021-03-02 09:46:17 UTC
Red Hat Product Errata RHSA-2021:2041 0 None None None 2021-05-19 09:20:29 UTC

Description Ben Eli 2021-02-24 15:07:57 UTC
Description of problem (please be detailed as possible and provide log
snippests):
When trying to delete namespacestores quickly after deleting the buckets that were attached to them, they enter a Rejected state with the following error:
"DeleteNamespaceResourceAPI cannot complete because namespace store <name> has buckets attached"

Version of all relevant components (if applicable):
OCS 4.7.0-268.ci

Does this issue impact your ability to continue to work with the product
(please explain in detail what is the user impact)?
No

Is there any workaround available to the best of your knowledge?
Wait for a while, and retry the deletion

Rate from 1 - 5 the complexity of the scenario you performed that caused this
bug (1 - very simple, 5 - very complex)?
2

Can this issue reproducible?
Yes

Can this issue reproduce from the UI?
Unknown

If this is a regression, please provide more details to justify this:
N/A

Steps to Reproduce:
1. Create a namespacestore, bucketclass and OBC
2. Delete the OBC, bucketclass and namespacestore in that order, quickly, one after the other (within 3 seconds)
3. Check the status of the namespacestore by using `oc get namespacestore <name> -o yaml`


Actual results:
The error shows up and the deletion doesn't proceed

Expected results:
The deletion proceeds as expected

Additional info:

Comment 3 Ben Eli 2021-02-24 16:53:55 UTC
Live cluster - https://ocs4-jenkins-csb-ocsqe.apps.ocp4.prod.psi.redhat.com/job/qe-deploy-ocs-cluster/835/

$ get namespacestore
NAME                                       TYPE     PHASE      AGE
aws-ns-store-c2b7befc01444b7c9ff11f2f4bf   aws-s3   Rejected   14m
aws-ns-store-d595c2799e0e452f9aadb0c5bdd   aws-s3   Rejected   82s

I waited upwards of three hours in the previous cluster - the deletion wouldn't proceed unless I retry it.

Comment 13 Ben Eli 2021-03-04 12:12:37 UTC
Deletion is now instantaneous.

OCP 4.7.0-0.nightly-2021-02-22-210958
ocs-operator.v4.7.0-281.ci

Verified.

Comment 16 errata-xmlrpc 2021-05-19 09:20:01 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory (Moderate: Red Hat OpenShift Container Storage 4.7.0 security, bug fix, and enhancement update), and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHSA-2021:2041


Note You need to log in before you can comment on or make changes to this bug.