lxc.conf post-stop gets called even if LXC_AUTO is set to false
Bug #949362 reported by
Stéphane Graber
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
lxc (Ubuntu) |
Fix Released
|
Low
|
Serge Hallyn |
Bug Description
Calling "stop" in pre-start causes upstart to jump directly to post-stop, not skip it.
The case where this would be a problem is so specific that this really isn't a big issue but probably still worh fixing :)
Case where we'd see the problem:
- Booting a machine
- Starting containers before lxc.conf is called
- Have these containers symlinked in /etc/lxc/auto
- Have LXC_AUTO=false in /etc/default/lxc
- When lxc.conf is called by upstart, it'll just to post-stop, killing the containers in the process
As I said, pretty unlikely to happen but still possible :)
Related branches
Changed in lxc (Ubuntu): | |
assignee: | nobody → Serge Hallyn (serge-hallyn) |
status: | Confirmed → In Progress |
To post a comment you must log in.
Confirmed; adding a check for LXC_AUTO=false to the post-stop script would make sense to me and should resolve the issue.