Can Debian images be fixed to stop properly?

There’s many postings about Debian containers not stopping correctly, including:

https://github.com/lxc/lxd/issues/4939#issuecomment-413900839

Masking networkd above is working for me, but it’s a pretty poor evaluator experience for mainline distros to be broken in a basic way like that. Is there some technical reason why the upstream images haven’t been fixed?

1 Like

Getting a fix for this would be great… the old lxc stop --force mycontainer always feels a little odd…

1 Like
stgraber@castiana:~$ lxc launch images:debian/10 debian
Creating debian
Starting debian                             
stgraber@castiana:~$ lxc list
+--------------+---------+----------------------+----------------------------------------------+------------+-----------+
|     NAME     |  STATE  |         IPV4         |                     IPV6                     |    TYPE    | SNAPSHOTS |
+--------------+---------+----------------------+----------------------------------------------+------------+-----------+
| centos3      | STOPPED |                      |                                              | PERSISTENT | 0         |
+--------------+---------+----------------------+----------------------------------------------+------------+-----------+
| centos4      | STOPPED |                      |                                              | PERSISTENT | 0         |
+--------------+---------+----------------------+----------------------------------------------+------------+-----------+
| cosmic       | RUNNING | 10.166.11.42 (eth0)  | 2001:470:b368:4242:216:3eff:fe3e:4813 (eth0) | PERSISTENT | 0         |
+--------------+---------+----------------------+----------------------------------------------+------------+-----------+
| cosmic-cloud | RUNNING | 10.166.11.183 (eth0) | 2001:470:b368:4242:216:3eff:fe5f:5552 (eth0) | PERSISTENT | 0         |
+--------------+---------+----------------------+----------------------------------------------+------------+-----------+
| debian       | RUNNING | 10.166.11.230 (eth0) | 2001:470:b368:4242:216:3eff:fe11:8ac (eth0)  | PERSISTENT | 0         |
+--------------+---------+----------------------+----------------------------------------------+------------+-----------+
stgraber@castiana:~$ lxc stop debian
stgraber@castiana:~$ 

Do you have more details on what’s needed to see such a problem?

Ok, I tested lxc stop on a fresh debian 10 image and all was well… I only have this problem on debian 9 images on a debian 9 host but I can live with stop --force!

I’ve extended our image testing script to attempt a clean shutdown on all our supported images, so we’ll have a list of broken ones to take a look at soon.

2 Likes

Yes, I can replicate this on the debian 9 image (which I’m using as it’s the recommended version for the Unifi controller app).