Bug 1890438 - collect rados objects created by cephcsi to store internal mapping
Summary: collect rados objects created by cephcsi to store internal mapping
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat OpenShift Data Foundation
Classification: Red Hat Storage
Component: must-gather
Version: unspecified
Hardware: Unspecified
OS: Unspecified
unspecified
medium
Target Milestone: ---
: ODF 4.9.0
Assignee: Mudit Agarwal
QA Contact: jpinto
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2020-10-22 08:24 UTC by Madhu Rajanna
Modified: 2023-08-09 16:35 UTC (History)
8 users (show)

Fixed In Version:
Doc Type: No Doc Update
Doc Text:
Clone Of:
Environment:
Last Closed: 2021-12-13 17:44:23 UTC
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Github red-hat-storage ocs-operator pull 1348 0 None open must-gather: collect rados objects created by cephcsi 2021-09-27 10:47:30 UTC
Github red-hat-storage ocs-operator pull 1349 0 None open Bug 1890438: [release-4.9] must-gather: collect rados objects created by cephcsi 2021-09-28 07:26:18 UTC
Github red-hat-storage ocs-operator pull 1398 0 None open must-gather: add listomapvals command for ceph rados 2021-11-02 14:13:22 UTC
Github red-hat-storage ocs-operator pull 1399 0 None open Bug 1890438: [release-4.9] must-gather: add listomapvals command for ceph rados 2021-11-08 12:35:29 UTC
Red Hat Product Errata RHSA-2021:5086 0 None None None 2021-12-13 17:44:44 UTC

Description Madhu Rajanna 2020-10-22 08:24:16 UTC
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

Comment 2 Mudit Agarwal 2020-10-22 08:28:46 UTC
Not a 4.6 blocker, lets fix it in 4.7 and then if required we can take it in 4.6.z

Comment 5 Mudit Agarwal 2021-02-08 13:21:00 UTC
Thanks Madhu.
Didn't get a chance to work on this, moving it to 4.8

Comment 10 Yuli Persky 2021-10-19 10:19:08 UTC
@Mudit Agarwal

Can you please add detailed steps for verification?

Comment 12 Yuli Persky 2021-10-27 11:33:07 UTC
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.

Comment 14 Yuli Persky 2021-10-27 14:15:03 UTC
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.

Comment 15 Mudit Agarwal 2021-10-28 03:29:47 UTC
Working on a fix.

Comment 17 Yuli Persky 2021-11-23 10:26:35 UTC
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.

Comment 19 errata-xmlrpc 2021-12-13 17:44:23 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 (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


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