lxc-info output different in terminal and file redirection
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
lxc (Ubuntu) |
Fix Released
|
High
|
Unassigned |
Bug Description
-------
Versions information
root@arachide:~# lsb_release -rd
Description: Ubuntu 14.04.1 LTS
Release: 14.04
root@arachide:~# apt-cache policy lxc
lxc:
Installed: 1.0.6-0ubuntu0.1
Candidate: 1.0.6-0ubuntu0.1
Version table:
*** 1.0.6-0ubuntu0.1 0
500 http://
100 /var/lib/
1.0.3-0ubuntu3 0
500 http://
-------
lxc-info output is different when displayed directly in the terminal or redirected to a file
Expected: same content when displayed in term or redirected to a file
Actual result: contents different
This behavior broke a custom script which was working like a charm on Ubuntu 13.10 with lxc version 1.0.0~alpha1 amd64. This is working correctly as well on Ubuntu 14.04 with the stock trusty version of lxc in the main repo (1.0.3)
How to reproduce:
root@arachide:~# lxc-info -n my_lxc
Name: my_lxc
State: STOPPED
root@arachide:~# lxc-info -n my_lxc > test.txt
root@arachide:~# cat test.txt
Name: my_lxc
Name: my_lxc
State: STOPPED
Name: my_lxc
State: STOPPED
Name: my_lxc
State: STOPPED
Name: my_lxc
State: STOPPED
Name: my_lxc
State: STOPPED
Name: my_lxc
State: STOPPED
root@arachide:~#
description: | updated |
Changed in lxc (Ubuntu): | |
importance: | Undecided → High |
description: | updated |
Status changed to 'Confirmed' because the bug affects multiple users.