Project

General

Profile

Actions

Bug #2872

closed

RBD resize command allows image size -1

Added by Tamilarasi muthamizhan almost 12 years ago. Updated over 11 years ago.

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 #1

Updated by Sage Weil over 11 years ago

  • Priority changed from Normal to Urgent
Actions #2

Updated by Sage Weil over 11 years ago

  • Status changed from New to Resolved
Actions

Also available in: Atom PDF