[openstack-dev] [cinder][rbd] cinder create from image failing with http image
Mandell Degerness
mandell at pistoncloud.com
Mon Feb 25 19:12:54 UTC 2013
I keep running into this error when attempting to create a volume from an image:
ProcessExecutionError: Unexpected error while running command.
Command: rbd import --pool rbd /mnt/novadisk/tmp/tmpbjwv9l
volume-d777527e-9754-4779-bd4c-d869968aba0c
Exit code: 1
Stdout: ''
Stderr: 'rbd: unable to get size of file/block device: (25)
Inappropriate ioctl for device\nrbd: import failed: (25) Inappropriate
ioctl for device\n'
Looking at the cinder code, a temporary file is created, the blocks
copied down from the glance connection and then the rbd command is run
(without there being a file close on the temp file. Does the file
need to be properly closed before the rbd command is run? Would a
flush on the file handle be sufficient?
Any suggestions would be welcome.
More information about the OpenStack-dev
mailing list