From: Ivo Jimenez Date: Fri, 24 Jul 2015 20:15:56 +0000 (-0700) Subject: Adds cgroups packages and net_cls kernel module to ubuntu systems X-Git-Url: http://git.apps.os.sepia.ceph.com/?a=commitdiff_plain;h=369631b1646f9fddc65a7a8b1996f4622138693d;p=ceph-cm-ansible.git Adds cgroups packages and net_cls kernel module to ubuntu systems 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 --- diff --git a/roles/testnode/templates/modules b/roles/testnode/templates/modules index 3fdab7e..4d0ba64 100644 --- a/roles/testnode/templates/modules +++ b/roles/testnode/templates/modules @@ -8,3 +8,4 @@ loop lp rtc scsi_transport_iscsi +cls_cgroup diff --git a/roles/testnode/vars/ubuntu.yml b/roles/testnode/vars/ubuntu.yml index 7acb802..5dfffda 100644 --- a/roles/testnode/vars/ubuntu.yml +++ b/roles/testnode/vars/ubuntu.yml @@ -103,6 +103,9 @@ common_packages: # nfs - nfs-common - nfs-kernel-server + # cgroups + - cgroup-lite + - cgroup-bin packages_to_upgrade: - apt