[Bug 986956] Re: lxc-execute does not work with commands that require input from terminal

2012-04-25 Thread Daniel Lezcano
The lxc-execute command is used for 'application container'. Usually,
the system container uses a rootfs and the application container do not
use a rootfs. So lxc is looking for if the rootfs option is set and then
setup the console.

Here lxc-execute is used with the rootfs, so it setup the console, that
is to say it maps /dev/console to /dev/tty.

Of course, that makes sense only if we have the applications writing to
/dev/console which is the case when the system containers boot. Doing
that with a shell is messy and we have problem with the tty.

 = Why is needed a rootfs with lxc-execute ?

There are 2 solutions to fix this problem:

 (1) do not specify the rootfs but ro-bind-mount the rootfs/usr to /usr and 
the other needed directories.
 (2) change the code to have lxc-execute to take into account a rootfs but I 
wouldn't recommend that because that will bring much more complexity and more 
errors with the console by adding a new configuration combination. At least we 
should decide to ignore the rootfs option when lxc-execute is used.

-- 
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/986956

Title:
  lxc-execute does not work with commands that require input from
  terminal

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

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs


[Bug 986956] Re: lxc-execute does not work with commands that require input from terminal

2012-04-25 Thread Serge Hallyn
Thanks Daniel.

It sounds then like we should document this somewhere explicitly.   I'll
re-title the but and mark it low priority.

** Changed in: lxc (Ubuntu)
   Importance: Medium = Low

** Summary changed:

- lxc-execute does not work with commands that require input from terminal
+ document that lxc-execute with separate rootfs does not work with commands

-- 
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/986956

Title:
  document that lxc-execute with separate rootfs does not work with
  commands

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

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs


[Bug 986956] Re: lxc-execute does not work with commands that require input from terminal

2012-04-23 Thread Serge Hallyn
** Changed in: lxc (Ubuntu)
   Importance: Undecided = Medium

-- 
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/986956

Title:
  lxc-execute does not work with commands that require input from
  terminal

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

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs


[Bug 986956] Re: lxc-execute does not work with commands that require input from terminal

2012-04-23 Thread Serge Hallyn
Reproduced with upstream lxc.git as well.

-- 
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/986956

Title:
  lxc-execute does not work with commands that require input from
  terminal

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

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs


[Bug 986956] Re: lxc-execute does not work with commands that require input from terminal

2012-04-23 Thread Serge Hallyn
the read() in src/lxc/console.c:console_handler() is getting -1 (EPERM).

-- 
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/986956

Title:
  lxc-execute does not work with commands that require input from
  terminal

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

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs


[Bug 986956] Re: lxc-execute does not work with commands that require input from terminal

2012-04-23 Thread Serge Hallyn
The task getting the -EPERM is the actual lxc-execute process itself
(which is unconfined by both apparmor and cgroups), and the fd is to
/dev/tty.

-- 
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/986956

Title:
  lxc-execute does not work with commands that require input from
  terminal

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

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs


[Bug 986956] Re: lxc-execute does not work with commands that require input from terminal

2012-04-22 Thread B Clausius
-- 
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/986956

Title:
  lxc-execute does not work with commands that require input from
  terminal

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

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs


[Bug 986956] Re: lxc-execute does not work with commands that require input from terminal

2012-04-22 Thread Launchpad Bug Tracker
Status changed to 'Confirmed' because the bug affects multiple users.

** Changed in: lxc (Ubuntu)
   Status: New = Confirmed

-- 
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/986956

Title:
  lxc-execute does not work with commands that require input from
  terminal

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

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs