Bug 1940957 - Deletion of Rejected NamespaceStore is stuck even when target bucket and bucketclass are deleted
Summary: Deletion of Rejected NamespaceStore is stuck even when target bucket and buck...
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
medium
Target Milestone: ---
: OCS 4.7.0
Assignee: Romy Ayalon
QA Contact: Filip Balák
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2021-03-19 16:02 UTC by Filip Balák
Modified: 2021-05-19 09:21 UTC (History)
5 users (show)

Fixed In Version: 4.7.0-336.ci
Doc Type: No Doc Update
Doc Text:
Clone Of:
Environment:
Last Closed: 2021-05-19 09:20:45 UTC
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Github noobaa noobaa-operator pull 592 0 None closed fix for deleting namespacestore/backingstore reconciliation 2021-03-31 11:25:08 UTC
Github noobaa noobaa-operator pull 596 0 None closed Backport to 5.7 2021-03-31 11:25:06 UTC
Red Hat Product Errata RHSA-2021:2041 0 None None None 2021-05-19 09:21:13 UTC

Description Filip Balák 2021-03-19 16:02:12 UTC
Description of problem (please be detailed as possible and provide log
snippests):
User creates NamespaceStore and use it in bucketclass and Namespace bucket. User tries to delete the NamespaceStore but the Namespacestore becomes Rejected. User sees from messages in NamespaceStore yaml that the store is not deleted because it's used in bucket:
  DeleteNamespaceResourceAPI cannot complete because namespace store "aws-ns-store-e6f984d1b526484292723bdf557" has buckets attached

The NamespaceStore can not be deleted from UI (kebab menu is grey and unavailable) or from cli (command gets stuck and is not responding). When user deletes target bucket and bucketclass then the NamespaceStore is still stuck and still can not be deleted via UI or cli.

Version of all relevant components (if applicable):
ocs-operator.v4.7.0-286.ci

Is there any workaround available to the best of your knowledge?
When target_bucket in yaml is set to non-existent bucket (when in Rejeckted state) then deletion successfully continues.

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

Steps to Reproduce:
1. Create NamespaceStore.
2. Create Bucketclass that uses created NamespaceStore.
3. Create Namespace Bucket that uses created Bucketclass.
4. Try to delete the NamespaceStore.
5. Check status of NamespaStore.
6. Delete Namespace Bucket.
7. Delete Bucketclass.
Try to delete NamespaceStore again.

Actual results:
Command for NamespaceStore deletion is stuck. Conditions messages still show:
  DeleteNamespaceResourceAPI cannot complete because namespace store "<name of the NamespaceStore>" has buckets attached

Expected results:
When problem from Conditions status messages is resolved, deletion of NamespaceStore should be resumed or user should be able to initiate deletion again.

Additional info:

Comment 4 Filip Balák 2021-04-12 10:51:46 UTC
NamespaceStore deletion is resumed when bucket and bucketclass are deleted. --> VERIFIED

Tested with:
ocs-operator.v4.7.0-344.ci

Comment 7 errata-xmlrpc 2021-05-19 09:20:45 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.