Bug 2069812 - must-gather: rbd_vol_and_snap_info collection is broken
Summary: must-gather: rbd_vol_and_snap_info collection is broken
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat OpenShift Data Foundation
Classification: Red Hat Storage
Component: must-gather
Version: 4.10
Hardware: Unspecified
OS: Unspecified
urgent
unspecified
Target Milestone: ---
: ODF 4.11.0
Assignee: yati padia
QA Contact: Oded
URL:
Whiteboard:
Depends On:
Blocks: 2101743
TreeView+ depends on / blocked
 
Reported: 2022-03-29 18:36 UTC by Ilya Dryomov
Modified: 2023-08-09 16:35 UTC (History)
7 users (show)

Fixed In Version: 4.11.0-66
Doc Type: No Doc Update
Doc Text:
Clone Of:
: 2101743 (view as bug list)
Environment:
Last Closed: 2022-08-24 13:49:54 UTC
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Github red-hat-storage ocs-operator pull 1611 0 None open must-gather: separate collection of rbd_vol and snap info 2022-03-30 03:42:00 UTC
Red Hat Product Errata RHSA-2022:6156 0 None None None 2022-08-24 13:51:12 UTC

Comment 16 Oded 2022-06-27 12:34:20 UTC
Hi Yati, 
I created 2 snapshots on my cluster [fs+rbd] and I dont find any diffrence on rbd_vol_and_snap_info file


SetUp:
OCP version: 4.11.0-0.nightly-2022-06-06-025509
ODF Version: full_version=4.11.0-91
Ceph Versions: 
sh-4.4$ ceph versions
{
    "mon": {
        "ceph version 16.2.8-35.el8cp (0f048f1c4899e094dd66d2afe470c53441cc67ff) pacific (stable)": 3
    },
    "mgr": {
        "ceph version 16.2.8-35.el8cp (0f048f1c4899e094dd66d2afe470c53441cc67ff) pacific (stable)": 1
    },
    "osd": {
        "ceph version 16.2.8-35.el8cp (0f048f1c4899e094dd66d2afe470c53441cc67ff) pacific (stable)": 5
    },
    "mds": {
        "ceph version 16.2.8-35.el8cp (0f048f1c4899e094dd66d2afe470c53441cc67ff) pacific (stable)": 2
    },
    "rgw": {
        "ceph version 16.2.8-35.el8cp (0f048f1c4899e094dd66d2afe470c53441cc67ff) pacific (stable)": 1
    },
    "overall": {
        "ceph version 16.2.8-35.el8cp (0f048f1c4899e094dd66d2afe470c53441cc67ff) pacific (stable)": 12
    }
}


$ oc get VolumeSnapshot -n oded-test
NAME                READYTOUSE   SOURCEPVC   SOURCESNAPSHOTCONTENT   RESTORESIZE   SNAPSHOTCLASS                               SNAPSHOTCONTENT                                    CREATIONTIME   AGE
oded-fs-snapshot    true         oded-fs                             1Gi           ocs-storagecluster-cephfsplugin-snapclass   snapcontent-56868852-b183-48ef-aada-b3b7312c43e1   49m            49m
oded-rbd-snapshot   true         oded-rbd                            2Gi           ocs-storagecluster-rbdplugin-snapclass      snapcontent-d74cfe66-d959-4f7e-b9fd-19c544b6eea3   48m            48m

$ oc get pvc -n oded-test
NAME       STATUS   VOLUME                                     CAPACITY   ACCESS MODES   STORAGECLASS                  AGE
oded-fs    Bound    pvc-2936ef9f-b3ea-411f-ba9d-d3a78b4a4c27   1Gi        RWO            ocs-storagecluster-cephfs     50m
oded-rbd   Bound    pvc-71cff0e3-a369-4f5a-8a94-66f1113a3466   2Gi        RWO            ocs-storagecluster-ceph-rbd   49m


$ cat rbd_vol_and_snap_info
Collecting image and snap info for images in: ocs-storagecluster-cephblockpool
Collecting image info for: ocs-storagecluster-cephblockpool/csi-snap-c5345145-f60c-11ec-99a5-0a580a830015
rbd image 'csi-snap-c5345145-f60c-11ec-99a5-0a580a830015':
	size 2 GiB in 512 objects
	order 22 (4 MiB objects)
	snapshot_count: 1
	id: f1b9cd00d5cef
	block_name_prefix: rbd_data.f1b9cd00d5cef
	format: 2
	features: layering, deep-flatten, operations
	op_features: clone-child
	flags: 
	create_timestamp: Mon Jun 27 11:32:05 2022
	access_timestamp: Mon Jun 27 11:32:05 2022
	modify_timestamp: Mon Jun 27 11:32:05 2022
	parent: ocs-storagecluster-cephblockpool/csi-vol-be6e8187-f60c-11ec-99a5-0a580a830015@b8521214-f946-45ae-aa08-8155331f203c
	overlap: 2 GiB
