Bug 1152384

Summary: lxc-top is not longer working
Product: [Fedora] Fedora EPEL Reporter: Sklav <gnudna>
Component: lxcAssignee: Thomas Moschny <thomas.moschny>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: unspecified    
Version: epel7CC: amigo.elite, karlthered, sagarun, thomas.moschny
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Linux   
Whiteboard:
Fixed In Version: lxc-1.0.7-4.el7 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2015-11-11 18:22:35 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Sklav 2014-10-14 03:59:02 UTC
Description of problem:
when running lxc-top
the following crash happens this was fixed in the previous release and seems to have made it's way back into this version.

lua: /usr/share/lua/5.1/lxc.lua:274: attempt to index local 'lines' (a nil value)
stack traceback:
	/usr/share/lua/5.1/lxc.lua:274: in function 'stat_match_get_int'
	/usr/share/lua/5.1/lxc.lua:297: in function 'stats_get'
	/usr/bin/lxc-top:162: in function 'container_list_update'
	/usr/bin/lxc-top:227: in main chunk
	[C]: ?

Version-Release number of selected component (if applicable):
lxc-1.0.6-1.el7.x86_64

How reproducible:
install the latest version from EPEL-7 at this time lxc-1.0.6-1.el7.x86_64


Steps to Reproduce:
1. lxc-top

Actual results:
lua: /usr/share/lua/5.1/lxc.lua:274: attempt to index local 'lines' (a nil value)
stack traceback:
	/usr/share/lua/5.1/lxc.lua:274: in function 'stat_match_get_int'
	/usr/share/lua/5.1/lxc.lua:297: in function 'stats_get'
	/usr/bin/lxc-top:162: in function 'container_list_update'
	/usr/bin/lxc-top:227: in main chunk
	[C]: ?

Expected results:
proper results

Additional info:
this was fixed in the previous EPEL-7 release lxc-1.0.5-5.el7.x86_64

Comment 1 Sklav 2014-10-22 15:24:27 UTC
Weird but all of a sudden lxc-top is working again. Nothing has changed on the server.

Comment 2 Sklav 2014-10-23 16:56:43 UTC
Ok Some serious weirdness today it is no longer working.

lxc-top
lua: /usr/share/lua/5.1/lxc.lua:274: attempt to index local 'lines' (a nil value)
stack traceback:
	/usr/share/lua/5.1/lxc.lua:274: in function 'stat_match_get_int'
	/usr/share/lua/5.1/lxc.lua:297: in function 'stats_get'
	/usr/bin/lxc-top:162: in function 'container_list_update'
	/usr/bin/lxc-top:227: in main chunk
	[C]: ?

Comment 3 Vladimir Stackov 2015-01-05 01:04:17 UTC
Same here.

Error is floating, can't get 100% reproducibility.

Comment 4 Thomas Moschny 2015-01-26 19:29:02 UTC
This is https://github.com/lxc/lxc/issues/403, and can be fixed with a mini-patch.

Not sure yet if this warrants a new build.

Comment 5 Thomas Moschny 2015-04-26 07:52:50 UTC
For the record, this will be in 1.0.8, once it's released.

Comment 6 Fedora Update System 2015-10-25 09:05:12 UTC
lxc-1.0.7-4.el7 has been submitted as an update to Fedora EPEL 7. https://bodhi.fedoraproject.org/updates/FEDORA-EPEL-2015-3cdbf28493

Comment 7 Fedora Update System 2015-10-26 21:19:48 UTC
lxc-1.0.7-4.el7 has been pushed to the Fedora EPEL 7 testing repository. If problems still persist, please make note of it in this bug report.
If you want to test the update, you can install it with
$ su -c 'yum --enablerepo=epel-testing update lxc'
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-EPEL-2015-3cdbf28493

Comment 8 Fedora Update System 2015-11-11 18:22:21 UTC
lxc-1.0.7-4.el7 has been pushed to the Fedora EPEL 7 stable repository. If problems still persist, please make note of it in this bug report.