Bug 1963207

Summary: [RFE] [External Mode] must-gather should collect additional details from cluster instead of skipping whole ceph collection
Product: [Red Hat Storage] Red Hat OpenShift Container Storage Reporter: Sidhant Agrawal <sagrawal>
Component: must-gatherAssignee: Gobinda Das <godas>
Status: CLOSED CURRENTRELEASE QA Contact: Tiffany Nguyen <tunguyen>
Severity: high Docs Contact:
Priority: unspecified    
Version: 4.8CC: etamir, muagarwa, nberry, ocs-bugs, rcyriac, rperiyas, sabose, tunguyen
Target Milestone: ---Keywords: AutomationTriaged, FutureFeature
Target Release: OCS 4.8.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: 4.8.0-446.ci Doc Type: No Doc Update
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2022-02-09 17:28:49 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 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?