New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
starting any container with umask 007 causes lxc-stop to hang and prevents clean shutdown of host system #1403
Comments
I can confirm this also with umask 077 |
I am seeing the same thing with LXC 2.0.7 on Debian stretch + Linux 4.14.6, umask 027:
|
Up, same problem here on Debian Stretch, Kernel 4.9.0-5-amd64 |
On Tue, Feb 20, 2018 at 10:59:45PM +0000, ShellCode wrote:
Up, same problem here on Debian Stretch
I have some time planned to debug this the next few days. Thanks!
Christian
|
I'm running umask 027 (set in The comments to the launchpad bug by the original author of this issue and this thread contain a few discussions with regards to possible reasons this occurs. Also, is #2277 perhaps related? It took a long time before I traced this down to the umask, because the symptoms are bewildering. My original issue: |
[copied from launchpad bug 1642767...]
If I have umask 007 (or any other value that masks the world-execute bit) when I run lxc-start for the first time after logging in, my host system enters a state with the following problems:
When lxc-stop hangs, messages like these appear in syslog every couple of minutes:
When system shutdown hangs, similar messages appear on the console every couple of minutes.
I can reproduce this at will with a freshly-installed and fully-updated host OS in VirtualBox, and with either an old-ish container or a new one.
I'm running lxc 2.0.5-0ubuntu1~ubuntu16.04.2 on xubuntu 16.04.1 LTS amd64.
My containers are all unprivileged.
My umask at container creation time does not seem to matter. As far as I have seen, my umask only matters the first time I start a container in my login session.
I can work around the bug by manually setting my umask to something more permissive before I start my first container of the day, and then setting it back again, but that's rather a hassle. (Even worse, it's very easy to forget this workaround and be left with containers that can't be stopped and a host system that won't shut down cleanly.)
The text was updated successfully, but these errors were encountered: