Bug 1833880 - [RFE] OCS must-gather should collect noobaa obc list in raw output
Summary: [RFE] OCS must-gather should collect noobaa obc list in raw output
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat OpenShift Container Storage
Classification: Red Hat Storage
Component: must-gather
Version: 4.4
Hardware: Unspecified
OS: Unspecified
unspecified
medium
Target Milestone: ---
: OCS 4.5.0
Assignee: Pulkit Kundra
QA Contact: Yosi Ben Shimon
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2020-05-11 06:18 UTC by Prasad Desala
Modified: 2020-09-15 10:17 UTC (History)
8 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2020-09-15 10:17:01 UTC
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Github openshift ocs-operator pull 588 0 None closed Fix a bad substitution 2020-09-10 07:22:13 UTC
Github openshift ocs-operator pull 606 0 None closed Bug 1833880: [release-4.5] Fix a bad substitution 2020-09-10 07:22:13 UTC
Red Hat Product Errata RHBA-2020:3754 0 None None None 2020-09-15 10:17:23 UTC

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


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