Ask Your Question
0

Kolla: Nova-compute: Permission denied: /var/lib/nova/instances

asked 2016-01-11 07:56:46 -0600

johanna-heinonen gravatar image

I am experimenting with Ubuntu/all-in-one/source based kolla. When I try to start a VM I get an error:

2016-01-11 01:17:00.470 1 ERROR nova.compute.manager [req-6740b638-11d6-4936-a5bf-29c91b90e0da ec90ac7c3844461db90e3998fa5fc6f2 d50b64c423284f3e840c88285ce1852e - - -] [instance: 39150e05-9c0d-4325-9ecf-c4a0d5558994] Instance failed to spawn ... OSError: [Errno 13] Permission denied: '/var/lib/nova/instances/39150e05-9c0d-4325-9ecf-c4a0d5558994'

According to my understanding the problem is that in nova_compute container the directory /var/lib/nova/instances is owned by root (and not the user nova):

nova@kolla-157:/var/lib/nova$ ls -l total 4 drwxr-xr-x 2 root root 4096 Jan 11 01:04 instances

What would be the best way to fix this?

edit retag flag offensive close merge delete

3 answers

Sort by ยป oldest newest most voted
1

answered 2016-01-12 01:09:27 -0600

xiangfei-ma gravatar image

updated 2016-01-12 01:11:01 -0600

Nova will create disk and store other necessary files of VM to /var/lib/nova, obviously, the owner of /var/lib/nova should be "nova" instead of "root".
Change the owner like below:

# cd /var/lib/
# chown -R nova:nova nova
edit flag offensive delete link more

Comments

In addition: If you use shared storage like a NFS export, you need to make sure that all nova users on all compute nodes have the same uid/gid.

haukebruno gravatar imagehaukebruno ( 2016-03-01 21:05:26 -0600 )edit
0

answered 2016-01-12 13:59:27 -0600

Sandeep gravatar image

Option1: cd /var/lib/ chown -R nova:nova nova

Option2: chmod -R 777 nova

edit flag offensive delete link more
0

answered 2016-11-11 01:34:28 -0600

Kolla uses a named volume for ephemeral storage for Nova (or alternatively the Ceph RBD driver). Kolla also takes care to chown on container startup as recommended by the other two answers. It would be helpful for you to file a bug report which includes the version of Kolla under use, and this scenario does not occur on any stable branch releases to my knowledge and is a critical severity defect if you are suffering from it.

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: 2016-01-11 07:56:46 -0600

Seen: 3,887 times

Last updated: Nov 11 '16