Bug 753334

Summary: cgconfig fails to parse commas in the cgconfig.conf file
Product: Red Hat Enterprise Linux 6 Reporter: Tru Huynh <pasteur>
Component: libcgroupAssignee: Peter Schiffer <pschiffe>
Status: CLOSED ERRATA QA Contact: Petr Beňas <pbenas>
Severity: medium Docs Contact:
Priority: medium    
Version: 6.1CC: balbir, dhaval.bugzilla, jsafrane, lnovich, ngupta, ovasik, pasteur, pbenas, pstehlik, varekova
Target Milestone: rcKeywords: Patch
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Cause: missing support for commas in lexical analyser Consequence: cgconfig failed to parse commas in the cgconfig.conf file Fix: add support for commas in lexical analyser Result: cgconfig can parse commas in the cgconfig.conf file
Story Points: ---
Clone Of: 683541 Environment:
Last Closed: 2013-11-21 22:31:24 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
libcgroup-0.37-comma.patch none

Description Tru Huynh 2011-11-11 22:01:32 UTC
+++ This bug was initially created as a clone of Bug #683541 +++

Description of problem:
cgconfig fails to parse due to commas in the conf file

Version-Release number of selected component (if applicable):
Problem seen in both: libcgroup-0.35.1-3.fc13, libcgroup-0.36.2-5.fc14 and probably other versions as well.

How reproducible:
Always

Steps to Reproduce:
1. Add a line to the config file that uses a comma for the mask.
For example:  cpuset.cpus = 1-3,11;

2. Attempt to start cgconfig

3. Fails due to parse error.
  
Actual results:
cgconfig fails to start

Expected results:
cgconfig starts successfully

Additional info:
adding a \, to the regular expression on line 35 of lex.l in the libcgroup source fixes it.

--- Additional comment from dhaval.bugzilla on 2011-05-24 08:18:41 EDT ---

I believe this was fixed in the upstream sources, and probably an update has been delivered. Can you please confirm if it still exists for you?

--- Additional comment from updates on 2011-05-26 10:04:28 EDT ---

libcgroup-0.36.2-7.fc14 has been submitted as an update for Fedora 14.
https://admin.fedoraproject.org/updates/libcgroup-0.36.2-7.fc14

--- Additional comment from varekova on 2011-05-26 10:06:14 EDT ---

The problem was not fixed in libcgroup-0.36.2-6.fc14 now libcgroup-0.36.2-7.fc14 should fix it.

--- Additional comment from updates on 2011-05-26 17:53:22 EDT ---

Package libcgroup-0.36.2-7.fc14:
* should fix your issue,
* was pushed to the Fedora 14 testing repository,
* should be available at your local mirror within two days.
Update it with:
# su -c 'yum update --enablerepo=updates-testing libcgroup-0.36.2-7.fc14'
as soon as you are able to.
Please go to the following url:
https://admin.fedoraproject.org/updates/libcgroup-0.36.2-7.fc14
then log in and leave karma (feedback).

--- Additional comment from updates on 2011-06-21 13:08:26 EDT ---

libcgroup-0.36.2-7.fc14 has been pushed to the Fedora 14 stable repository.  If problems still persist, please make note of it in this bug report.

Comment 2 RHEL Program Management 2011-11-11 22:28:54 UTC
This request was evaluated by Red Hat Product Management for
inclusion in the current release of Red Hat Enterprise Linux.
Because the affected component is not scheduled to be updated
in the current release, Red Hat is unfortunately unable to
address this request at this time. Red Hat invites you to
ask your support representative to propose this request, if
appropriate and relevant, in the next release of Red Hat
Enterprise Linux. If you would like it considered as an
exception in the current release, please ask your support
representative.

Comment 8 Peter Schiffer 2013-08-12 10:49:59 UTC
Created attachment 785642 [details]
libcgroup-0.37-comma.patch

Comment 14 Petr Beňas 2013-09-16 13:47:25 UTC
Reproduced in libcgroup-0.37-7.el6.x86_64 and verified in libcgroup-0.37-10.el6.x86_64.

Comment 15 errata-xmlrpc 2013-11-21 22:31:24 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

http://rhn.redhat.com/errata/RHBA-2013-1685.html