Re: [cinder][rbd] cinder create from image failing with http image

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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.

_______________________________________________
ceph-users mailing list
ceph-users@xxxxxxxxxxxxxx
http://lists.ceph.com/listinfo.cgi/ceph-users-ceph.com


[Index of Archives]     [Information on CEPH]     [Linux Filesystem Development]     [Ceph Development]     [Ceph Large]     [Ceph Dev]     [Linux USB Development]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [xfs]


  Powered by Linux