Bug 2162076 - [RFE] "rbd info" command should list image encryption details (format, cipher, etc)
Summary: [RFE] "rbd info" command should list image encryption details (format, cipher...
Keywords:
Status: NEW
Alias: None
Product: Red Hat Ceph Storage
Classification: Red Hat Storage
Component: RBD
Version: 6.0
Hardware: Unspecified
OS: Unspecified
unspecified
high
Target Milestone: ---
: 7.0
Assignee: Ilya Dryomov
QA Contact: Sunil Angadi
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2023-01-18 17:37 UTC by Preethi
Modified: 2023-07-11 05:46 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Issue Tracker RHCEPH-6268 0 None None None 2023-03-16 13:42:10 UTC

Description Preethi 2023-01-18 17:37:10 UTC
Description of problem:[RBD] - RBD info command do not list the Image encryption information or enablement info  either for parent or clone images-
We do not have any commands verify if the feature is added or loaded to check for the images with encryption


Version-Release number of selected component (if applicable):
 ceph version
ceph version 17.2.5-58.el9cp (16442de8e6d5a0e3579858f2df1407d21043bc4b) quincy (stable)


How reproducible:


Steps to Reproduce:
1)Create RBD image1 
2)Apply encryption format LUKS1/LUKS2 to the RBD image1 [root@magna021 ubuntu]# rbd encryption format mypool/myimage6 luks2 passphrase.bin
3) once successful adding encryption and look for the details -Check the rbd info mypool/myimage command and look for encryption format details or info related to it



Actual results: We do not have such any info present for the users to know if the images are encrypted or any details related to that anywhere for this feature
We do not have any commands verify if the feature is added or loaded to check for the images with encryption

Expected results: We should have the RBD info command to show the info related to encryption enablement or any command to display the info or list of encrypted images to help users to identify encrypted and non -encrypted images


RBD info output:

[root@magna021 ubuntu]# rbd info mypool/myimage2
rbd image 'myimage2':
	size 10 GiB in 2560 objects
	order 22 (4 MiB objects)
	snapshot_count: 1
	id: af1ec1d64132
	block_name_prefix: rbd_data.af1ec1d64132
	format: 2
	features: layering, exclusive-lock, object-map, fast-diff, deep-flatten
	op_features: 
	flags: 
	create_timestamp: Wed Jan 11 06:20:41 2023
	access_timestamp: Wed Jan 11 06:20:41 2023
	modify_timestamp: Wed Jan 11 06:20:41 2023
[root@magna021 ubuntu]# rbd info mypool/myclone2
rbd image 'myclone2':
	size 10 GiB in 2560 objects
	order 22 (4 MiB objects)
	snapshot_count: 0
	id: b3a1869a6dee
	block_name_prefix: rbd_data.b3a1869a6dee
	format: 2
	features: layering, exclusive-lock, object-map, fast-diff, deep-flatten
	op_features: 
	flags: 
	create_timestamp: Tue Jan 17 05:30:57 2023
	access_timestamp: Tue Jan 17 05:30:57 2023
	modify_timestamp: Tue Jan 17 05:36:12 2023
	parent: mypool/myimage2@snap2
	overlap: 10 GiB
Additional info:

Comment 2 Preethi 2023-03-29 13:39:38 UTC
@IIya, We dont have any option to check or confirm if the image is encrypted for the users. Can we have this in 6.1


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