Bug 1858778 - Collect Events, StorageClass and InstallPlan information as part of OCS must-gather in OCS 4.5
Summary: Collect Events, StorageClass and InstallPlan information as part of OCS must...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat OpenShift Container Storage
Classification: Red Hat Storage
Component: must-gather
Version: 4.5
Hardware: Unspecified
OS: Unspecified
unspecified
high
Target Milestone: ---
: OCS 4.5.0
Assignee: Pulkit Kundra
QA Contact: Neha Berry
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2020-07-20 11:47 UTC by Neha Berry
Modified: 2020-09-23 09:04 UTC (History)
3 users (show)

Fixed In Version: 4.5.0-508.ci
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2020-09-15 10:18:18 UTC
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Github openshift ocs-operator pull 639 0 None closed must-gather: Add more resources to must-gather 2020-12-15 08:33:49 UTC
Github openshift ocs-operator pull 640 0 None closed Bug 1858778: release-4.5 must-gather: Add more resources to must-gather 2020-12-15 08:33:51 UTC
Red Hat Product Errata RHBA-2020:3754 0 None None None 2020-09-15 10:18:47 UTC

Description Neha Berry 2020-07-20 11:47:00 UTC
Description of problem (please be detailed as possible and provide log
snippests):
-------------------------------------------------------------

Recently in many bugs, it was seen that it was helpful to add some more details apart from the ones already part of must-gather:

1. "oc get events -n openshift-storage" 
2. oc get installplan -n openshift-storage (both in yaml and text if possible)
3. oc get sc -o yaml (text is already available under oc_output)



Version of all relevant components (if applicable):
------------------------------------------------------
OCS 4.5

Does this issue impact your ability to continue to work with the product
(please explain in detail what is the user impact)?
--------------------------------------------------------------
OCS 4.5 gets a new addition for a RGW Storageclass and also with independent Mode part of this release, it would be good to get complete details of the SC.

If one doesn't collect OCP must-gather, currently we do not get the Storageclasses in yaml format.



Steps to Reproduce:
1.Collect must-gather
 oc adm must-gather --image=quay.io/rhceph-dev/ocs-must-gather:latest-4.5
2. Check for the above details (if present or not)



Additional info:

Current must-gather for reference :  http://rhsqe-repo.lab.eng.blr.redhat.com/OCS/ocs-qe-bugs/bug-1858385-PVC-UI/must-gather-BS-created/

Comment 6 Michael Adam 2020-07-30 14:51:08 UTC
Contained in build https://ceph-jenkins.rhev-ci-vms.eng.rdu2.redhat.com/job/OCS%20Build%20Pipeline%204.5/75/  
4.5.0-508.ci

Comment 7 Neha Berry 2020-07-31 08:13:43 UTC
Hi Pulkit,

Thanks for fixing this BZ in OCS 4.5. Moving the BZ to verified state as requested changes are added to must-gather.


OCP version = 4.5.0-0.nightly-2020-07-30-213620
OCS  =ocs-operator.v4.5.0-508.ci

Command to collect must-gather = oc adm must-gather --image=quay.io/rhceph-dev/ocs-must-gather:latest-4.5


>>Confirmed the requested files are present (in AWS);

1. InstallPlans:

List - 
------------
$ ls -l ./oc_output
total 724

-rw-r--r--. 1 nberry nberry    128 Jul 31 13:10 get_installplan_-n_openshift-storage

Yamls: 
---------
$ ls -l ceph/namespaces/openshift-storage/operators.coreos.com/installplans/
total 300
-rwxr-xr-x. 1 nberry nberry 304448 Jul 31 13:11 install-gzqs8.yaml


2. oc get events from openshift-storage namespace

$ ls -l ./oc_output|grep event
-rw-r--r--. 1 nberry nberry 140529 Jul 31 13:10 get_events_-n_openshift-storage


3. StorageClass details

SC list 
----------

$ ls -l ./oc_output|grep get_sc
-rw-r--r--. 1 nberry nberry    684 Jul 31 13:10 get_sc

SC yaml
----------

