[Bug 1551960] [NEW] lxc-attach does not work any more with input redirection
Martin Pitt
martin.pitt at ubuntu.com
Tue Mar 1 21:14:56 UTC 2016
Public bug reported:
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.
** Affects: autopkgtest (Ubuntu)
Importance: High
Status: New
** Affects: lxc (Ubuntu)
Importance: Undecided
Status: New
** Tags: regression-release xenial
** Also affects: autopkgtest (Ubuntu)
Importance: Undecided
Status: New
** Changed in: autopkgtest (Ubuntu)
Importance: Undecided => High
** Tags added: regression-release xenial
--
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 autopkgtest package in Ubuntu:
New
Status in lxc package in Ubuntu:
New
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/autopkgtest/+bug/1551960/+subscriptions
More information about the foundations-bugs
mailing list