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