Project

General

Profile

Actions

Bug #8821

closed

rbd: ceph.conf "rbd default format" woes

Added by Dmitry Smirnov almost 10 years ago. Updated almost 10 years ago.

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

0%

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

Description

`/usr/bin/rbd` have few errors with "rbd default format".

With the following in "/etc/ceph/ceph.conf":

[client]
    rbd default format = 2

it is impossible to create a new image with format=1 because "--image-format" is silently ignored:

# rbd create rbd/temporary1 --size 20000 --image-format=1

# rbd info rbd/temporary1                                                                                                  
rbd image 'temporary1':
        size 20000 MB in 5000 objects
        order 22 (4096 kB objects)
        block_name_prefix: rbd_data.63cc412ae8944a
        format: 2
        features: layering, striping
        stripe unit: 4096 kB
        stripe count: 1

In addition to this an image was created with striping which was not explicitly used in "rbd create" command.
Compare it to the following, without "rbd default format" in "ceph.conf":

# rbd create rbd/temporary1 --size 20000 --image-format=2
# rbd info rbd/temporary1                                                                                                  
rbd image 'temporary1':
        size 20000 MB in 5000 objects
        order 22 (4096 kB objects)
        block_name_prefix: rbd_data.63c3ed2ae8944a
        format: 2
        features: layering

"rbd default format" should not enforce striping unless given explicitly.
It would be best to use the same defaults for image format 2 disregarding of where format was chosen (in command line or in ceph.conf file).

Actions #1

Updated by Dmitry Smirnov almost 10 years ago

  • Description updated (diff)
Actions #2

Updated by Sage Weil almost 10 years ago

  • Priority changed from Normal to Urgent
Actions #3

Updated by Josh Durgin almost 10 years ago

  • Status changed from New to In Progress
  • Assignee set to Josh Durgin
Actions #4

Updated by Dmitry Smirnov almost 10 years ago

Now works as expected; thanks, Josh.

Actions #5

Updated by Josh Durgin almost 10 years ago

  • Status changed from In Progress to Fix Under Review
Actions #6

Updated by Sage Weil almost 10 years ago

  • Status changed from Fix Under Review to Resolved
Actions

Also available in: Atom PDF