Ask Your Question
1

failed when try to create a volume from a image using command cinder create --image-id 123 --display-name boot_vol1 3

asked 2014-03-19 02:38:21 -0500

harishamrale gravatar image

I have used the command cinder create --image-id XXX --display-name boot_vol1 3 to create the volume from image. output: | 5dc94ea2-e199-4bdd-985c-2da9eb8954dd | error | boot_vol1 | 3 | None | false |

In the /var/log/cinnder/cinder-volume.log error is: ImageCopyFailure: Failed to copy image to volume: [Errno 13] Permission denied: '/usr/lib/python2.7/dist-packages/conversion'

edit retag flag offensive close merge delete

Comments

//entries from cinder.conf volume_driver=cinder.volume.drivers.lvm.LVMISCSIDriver, iscsi_helper = ietadm

harishamrale gravatar imageharishamrale ( 2014-03-19 02:41:49 -0500 )edit

Thanks unmesh it works

harishamrale gravatar imageharishamrale ( 2014-03-21 03:02:55 -0500 )edit

2 answers

Sort by ยป oldest newest most voted
3

answered 2014-03-19 06:58:19 -0500

unmesh-gurjar gravatar image

updated 2014-03-19 06:58:41 -0500

Add the config parameter 'image_conversion_dir' in cinder.conf (this is basically the directory used for temporary storage during image conversion) and set it to some directory to which the cinder service has all permissions (rwx). Restart the cinder-volume service and then try creating the volume from image.

edit flag offensive delete link more

Comments

It worked, Thanks

Ganesan Duraisamy gravatar imageGanesan Duraisamy ( 2015-07-21 05:19:27 -0500 )edit
0

answered 2015-08-29 19:07:26 -0500

mjbagg gravatar image

exact error:

cinder.api.middleware.fault [...] Caught error: [Errno 13] Permission denied

I ended up not only creating the directory unmesh suggests, but giving it full ownership and permissions.

cinder.conf
...
# Directory to use for lock files. Default to a temp directory
# (string value)
#lock_path=<None>
lock_path=/var/lock/cinder

#directory used for temporary storage during image conversion
image_conversion_dir=/var/lock/cinder
...

#chown cinder:cinder /var/lock/cinder
#chmod 777 /var/lock/cinder
# ls -l /var/lock/
drwxrwxrwx 2 cinder cinder  40 Aug 29 11:05 cinder
edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower

Stats

Asked: 2014-03-19 02:38:21 -0500

Seen: 3,005 times

Last updated: Aug 29 '15