$ ls -l ceph/cluster-scoped-resources/storage.k8s.io/storageclasses/
total 16
-rwxr-xr-x. 1 nberry nberry 1489 Jul 31 13:11 gp2.yaml
-rwxr-xr-x. 1 nberry nberry 1667 Jul 31 13:11 ocs-storagecluster-cephfs.yaml
-rwxr-xr-x. 1 nberry nberry 1827 Jul 31 13:11 ocs-storagecluster-ceph-rbd.yaml
-rwxr-xr-x. 1 nberry nberry  758 Jul 31 13:11 openshift-storage.noobaa.io.yaml


____________________________________________________________________

Independent Mode (ocs-operator.v4.5.0-508.ci)
-------------------
Storageclasses
-----------------------
ceph/cluster-scoped-resources/
ceph/cluster-scoped-resources/storage.k8s.io/
ceph/cluster-scoped-resources/storage.k8s.io/storageclasses/
ceph/cluster-scoped-resources/storage.k8s.io/storageclasses/ocs-external-storagecluster-ceph-rbd.yaml
ceph/cluster-scoped-resources/storage.k8s.io/storageclasses/ocs-external-storagecluster-ceph-rgw.yaml
ceph/cluster-scoped-resources/storage.k8s.io/storageclasses/ocs-external-storagecluster-cephfs.yaml
ceph/cluster-scoped-resources/storage.k8s.io/storageclasses/openshift-storage.noobaa.io.yaml
ceph/cluster-scoped-resources/storage.k8s.io/storageclasses/thin.yaml


InstallPlan and event

$ ls -l oc_output/
total 384
-rw-r--r--. 1 nberry nberry  52853 Jul 31 13:36 describe_nodes
-rw-r--r--. 1 nberry nberry 270034 Jul 31 13:36 describe_pods_-n_openshift-storage
-rw-r--r--. 1 nberry nberry   2648 Jul 31 13:36 get_clusterversion_-oyaml
-rw-r--r--. 1 nberry nberry    222 Jul 31 13:36 get_csv_-n_openshift-storage
-rw-r--r--. 1 nberry nberry  18491 Jul 31 13:36 get_events_-n_openshift-storage
-rw-r--r--. 1 nberry nberry   1435 Jul 31 13:36 get_infrastructures.config_-oyaml
-rw-r--r--. 1 nberry nberry    190 Jul 31 13:36 get_installplan_-n_openshift-storage
-rw-r--r--. 1 nberry nberry   1722 Jul 31 13:36 get_nodes_--show-labels
-rw-r--r--. 1 nberry nberry   2457 Jul 31 13:36 get_pods_-owide_-n_openshift-storage
-rw-r--r--. 1 nberry nberry   7694 Jul 31 13:36 get_pv
-rw-r--r--. 1 nberry nberry   6974 Jul 31 13:36 get_pvc_--all-namespaces
-rw-r--r--. 1 nberry nberry    862 Jul 31 13:36 get_sc
-rw-r--r--. 1 nberry nberry    119 Jul 31 13:36 get_subscription_-n_openshift-storage


$ cat oc_output/get_installplan_-n_openshift-storage
NAME            CSV                          APPROVAL    APPROVED
install-dvxt4   ocs-operator.v4.5.0-494.ci   Automatic   true
install-r6rt8   ocs-operator.v4.5.0-508.ci   Automatic   true



>>InstallPlan in yaml format

$ ls -l ceph/namespaces/openshift-storage/operators.coreos.com/
total 8
drwxr-xr-x. 2 nberry nberry 4096 Jul 31 13:37 clusterserviceversions
drwxr-xr-x. 2 nberry nberry 4096 Jul 31 13:37 installplans
[nberry@localhost must-gather.local.4265726877310802499]$ ls -l ceph/namespaces/openshift-storage/operators.coreos.com/installplans/
total 600
-rwxr-xr-x. 1 nberry nberry 304440 Jul 31 13:36 install-dvxt4.yaml
-rwxr-xr-x. 1 nberry nberry 304490 Jul 31 13:36 install-r6rt8.yaml

Comment 10 errata-xmlrpc 2020-09-15 10:18:18 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.