Description of problem (please be detailed as possible and provide log snippests): Currently, OCS must-gather is not collecting the rados omap data created by the cephcsi for rbd and cephfs to store the internal mapping, it would be very helpful to capture all omap data created by cephcsi for debugging critical issues. if someone starts looking into it I can provide the steps to get this information
Not a 4.6 blocker, lets fix it in 4.7 and then if required we can take it in 4.6.z
Thanks Madhu. Didn't get a chance to work on this, moving it to 4.8
@Mudit Agarwal Can you please add detailed steps for verification?
I've created 2 pvcs ( rbd and cephfs) , run must-gather.sh and checked in logs-20211027-135044/ocs-must-gather-us/quay-io-ocs-dev-ocs-must-gather-sha256-e80bf1b1efcf66cfc0677599b89b9a8e3f4f329a6f0ce2828cac166b15984414/ceph/must_gather_commands rados_rbd_objects rados_cephfs_objects rados_ls_--pool=ocs-storagecluster-cephblockpool and also in the csi volumeHandle for each one of the PVCs and the correct information appears in each one of the files.
After Madhu's additional check it was found that with the changes in the tested build we still cannot identify the mapping between the PVC and rbd/cephfs volume if PVC/PV deleted Versions: OCP : 4.9.0-0.nightly-2021-10-27-045147 ocs-operator.v4.9.0 OpenShift Container Storage odf-operator.v4.9.0 OpenShift Data Foundation => the bug failed QA , changing the status to ASSIGNED.
Working on a fix.
It was tested on yulienv) [ypersky@ypersky ocs-ci]$ oc -n openshift-storage get csv NAME DISPLAY VERSION REPLACES PHASE mcg-operator.v4.9.0 NooBaa Operator 4.9.0 Succeeded ocs-operator.v4.9.0 OpenShift Container Storage 4.9.0 Succeeded odf-operator.v4.9.0 OpenShift Data Foundation 4.9.0 Succeeded (yulienv) [ypersky@ypersky ocs-ci]$ oc get csv,clusterversion NAME VERSION AVAILABLE PROGRESSING SINCE STATUS clusterversion.config.openshift.io/version 4.9.0-0.nightly-2021-11-22-085141 True False 13h Cluster version is 4.9.0-0.nightly-2021-11-22-085141 and verified along with Madhu that rados_rbd_objects contains the required mapping. Closing the bug as verified.
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 (Moderate: Red Hat OpenShift Data Foundation 4.9.0 enhancement, security, and bug fix 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/RHSA-2021:5086