Ask Your Question

SteveO's profile - activity

2016-01-28 10:31:30 -0500 received badge  Famous Question (source)
2016-01-21 11:41:53 -0500 answered a question Unable to attach Cinder volume to instance

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
2016-01-21 11:01:51 -0500 received badge  Notable Question (source)
2016-01-18 08:22:17 -0500 received badge  Popular Question (source)
2016-01-13 06:38:56 -0500 asked a question Unable to attach Cinder volume to instance

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.