Project

General

Profile

Bug #2872

RBD resize command allows image size -1

Added by Tamilarasi muthamizhan over 11 years ago. Updated about 11 years ago.

Status:
Resolved
Priority:
Urgent
Assignee:
-
Target version:
-
% Done:

0%

Source:
Q/A
Tags:
Backport:
Regression:
No
Severity:
3 - minor
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)

History

#1 Updated by Sage Weil about 11 years ago

  • Priority changed from Normal to Urgent

#2 Updated by Sage Weil about 11 years ago

  • Status changed from New to Resolved

Also available in: Atom PDF