Bug 1833880

Summary: [RFE] OCS must-gather should collect noobaa obc list in raw output
Product: [Red Hat Storage] Red Hat OpenShift Container Storage Reporter: Prasad Desala <tdesala>
Component: must-gatherAssignee: Pulkit Kundra <pkundra>
Status: CLOSED ERRATA QA Contact: Yosi Ben Shimon <ybenshim>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 4.4CC: assingh, edonnell, hnallurv, madam, ocs-bugs, pkundra, ratamir, sabose
Target Milestone: ---Keywords: FutureFeature
Target Release: OCS 4.5.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2020-09-15 10:17:01 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Prasad Desala 2020-05-11 06:18:52 UTC
Description of problem (please be detailed as possible and provide log
snippests):
=================================================================================
Why this RFE needed:
Currently ocs must-gather is collecting OBCs only in the yaml format. It can be difficult and time consuming for someone who wants to know the details of all OBCs present on the cluster as we need to go through each and every yamls named with bucket name (eg oc-bucket-6239c9a1965549049f2c6162f216a309.yaml)

What are the Benefits:
If we start collecting the obc raw output we can have following benefits, 
- We can easily see what are all obcs are present and its various parameters like namespace, bucket-name, its phase etc
- Using this collective information it will be easy to replicate and build similar configurations in tests.


Version of all relevant components (if applicable):
ocs-olm-operator:4.4.0-416.ci

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


Is there any workaround available to the best of your knowledge?


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


Can this issue reproducible?


Can this issue reproduce from the UI?


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


Steps to Reproduce:
===================
1) Create an OCS setup.
2) Create noobaa OBCs in different namespaces.
3) Collect OCS must-gather.

Actual results:
===============
ocs mus-gather collects noobaa obcs in yaml format.

Expected results:
=================
ocs mus-gather should collect noobaa obc list in raw output. Also it should collect from all namespaces.
Additional info:

Comment 4 Sahina Bose 2020-05-27 13:22:40 UTC
Raz, can you ack this for 4.5?

Comment 5 Raz Tamir 2020-05-27 13:23:45 UTC
acked

Comment 8 Michael Adam 2020-07-03 06:45:30 UTC
One more patch needed: https://github.com/openshift/ocs-operator/pull/588

Comment 9 Michael Adam 2020-07-03 07:07:40 UTC
https://github.com/openshift/ocs-operator/pull/606

backport PR

Comment 13 Yosi Ben Shimon 2020-08-06 07:47:13 UTC
Tested on:
4.5.0-0.nightly-2020-08-06-014216

Created a new namespace with Nooba OBC using the UI.

Collected the must-gather logs using:
oc adm must-gather --image=quay.io/rhceph-dev/ocs-must-gather:latest-4.5

The collection includes the newly created project OBC yaml as expected.
For example, the collection had the Nooba OBC yaml in this location:

<must_gather_logs_dir>/must-gather.local.1347373263558629025/quay-io-rhceph-dev-ocs-must-gather-sha256-2768a5eb6162307681d8dc35fc431c5a59a71cac1b7de98e7bdef851431a9ba3/namespaces/yosi-proj-bz-1833880/objectbucket.io/objectbucketclaims/yosi-obc-bz-1833880.yaml

Moving to VERIFIED

Comment 16 errata-xmlrpc 2020-09-15 10:17: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 (Red Hat OpenShift Container Storage 4.5.0 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/RHBA-2020:3754