lxc instance termination error: permission denied when killing a process
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
nova-compute (Ubuntu) |
Confirmed
|
Undecided
|
Unassigned |
Bug Description
nova-compute-lxc 1:2014.1.1-0ubuntu1
trusty
deployed with the openstack charms for trusty
After going through bug #1205525 and #1352540 to get nova compute configured to use containers (lxc) as hypervisors, I'm hitting a problem when terminating such an instance.
It remains in the ERROR state and nova show shows this backtrace:
| fault | {"message": "Failed to kill process 15767: Permission denied", "code": 500, "details": " File \"/usr/
| | return function(self, context, *args, **kwargs) |
| | File \"/usr/
| | do_terminate_
| | File \"/usr/
| | return f(*args, **kwargs) |
| | File \"/usr/
| | self._set_
| | File \"/usr/
| | six.reraise(
| | File \"/usr/
| | reservations=
| | File \"/usr/
| | rv = f(*args, **kwargs) |
| | File \"/usr/
| | user_id=user_id) |
| | File \"/usr/
| | six.reraise(
| | File \"/usr/
| | self._shutdown_
| | File \"/usr/
| | requested_networks) |
| | File \"/usr/
| | six.reraise(
| | File \"/usr/
| | block_device_info) |
| | File \"/usr/
| | self._destroy(
| | File \"/usr/
| | instance=instance) |
| | File \"/usr/
| | six.reraise(
| | File \"/usr/
| | virt_dom.destroy() |
| | File \"/usr/
| | result = proxy_call(
| | File \"/usr/
| | rv = execute(
| | File \"/usr/
| | rv = meth(*args,
| | File \"/usr/
| | if ret == -1: raise libvirtError ('virDomainDest
| | ", "created": "2014-08-
The process listing remains like this on that compute node:
nova 23110 0.3 0.3 1752292 62984 ? Ssl 19:49 0:28 /usr/bin/python /usr/bin/
root 14153 0.6 0.0 1275720 13272 ? Ssl 22:02 0:04 /usr/bin/qemu-nbd -c /dev/nbd13 /var/lib/
root 14278 0.1 0.0 37212 6628 ? Ss 22:02 0:00 /sbin/init
root 15767 0.0 0.0 10224 2408 ? Ss 22:02 0:00 \_ dhclient -1 -v -pf /run/dhclient.
message+ 16032 0.0 0.0 39116 1044 ? Ss 22:02 0:00 \_ dbus-daemon --system --fork
root 16072 0.0 0.0 43540 1768 ? Ss 22:02 0:00 \_ /lib/systemd/
root 16156 0.0 0.0 61364 3044 ? Ss 22:02 0:00 \_ /usr/sbin/sshd -D
root 16161 0.0 0.0 4368 660 ? Ss 22:02 0:00 \_ acpid -c /etc/acpi/events -s /var/run/
root 16162 0.0 0.0 23656 880 ? Ss 22:02 0:00 \_ cron
daemon 16165 0.0 0.0 19140 160 ? Ss 22:02 0:00 \_ atd
root 16196 0.0 0.0 19292 808 ? Ss 22:02 0:00 \_ /usr/sbin/
syslog 16230 0.0 0.0 260076 1140 ? Ssl 22:02 0:00 \_ rsyslogd
root 19222 0.0 0.0 49572 1348 ? Ss 22:06 0:00 \_ /lib/systemd/
root 19225 0.0 0.0 12788 844 pts/0 Ss+ 22:06 0:00 \_ /sbin/getty -8 38400 tty1
root 19245 0.0 0.0 19476 400 ? S 22:06 0:00 \_ upstart-udev-bridge --daemon
root 19248 0.0 0.0 15260 640 ? S 22:06 0:00 \_ upstart-
root 19251 0.0 0.0 15276 404 ? S 22:06 0:00 \_ upstart-file-bridge --daemon
root 20505 0.0 0.0 12788 884 ? Ss 22:13 0:00 \_ /sbin/getty -8 38400 tty4
root 20507 0.0 0.0 12788 884 ? Ss 22:13 0:00 \_ /sbin/getty -8 38400 tty2
root 20509 0.0 0.0 12788 888 ? Ss 22:13 0:00 \_ /sbin/getty -8 38400 tty3
The init (pid 14278) had as its parents some nova process that created and started the container. That one is gone.
summary: |
- bla + lxc instance termination error: permission denied when killing a process |
tags: | added: cloud-installer landscape |
Status changed to 'Confirmed' because the bug affects multiple users.