[Bug 1050351] Re: lxc-start-ephemeral suppresses command exit status

Serge Hallyn 1050351 at bugs.launchpad.net
Tue Nov 20 17:49:29 UTC 2012


** Description changed:

- lxc-start-ephemeral supports executing a command directly, but always
- exits 0 rather than using the command's status, causing errors to go
- unnoticed when used programmatically.
+ ====================================
+ SRU Justification:
+ 1. Impact: lxc-start-ephemeral return status does not reflect the return status of the command it executed.
+ 2. Development fix: when the child successfully starts, return its return value.
+ 3. Stable fix: same as development fix
+ 4. Test case:
+ 	1. sudo lxc-create -t ubuntu -n p1
+ 	2. sudo lxc-start-ephemeral -o p1 -- /bin/false
+ 	3. echo $? # - this should return 1, not 0.
+ 5. Regression potential: the change is convined to lxc-start-ephemeral, so any
+    regressions should not affect any other functionality.
+ ====================================
+ lxc-start-ephemeral supports executing a command directly, but always exits 0 rather than using the command's status, causing errors to go unnoticed when used programmatically.

** Changed in: lxc (Ubuntu Precise)
   Importance: Undecided => High

** Changed in: lxc (Ubuntu Precise)
       Status: New => In Progress

** Changed in: lxc (Ubuntu Precise)
   Importance: High => Low

-- 
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to lxc in Ubuntu.
https://bugs.launchpad.net/bugs/1050351

Title:
  lxc-start-ephemeral suppresses command exit status

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/lxc/+bug/1050351/+subscriptions



More information about the Ubuntu-server-bugs mailing list