Collecting snap info for: ocs-storagecluster-cephblockpool/csi-snap-c5345145-f60c-11ec-99a5-0a580a830015
SNAPID  NAME                                           SIZE   PROTECTED  TIMESTAMP                 NAMESPACE
    29  csi-snap-c5345145-f60c-11ec-99a5-0a580a830015  2 GiB             Mon Jun 27 11:32:06 2022  user     
Collecting image info for: ocs-storagecluster-cephblockpool/csi-vol-78612d94-e7ec-11ec-a6cf-0a580a810290
rbd image 'csi-vol-78612d94-e7ec-11ec-a6cf-0a580a810290':
	size 50 GiB in 12800 objects
	order 22 (4 MiB objects)
	snapshot_count: 0
	id: 1455ede39d2d
	block_name_prefix: rbd_data.1455ede39d2d
	format: 2
	features: layering, exclusive-lock, object-map, fast-diff, deep-flatten
	op_features: 
	flags: 
	create_timestamp: Thu Jun  9 12:05:35 2022
	access_timestamp: Thu Jun  9 12:05:35 2022
	modify_timestamp: Thu Jun  9 12:05:35 2022
Collecting snap info for: ocs-storagecluster-cephblockpool/csi-vol-78612d94-e7ec-11ec-a6cf-0a580a810290
Collecting image info for: ocs-storagecluster-cephblockpool/csi-vol-be6e8187-f60c-11ec-99a5-0a580a830015
rbd image 'csi-vol-be6e8187-f60c-11ec-99a5-0a580a830015':
	size 2 GiB in 512 objects
	order 22 (4 MiB objects)
	snapshot_count: 1
	id: f1b9c2d270f58
	block_name_prefix: rbd_data.f1b9c2d270f58
	format: 2
	features: layering, exclusive-lock, object-map, fast-diff, deep-flatten, operations
	op_features: clone-parent, snap-trash
	flags: 
	create_timestamp: Mon Jun 27 11:31:53 2022
	access_timestamp: Mon Jun 27 11:31:53 2022
	modify_timestamp: Mon Jun 27 11:31:53 2022
Collecting snap info for: ocs-storagecluster-cephblockpool/csi-vol-be6e8187-f60c-11ec-99a5-0a580a830015
SNAPID  NAME                                  SIZE   PROTECTED  TIMESTAMP                 NAMESPACE                                            
    28  b8521214-f946-45ae-aa08-8155331f203c  2 GiB             Mon Jun 27 11:32:05 2022  trash (csi-snap-c5345145-f60c-11ec-99a5-0a580a830015)
Collecting image info for: ocs-storagecluster-cephblockpool/csi-vol-eee3efd1-e891-11ec-a6cf-0a580a810290
rbd image 'csi-vol-eee3efd1-e891-11ec-a6cf-0a580a810290':
	size 10 GiB in 2560 objects
	order 22 (4 MiB objects)
	snapshot_count: 0
	id: c702567a133f
	block_name_prefix: rbd_data.c702567a133f
	format: 2
	features: layering, exclusive-lock, object-map, fast-diff, deep-flatten
	op_features: 
	flags: 
	create_timestamp: Fri Jun 10 07:50:01 2022
	access_timestamp: Fri Jun 10 07:50:01 2022
	modify_timestamp: Fri Jun 10 07:50:01 2022
Collecting snap info for: ocs-storagecluster-cephblockpool/csi-vol-eee3efd1-e891-11ec-a6cf-0a580a810290
Collecting image info for: ocs-storagecluster-cephblockpool/csi-vol-f0c7f425-e891-11ec-a6cf-0a580a810290
rbd image 'csi-vol-f0c7f425-e891-11ec-a6cf-0a580a810290':
	size 10 GiB in 2560 objects
	order 22 (4 MiB objects)
	snapshot_count: 0
	id: c70244be5e6
	block_name_prefix: rbd_data.c70244be5e6
	format: 2
	features: layering, exclusive-lock, object-map, fast-diff, deep-flatten
	op_features: 
	flags: 
	create_timestamp: Fri Jun 10 07:50:04 2022
	access_timestamp: Fri Jun 10 07:50:04 2022
	modify_timestamp: Fri Jun 10 07:50:04 2022
Collecting snap info for: ocs-storagecluster-cephblockpool/csi-vol-f0c7f425-e891-11ec-a6cf-0a580a810290

Comment 17 yati padia 2022-06-27 12:58:08 UTC
These details we can see in namespaces/all/ directory. The rbd_vol_and_snap_info is for images and snap details for a particular blockpool.

Comment 18 Oded 2022-07-05 10:18:49 UTC
Based on the comment https://bugzilla.redhat.com/show_bug.cgi?id=2069812#c16 move to verified state

Comment 22 errata-xmlrpc 2022-08-24 13:49:54 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 (Important: Red Hat OpenShift Data Foundation 4.11.0 security, enhancement, & bugfix 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-2022:6156


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