Bug #23131
closedCeph allows to shrink the image size without giving any warning, where the image has actual data
0%
Description
Execution Steps:
-----------------
1. Create a glance image ( glance is integrated with ceph) using "cirros/ubuntu" images.
2. Shrink the image size in Ceph using "rbd resize --allow-shrink" CLI.
Reference:
-----------
Please refer the attached document for detailed step to check the data corruption after shrinking the image that contains actual data.
Observation:
-------------
Ceph allows to shrink the size of an image that contains actual data.
The shrinking of image will corrupt the data.
Solution:
-----------
There should be a warning message for the user, that will notify about "the shrinking of image can corrupt the data".
Files
Updated by Jason Dillaman about 6 years ago
- Status changed from New to Rejected
There is a reason we added the "--allow-shrink" option so that end-user certifies it's ready to shrink. RBD would have no way to determine if it can "safely" shrink.