Red Hat Bugzilla – Bug 816738
cgsnapshot saves tabs but cgconfigparser doesn't accept them.
Last modified: 2012-04-27 09:37:27 EDT
Description of problem: Using cgsnapshot to save a configuration that includes blkio.throttle.write_bps_device will result in a line in the cgconfig.conf like:
Between the 8:0 and the 10485769 is a tab. cgconfig will complain that it can't parse this file. Replacing that tab with a space corrects the issue.
Version-Release number of selected component (if applicable):
x86_64 0.37 3.el6 (This is actually CentOS version)
How reproducible: Very
Steps to Reproduce:
1. Start with a cgconfig that uses blkio
2. echo "8:0 10485769" > blkio.throttle.write_bps_device
3. cgsnapshot -s > /etc/cgconfig.conf
4. service cgconfig restart
[root@air /]# service cgconfig restart
Stopping cgconfig service: [ OK ]
Starting cgconfig service: Loading configuration file /etc/cgconfig.conf failed
Value setting does not succeed
Failed to parse /etc/cgconfig.conf [FAILED]
This should result in a successful restart.
*** This bug has been marked as a duplicate of bug 788580 ***
Strange.... before entering this bug, I searched for cgsnapshot and only bug 676700 and bug 647107 came up. Now, of course, I search and can see bug 788580. Sorry for the trouble!
No problem, bug 788580 has limited visibility (dunno why), now you are on cc: there you can actually see it.