Unable to attach Cinder volume to instance

asked 2016-01-12 22:31:59 -0500

SteveO gravatar image

I am able to create Cinder volumes based on my loopback device just fine, though I am unable to attach the volume to any instances.

# nova volume-attach 95aea9f5-4542-4e2b-952f-c95f0354dcb8 55fc1b54-fa83-4143-8371-00fbe984bced
| Property | Value                                |
| device   | /dev/vdb                             |
| id       | 55fc1b54-fa83-4143-8371-00fbe984bced |
| serverId | 95aea9f5-4542-4e2b-952f-c95f0354dcb8 |
| volumeId | 55fc1b54-fa83-4143-8371-00fbe984bced |

I've narrowed it down to the following error log in the cinder api.log on my cinder controller:

IOError: [Errno 13] Permission denied: '/var/lock/cinder/cinder-lioadm'

I've double checked the cinder config on both the storage controller and node (seperate hosts).

Any ideas would be appreciated.

edit retag flag offensive close merge delete

3 answers

Sort by ยป oldest newest most voted

answered 2016-01-27 09:07:17 -0500

jckreddy gravatar image

Some times directory or file permissions are not proper You need to double check . The below mentioned commands may help you. mkdir /var/lock/cinder chmod 777 /var/lock/cinder/ chown -R cinder:cinder /var/lock/cinder/

edit flag offensive delete link more

answered 2016-01-13 22:16:51 -0500

Amit M gravatar image


Did you tried running the operation using Admin login .

Regards, amit

edit flag offensive delete link more

answered 2016-01-21 11:41:53 -0500

SteveO gravatar image

Hi Amit, yes that was not the issue it turns out we had to have 777 root:cinder permission on /var/lock/cinder on all the Cinder nodes as well as the Cinder controller to get past this.

drwxrwxrwx  2 root cinder 1240 Jan 20 18:17 /var/lock/cinder
edit flag offensive delete link more

Get to know Ask OpenStack

Resources for moderators

Question Tools


Asked: 2016-01-12 22:31:59 -0500

Seen: 1,997 times

Last updated: Jan 21 '16