$PATH is getting clobbered when starting a container with Upstart
Bug #1517107 reported by
Christopher Townsend
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
lxc (Ubuntu) |
Fix Released
|
High
|
Unassigned | ||
Vivid |
Fix Released
|
High
|
Unassigned | ||
Wily |
Fix Released
|
High
|
Unassigned | ||
Xenial |
Fix Released
|
High
|
Unassigned |
Bug Description
== SRU ==
Rationale: LXC 1.1 and higher mangles the process env to be able to re-title itself, breaking the environment for sub-processes in the process
Test case: Spawn a container and check /proc/self/environ
Regression potential: Worst case scenario is we stamp on a different part of the process memory leading to similar but different breakage. It's been tested not to be the case though, change comes from upstream.
== Original bug report ==
I have a script using the Python3 LXC API that starts up a container. If I use an Upstart job to call the script, the $PATH env var is getting clobbered and the container fails to start.
Changed in lxc (Ubuntu Trusty): | |
status: | New → Confirmed |
status: | Confirmed → Triaged |
no longer affects: | lxc (Ubuntu Trusty) |
Changed in lxc (Ubuntu Vivid): | |
status: | New → Triaged |
Changed in lxc (Ubuntu Wily): | |
status: | New → Triaged |
Changed in lxc (Ubuntu Xenial): | |
status: | New → Triaged |
Changed in lxc (Ubuntu Vivid): | |
importance: | Undecided → High |
Changed in lxc (Ubuntu Wily): | |
importance: | Undecided → High |
Changed in lxc (Ubuntu Xenial): | |
importance: | Undecided → High |
Changed in lxc (Ubuntu Xenial): | |
status: | Triaged → Fix Committed |
description: | updated |
tags: |
added: verification-done removed: verification-needed |
To post a comment you must log in.
Hello Christopher, or anyone else affected,
Accepted lxc into wily-proposed. The package will build now and be available at https:/ /launchpad. net/ubuntu/ +source/ lxc/1.1. 5-0ubuntu0. 15.10.3 in a few hours, and then in the -proposed repository.
Please help us by testing this new package. See https:/ /wiki.ubuntu. com/Testing/ EnableProposed for documentation how to enable and use -proposed. Your feedback will aid us getting this update out to other Ubuntu users.
If this package fixes the bug for you, please add a comment to this bug, mentioning the version of the package you tested, and change the tag from verification-needed to verification-done. If it does not fix the bug for you, please add a comment stating that, and change the tag to verification- failed. In either case, details of your testing will help us make a better decision.
Further information regarding the verification process can be found at https:/ /wiki.ubuntu. com/QATeam/ PerformingSRUVe rification . Thank you in advance!