[lxc-users] lxd git master - lxc stop hangs for 15.04 guest in 14.04 host

Sean McNamara smcnam at gmail.com
Wed May 20 19:14:43 UTC 2015


I am using an Ubuntu 14.04 host (upstart init) running linux-generic amd64
kernel, with lxd-spawned unprivileged lxc container running 15.04 (systemd
init). Latest 15.04 image with no custom software inside the container, and
nothing installed but the barebones.

I applied a profile specifying a custom bridge device and static IP; this
config works fine for multiple 14.04 containers. Each of these 14.04
containers can be successfully started and stopped at will.

But when I create a 15.04 amd64 guest, it will start successfully and is
usable, but it won't *stop*. Even trying to kill the container processes
from the host doesn't seem to get rid of it. The container just keeps
running unless I reboot the system. `lxc stop name` just hangs forever.
There are only systemd processes and /bin/bash running in the container.

Should the lxc command have a '-f' flag to send SIGKILL to all the child
processes of a container in case one of them is hung?

There is nothing useful in the lxc or lxd logs. All it says is that the
container changed to RUNNING state. Nothing about it changing to any
stop/stopping state.

P.S. - I looked in dmesg, and none of the "stuck" processes have generated
any kernel oops/warn/etc.

Thanks,

Sean
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.linuxcontainers.org/pipermail/lxc-users/attachments/20150520/712b8841/attachment-0001.html>


More information about the lxc-users mailing list