Nova: Permission Denied, Ubuntu 12.04 B1
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Compute (nova) |
Invalid
|
Undecided
|
Unassigned |
Bug Description
I'm getting multiple failures related to permission problems with nova on Ubuntu 12.04 B1
It started off with it being unable to create /var/lib/
e.g. grep through the logs for Permission denied:
/var/log/
/var/log/
/var/log/
Directory /var/lib/nova
drwxr-xr-x 9 nova nova 4096 Mar 14 15:15 .
drwxr-xr-x 41 root root 4096 Mar 14 15:15 ..
drwxr-xr-x 2 root root 4096 Mar 9 18:22 buckets
drwxr-xr-x 8 nova nova 4096 Mar 14 15:15 CA
drwxr-xr-x 2 root root 4096 Mar 9 18:22 images
drwxr-xr-x 2 root root 4096 Mar 9 18:22 instances
drwxr-xr-x 2 root root 4096 Mar 9 18:22 keys
drwxr-xr-x 2 root root 4096 Mar 16 11:25 networks
-rw-r--r-- 1 nova nova 104448 Mar 12 10:54 nova.sqlite
-rw------- 1 nova nova 1024 Mar 12 10:52 .rnd
drwxr-xr-x 2 root root 4096 Mar 9 18:22 tmp
in /etc/nova/nova.conf I set:
--state_
I've removed this, but turns out its the default anyway.
I've chown -R this area to be owned by nova and its working now.
add the following to /etc/sudoers. d/nova_ sudoers
Cmnd_Alias NOVACMDS = /bin/chmod /var/lib/ nova/tmp/ */root/ .ssh, \
/bin/chown /var/lib/ nova/tmp/ */root/ .ssh, \
/bin/chown, \
/bin/chmod, \
/bin/dd, \
/sbin/ ip, \
/sbin/ route, \
/sbin/ iptables- save, \
/sbin/ iptables- restore, \
/sbin/ ip6tables- save, \
/sbin/ ip6tables- restore, \
/sbin/ kpartx, \
/sbin/ losetup, \
/sbin/ lvcreate, \
/sbin/ lvdisplay, \
/sbin/ lvremove, \
/bin/mkdir, \
/bin/mount, \
/sbin/ pvcreate, \
/usr/bin/ tee, \
/sbin/ tune2fs, \
/bin/umount, \
/sbin/ vgcreate, \
/usr/bin/ qemu-nbd, \
/usr/sbin/ brctl, \
/sbin/ brctl, \
/usr/sbin/ radvd, \
/usr/sbin/ vblade- persist, \
/bin/kill, \
/usr/sbin/ ietadm, \
/sbin/ vgs, \
/sbin/ iscsiadm, \
/usr/bin/ socat, \
/sbin/ parted, \
/usr/sbin/ dnsmasq, \
/usr/bin/ arping
nova ALL = (root) NOPASSWD: SETENV: NOVACMDS