Actions
Bug #15448
closedJewel : KRBD : rbd map is failing, we should log correct error message either in system logs or in standard error output
% 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
Actions