]> git.apps.os.sepia.ceph.com Git - ceph-cm-ansible.git/commitdiff
Adds cgroups packages and net_cls kernel module to ubuntu systems 94/head
authorIvo Jimenez <ivo.jimenez@gmail.com>
Fri, 24 Jul 2015 20:15:56 +0000 (13:15 -0700)
committerIvo Jimenez <ivo.jimenez@gmail.com>
Fri, 31 Jul 2015 18:09:08 +0000 (11:09 -0700)
This commit is part of the work for http://tracker.ceph.com/issues/12424
which enables the ceph task in ceph/ceph-qa-suite to create and place
osd/mon/mds in control groups.

For ubuntu, kernels for precise and up have CONFIG_CGROUP_* enabled, so
the only thing that it's required is to install cgroup-lite which is a
service that mounts the cgroups virtual FS. The cgroup-bin package will
also be used from the ceph task to manipulate (create/modify/delete)
control groups.

The net_cls subsystem is included as a module (cls_cgroup) and is not
enabled by cgroup-lite, i.e. it has to be explicitly loaded. so we add
it to /etc/modules

roles/testnode/templates/modules
roles/testnode/vars/ubuntu.yml

index 3fdab7ef0e604ccf2a939a1f59d382a409e8be92..4d0ba64c3849f7f2d497d239c87ff7805b8678c1 100644 (file)
@@ -8,3 +8,4 @@ loop
 lp
 rtc
 scsi_transport_iscsi
+cls_cgroup
index 7acb8022536f2c11c0d938576c55fd249a521794..5dfffda81796eabc8000d6278e6ebf07351ecb6c 100644 (file)
@@ -103,6 +103,9 @@ common_packages:
   # nfs
   - nfs-common
   - nfs-kernel-server
+  # cgroups
+  - cgroup-lite
+  - cgroup-bin
 
 packages_to_upgrade:
   - apt