Status: New
Owner: ----
New issue 312 by jeffrey.mitchell: Patch: Incorrect RBD code causes failure
to create RBD devices
http://code.google.com/p/ganeti/issues/detail?id=312
What software version are you running? Please provide the output of "gnt-
cluster --version" and "gnt-cluster version".
gnt-cluster (ganeti v2.6.0-25-g27e15be) 2.6.1
Software version: 2.6.1
Internode protocol: 2060000
Configuration format: 2060000
OS api version: 20
Export interface: 0
What distribution are you using?
Ubuntu 12.04 with 3.6.3 kernel from the Ceph team (recommended for kernel
RBD client).
What steps will reproduce the problem?
1. Attempt to create an instance using the RBD backend.
What is the expected output? What do you see instead?
Ganeti expects different output than is actually displayed from "rbd
showmapped", leading to a failure to create a device.
It's possible that the output has changed in newer rbd versions; I'm not
sure as I haven't used old versions.
Please provide any additional information below.
Attached is a patch that fixes two problems:
1) When the output of "rbd showmapped" was empty (due to no device having
been created) an error was thrown. In fact, this is exactly what is
expected if no device has yet been created, and as such None should be
returned so that creation proceeds.
2) The output uses spaces, in order for the column fields to line up. The
split filter was using tabs, however. Removing the tab filter and
defaulting to the normal Python split behavior (split on runs of
whitespace) allows th parsing to behave correctly.
Attachments:
bdev.py.diff 587 bytes