Activity log for bug #1003583

Date Who What changed Old value New value Message
2012-05-23 17:57:36 Andrey Kislyuk bug added bug
2012-05-23 19:54:29 Serge Hallyn lxc (Ubuntu): importance Undecided Low
2012-05-23 19:54:33 Serge Hallyn lxc (Ubuntu): status New Fix Released
2012-05-23 19:54:41 Serge Hallyn nominated for series Ubuntu Precise
2012-05-23 19:54:41 Serge Hallyn bug task added lxc (Ubuntu Precise)
2012-05-23 19:54:48 Serge Hallyn lxc (Ubuntu Precise): importance Undecided Low
2012-05-23 19:54:53 Serge Hallyn lxc (Ubuntu Precise): status New Confirmed
2012-05-24 13:54:18 Serge Hallyn description Since the lxc-start command quits with an error if any inherited FDs are not disconnected, why is it necessary to specify --close-all-fds at all? (I just spent an hour debugging a situation where some FDs were falling through from parent processes only in the remote deployment configuration...) ============================ SRU Justification Impact: callers of lxc-start can have confusing failures to start Development fix: always close all fds Stable fix: same as development fix Test case: 1. lxc-create -t ubuntu -n p1 2. cat > execme.c << EOF #include <stdio.h> #include <unistd.h> int main() { FILE *f = fopen("/tmp/ab", "w"); //int ret = execl("/usr/bin/lxc-start", "/usr/bin/lxc-start", "-d", "-n", "p1", NULL); int ret = execl("/usr/bin/lxc-start", "/usr/bin/lxc-start", "-n", "p1", NULL); printf("should not be here (ret %d)\n", ret); } EOF 3. make execme 4. sudo ./execme Without this patch, the container will fail to start with an error message saying an fd was inherited. With the patch, the container will start (and the fd will have been closed) Regression potential: if anyone was counting on lxc-start to fail when started with open fds, that will no longer happen. ============================ Since the lxc-start command quits with an error if any inherited FDs are not disconnected, why is it necessary to specify --close-all-fds at all? (I just spent an hour debugging a situation where some FDs were falling through from parent processes only in the remote deployment configuration...)
2012-05-24 20:59:43 Stéphane Graber lxc (Ubuntu Precise): status Confirmed Fix Committed
2012-05-24 20:59:54 Stéphane Graber lxc (Ubuntu Precise): assignee Stéphane Graber (stgraber)
2012-05-31 23:16:32 Clint Byrum bug added subscriber Ubuntu Stable Release Updates Team
2012-05-31 23:16:35 Clint Byrum bug added subscriber SRU Verification
2012-05-31 23:16:37 Clint Byrum tags verification-needed
2012-05-31 23:43:35 Launchpad Janitor branch linked lp:ubuntu/precise-proposed/lxc
2012-06-08 18:00:40 Stéphane Graber tags verification-needed verification-done
2012-06-11 15:30:32 Launchpad Janitor lxc (Ubuntu Precise): status Fix Committed Fix Released