Project

General

Profile

Bug #15448

Jewel : KRBD : rbd map is failing, we should log correct error message either in system logs or in standard error output

Added by Vikhyat Umrao almost 8 years ago. Updated almost 8 years ago.

Status:
Resolved
Priority:
Normal
Assignee:
Category:
rbd
Target version:
-
% Done:

0%

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

Description

Jewel : KRBD : rbd map is failing , we should log correct error message either in system logs or in standard error output.

rbd map command is failing because in Jewel we create images with by default enabled exclusive-lock, object-map, fast-diff, deep-flatten and as per my understanding currently KRBD do not support these features.

For example :

$rbd create rbd/test --size 1G
$ rbd info rbd/test
rbd image 'test':
    size 1024 MB in 256 objects
    order 22 (4096 kB objects)
    block_name_prefix: rbd_data.196d4238e1f29
    format: 2
    features: layering, exclusive-lock, object-map, fast-diff, deep-flatten
    flags: 

- If we map this RBD device it will fail to map with "rbd: sysfs write failed" and "rbd: map failed: (6) No such device or address" but it wont tell that why it is failing like image has these features : exclusive-lock, object-map, fast-diff, deep-flatten enabled.

$rbd map rbd/test
rbd: sysfs write failed
rbd: map failed: (6) No such device or address

- As soon as we will create a image with only layering features it works perfectly fine.

$ rbd create rbd/test2 --size 1G --image-feature layering
$ rbd info rbd/test2
rbd image 'test2':
    size 1024 MB in 256 objects
    order 22 (4096 kB objects)
    block_name_prefix: rbd_data.196dd2ae8944a
    format: 2
    features: layering
    flags: 
$ rbd map rbd/test2
/dev/rbd0

History

#1 Updated by Ilya Dryomov almost 8 years ago

  • Status changed from New to In Progress
  • Assignee set to Ilya Dryomov

It can't pretty-print which features are missing, in general. But we do have to make it nicer.

#2 Updated by Vikhyat Umrao almost 8 years ago

Thanks Ilya!

#3 Updated by Ilya Dryomov almost 8 years ago

  • Category set to rbd

#4 Updated by Ilya Dryomov almost 8 years ago

  • Status changed from In Progress to Fix Under Review

#5 Updated by Ilya Dryomov almost 8 years ago

  • Status changed from Fix Under Review to Resolved

"rbd: report unsupported features to syslog" in 4.6-rc6.

Also available in: Atom PDF