[openstack-dev] [ceph-users] [cinder][rbd] cinder create from image failing with http image

Josh Durgin josh.durgin at inktank.com
Mon Feb 25 21:34:13 UTC 2013


On 02/25/2013 11:12 AM, Mandell Degerness wrote:
> 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'

'rbd import' tries to stat the file first, and only gets to this error
if the stat reported size 0.

Is the image (and thus temp file) size 0, or is it not a regular file?

> 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.

'rbd import' does fsync itself so that it can get extent information 
from fiemap.




More information about the OpenStack-dev mailing list