Bug 1963207 - [RFE] [External Mode] must-gather should collect additional details from cluster instead of skipping whole ceph collection
Summary: [RFE] [External Mode] must-gather should collect additional details from clus...
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Red Hat OpenShift Container Storage
Classification: Red Hat Storage
Component: must-gather
Version: 4.8
Hardware: Unspecified
OS: Unspecified
unspecified
high
Target Milestone: ---
: OCS 4.8.0
Assignee: Gobinda Das
QA Contact: Tiffany Nguyen
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2021-05-21 16:41 UTC by Sidhant Agrawal
Modified: 2022-02-09 17:28 UTC (History)
8 users (show)

Fixed In Version: 4.8.0-446.ci
Doc Type: No Doc Update
Doc Text:
Clone Of:
Environment:
Last Closed: 2022-02-09 17:28:49 UTC
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Github openshift ocs-operator pull 1220 0 None open must-gather: collect logs when external cluster is deplyed 2021-06-10 17:07:30 UTC
Github openshift ocs-operator pull 1243 0 None open Bug 1963207: [release-4.8] must-gather: collect ceph CR's logs when external cluster is deployed 2021-06-28 10:14:19 UTC
Github openshift ocs-operator pull 1258 0 None open must-gather: change file permission for gather_common_ceph_resources.… 2021-07-06 10:31:17 UTC
Github openshift ocs-operator pull 1261 0 None open Bug 1963207: [release-4.8] must-gather: change file permission for gather_common_ceph_resources.sh file 2021-07-06 13:45:35 UTC

Description Sidhant Agrawal 2021-05-21 16:41:49 UTC
Description of problem (please be detailed as possible and provide log
snippests):

Currently for External mode, the must-gather skips the whole ceph collection and therefore some details which are applicable for external mode are absent in the logs.

Listing out few things which I observed are missing but there might be some other additional things:
- ocs-external-storagecluster-cephcluster
- cephobjectstore
- cephobjectstoreuser

These details are useful in situations like mentioned in bug 1963134

Version of all relevant components (if applicable):
OCP: 4.8.0-0.nightly-2021-05-19-123944
OCS: ocs-operator.v4.8.0-399.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)?
1

Can this issue reproducible?
Yes

Can this issue reproduce from the UI?


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


Steps to Reproduce:
1. Deploy an OCP cluster 
2. Deploy OCS 4.8 in External mode
3. Run the command to collect must-gather 
   oc adm must-gather --image=quay.io/rhceph-dev/ocs-must-gather:latest-4.8
4. Check the logs

Actual results:
Check the description above

Expected results:
must-gather should all details applicable for external mode

Comment 4 Sidhant Agrawal 2021-06-07 10:50:22 UTC
In the list of missing items from the bug description:

```
- ocs-external-storagecluster-cephcluster
- cephobjectstore
- cephobjectstoreuser
```

I mentioned the resource name of first item ,i.e.,  "ocs-external-storagecluster-cephcluster" instead of it's kind 
The resource kind is "cephcluster" for the first item.

Also, adding answer to Rajat's query about 2nd storagecluster:
IF there is an external storage cluster, could there exist an internal storagecluster as well?

No, this is not allowed.
Refer to bug 1867400 for more details.

Comment 5 Mudit Agarwal 2021-06-14 09:48:46 UTC
Discussed with Pulkit/Rajat, not a 4.8 blocker and the posted PR needs some revamp which is not possible to do before dev freeze.
Moving it out.

Comment 11 Sahina Bose 2021-07-05 13:04:26 UTC
Rajat, are you working on this fix?


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