[Bug 1551960] Re: lxc-attach does not work any more with input redirection
Martin Pitt
martin.pitt at ubuntu.com
Wed Mar 2 07:13:06 UTC 2016
I locally applied https://github.com/lxc/lxc/commit/12752e2 to our
current package and built it. Now it looks better:
# lxc-attach -n a runlevel
N 5
# lxc-attach -n a runlevel </dev/null
N 5
# lxc-attach -n a runlevel </dev/null 2>/dev/null
N 5
# lxc-attach -n a runlevel </dev/null 2>/dev/null | cat
So redirecting stdin only now does not show this
"lxc_console_cb_tty_master: 683 Bad file" error any more, and
redirecting stderr now works too. But redirecting stdout in addition
still doesn't?
Maybe I'm missing another fix from trunk, though.
--
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to autopkgtest in Ubuntu.
https://bugs.launchpad.net/bugs/1551960
Title:
lxc-attach does not work any more with input redirection
Status in lxc package in Ubuntu:
Fix Committed
Bug description:
LXC 2.0.0~rc{2,3,4} break autopkgtest's LXC runner. Downgrading to
2.0.0~rc1 works again. The issue is that lxc-attach stops working
properly with input redirection.
# lxc-start -n a
Until 2.0.0~rc1 I could redirect lxc-attach's stdout:
# lxc-attach -n a runlevel </dev/null 2>/dev/null |cat
N 5
But now this does not work any more:
# lxc-attach -n a runlevel
N 5
# lxc-attach -n a runlevel </dev/null
lxc-attach: console.c: lxc_console_cb_tty_master: 683 Bad file descriptor - failed to write
# lxc-attach -n a runlevel </dev/null 2>/dev/null
# lxc-attach -n a runlevel </dev/null 2>/dev/null | cat
#
I. e. the last two commands don't have any output at all any more.
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/lxc/+bug/1551960/+subscriptions
More information about the foundations-bugs
mailing list