Actions
Bug #2872
closedRBD resize command allows image size -1
Status:
Resolved
Priority:
Urgent
Assignee:
-
Target version:
-
% Done:
0%
Source:
Q/A
Tags:
Backport:
Regression:
Severity:
Reviewed:
Affected Versions:
ceph-qa-suite:
Pull request ID:
Crash signature (v1):
Crash signature (v2):
Description
Ceph Version : 0.48
Resize rbd image to size -1 allows rbd image to be resized to 15 Exabytes, which is incorrect.
Expecting it to throw error message "size cannot take a negative value".
Pasting below the screen shot for reference.
ubuntu@burnupi64:~/qemu/qemu$ rbd resize rbd/rbd1 --size -1 Resizing image: 100% complete...done. ubuntu@burnupi64:~/qemu/qemu$ rbd info rbd1 rbd image 'rbd1': size 15 EB in 4398046511103 objects order 22 (4096 KB objects) block_name_prefix: rb.0.7 parent: (pool -1)
Actions