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

Mandell Degerness mandell at pistoncloud.com
Tue Feb 26 00:18:12 UTC 2013


I've confirmed that the problem is on the cinder side.  For some
reason, no chunks are being downloaded and written, so the temp file
is 0 bytes.  Still don't know what's wrong with the code - it appears
to have been copied directly from the nova code which does work.
Stumped for the moment.

On Mon, Feb 25, 2013 at 1:34 PM, Josh Durgin <josh.durgin at inktank.com> wrote:
> 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