nova docker driver cannot find cgroup in /proc/mounts on RHEL
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Compute (nova) |
Fix Released
|
Medium
|
Daniel Kuffner |
Bug Description
I'm using the nova docker driver on RHEL 3.10.11-
On my box the line in /proc/mounts for cgroups looks like this:
none /sys/fs/cgroup cgroup rw,relatime,
In the docker driver the method which searches /proc/mounts for the cgroup path looks like this:
def _find_cgroup_
for ln in open('/
if ln.startswith(
Therefore the method cannot find my cgroup path. I hacked around this with a 1 LOC change to the _find_cgroup_
if ln.split(' ')[2] == 'cgroup' and 'devices' in ln:
The update method in its entirety looks like:
169 def _find_cgroup_
170 for ln in open('/
171 if ln.split(' ')[2] == 'cgroup' and 'devices' in ln:
172 return ln.split(' ')[1]
Based on the format in /proc/mounts on my ubuntu box, this change *should* work on ubuntu as well as rhel.
I did read that docker is only supported with devstack + unbuntu, so I realize this defect may get deferred or even closed. However I wanted to surface it as I believe future efforts of openstack + docker will need to consider non-ubuntu + devstack envs.
tags: | added: docker |
Changed in nova: | |
importance: | Undecided → Medium |
status: | New → Confirmed |
Changed in nova: | |
assignee: | nobody → Daniel Kuffner (daniel-kuffner) |
Changed in nova: | |
milestone: | none → icehouse-2 |
status: | Fix Committed → Fix Released |
Changed in nova: | |
milestone: | icehouse-2 → 2014.1 |
I confirm this bug, this also affects Debian (Jessie)