Ask Your Question
0

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
2

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
0

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
0

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

Amit M gravatar image

Hello,

Did you tried running the operation using Admin login .

Regards, amit

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

Stats

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

Seen: 1,780 times

Last updated: Jan 21 '16