Project

General

Profile

Actions

Bug #23131

closed

Ceph allows to shrink the image size without giving any warning, where the image has actual data

Added by Debashis Mondal about 6 years ago. Updated about 6 years ago.

Status:
Rejected
Priority:
Normal
Assignee:
-
Target version:
-
% Done:

0%

Source:
Tags:
Backport:
Regression:
No
Severity:
3 - minor
Reviewed:
Affected Versions:
ceph-qa-suite:
Pull request ID:
Crash signature (v1):
Crash signature (v2):

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

Actions #1

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.

Actions

Also available in: Atom PDF