Your message dated Fri, 24 Sep 2010 18:53:28 +0200
with message-id <[email protected]>
and subject line Kernel didn't support cpu group scheduling
has caused the Debian Bug report #597965,
regarding cgroup-bin: fails to configure: cgconfigparser doesn't like installed 
/etc/cgconfig.config
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)


-- 
597965: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=597965
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: cgroup-bin
Version: 0.36.2-3
Severity: important

cgroup-bin fails to configure itself:

shambhala:~> LANG=C aptitude install cgroup-bin
The following partially installed packages will be configured:
  cgroup-bin 
No packages will be installed, upgraded, or removed.
0 packages upgraded, 0 newly installed, 0 to remove and 34 not upgraded.
Need to get 0B of archives. After unpacking 0B will be used.
Setting up cgroup-bin (0.36.2-3) ...     
Starting cgconfig service: Loading configuration file /etc/cgconfig.conf failed
Cgroup mounting failed
Failed to parse /etc/cgconfig.conf ... failed!
invoke-rc.d: initscript cgconfig, action "start" failed.
dpkg: error processing cgroup-bin (--configure):
 subprocess installed post-installation script returned error exit status 1
configured to not write apport reports
                                      Errors were encountered while processing:
 cgroup-bin
E: Sub-process /usr/bin/dpkg returned an error code (1)
A package failed to install.  Trying to recover:
Setting up cgroup-bin (0.36.2-3) ...
Starting cgconfig service: Loading configuration file /etc/cgconfig.conf failed
Cgroup mounting failed
Failed to parse /etc/cgconfig.conf ... failed!
invoke-rc.d: initscript cgconfig, action "start" failed.
dpkg: error processing cgroup-bin (--configure):
 subprocess installed post-installation script returned error exit status 1
Errors were encountered while processing:
 cgroup-bin


cgconfigparser does not like the config file the package installs:

shambhala:~> /usr/sbin/cgconfigparser -l /etc/cgconfig.conf
Loading configuration file /etc/cgconfig.conf failed
Cgroup mounting failed


There is not much uncommented stuff in it:

shambhala:~> grep -v "^#" /etc/cgconfig.conf
mount {
        cpu = /mnt/cgroups/cpu;
        cpuacct = /mnt/cgroups/cpuacct;
        devices = /mnt/cgroups/devices;
}

But even I I also comment out these, it doesn't work:

shambhala:~> vim /etc/cgconfig.conf
shambhala:~> grep -v "^#" /etc/cgconfig.conf
shambhala:~#1> /usr/sbin/cgconfigparser -l /etc/cgconfig.conf
Loading configuration file /etc/cgconfig.conf failed
Cannot have mount and namespace keyword in the same configuration file


It seems as if cgconfigparser doesn't treat the hash (#) as comment sign.

-- System Information:
Debian Release: squeeze/sid
  APT prefers testing
  APT policy: (450, 'testing'), (400, 'unstable'), (101, 'experimental')
Architecture: i386 (i686)

Kernel: Linux 2.6.35.4-tp42-vmembase-0-pm-avoid-oom-dirty (PREEMPT)
Locale: LANG=de_DE.UTF-8, LC_CTYPE=de_DE.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages cgroup-bin depends on:
ii  libc6                         2.11.2-5   Embedded GNU C Library: Shared lib
ii  libcgroup1                    0.36.2-3   A library to control and monitor c

cgroup-bin recommends no packages.

cgroup-bin suggests no packages.

-- no debconf information



--- End Message ---
--- Begin Message ---
Hi!

I had look at it this together with Dhaval Giani at Linux Kongress in 
Nuremberg.

Dhaval asked me for

shambhala:~> cat /proc/cgroups 
#subsys_name    hierarchy       num_cgroups     enabled
ns      0       1       1
cpuacct 1       2       1
devices 2       2       1
freezer 0       1       1
blkio   0       1       1

which pointed out that my kernel had no group scheduling support.

That can't work with:

 45 mount {
 46             cpu = /mnt/cgroups/cpu;
 47             cpuacct = /mnt/cgroups/cpuacct;
 48             devices = /mnt/cgroups/devices;
 49 }

Thus I changed this too:

 45 mount {
 46 #   cpu = /mnt/cgroups/cpu;
 47             cpuacct = /mnt/cgroups/cpuacct;
 48             devices = /mnt/cgroups/devices;
 49 }

Which unlike commenting out the whole block works fine.

The error message of the config parser could be more helpful in that case, 
cause the problem is the not a parsing issue, but a lack of kernel 
support, and as such not a real syntax error in the configuration file,  but 
that is an upstream issue. Thus closing.

Thanks,
-- 
Martin 'Helios' Steigerwald - http://www.Lichtvoll.de
GPG: 03B0 0D6C 0040 0710 4AFA  B82F 991B EAAC A599 84C7

Attachment: signature.asc
Description: This is a digitally signed message part.


--- End Message ---

Reply via email to