Mount cgroups in full_trusty_build

Apparently the new gate images do not mount cgroupfs by default:
http://logs.openstack.org/78/7862d1458097e26148f11210d0458ec4968ce7f5/post/ironic-python-agent-buildimage-coreos/da07872/console.html

Install cgroupfs-mount and run it when running on Ubuntu.

Change-Id: Ic338b8f44409f7ac893703a882c65280c6fa2895
Related-Bug: #1559383
This commit is contained in:
Jim Rollenhagen
2016-03-25 11:07:32 -07:00
parent 7862d14580
commit 66ef2070e1

View File

@@ -12,7 +12,8 @@ if [ -x "/usr/bin/apt-get" ]; then
sudo -E apt-get update
# apparmor is an undeclared dependency for docker on ubuntu
# https://github.com/docker/docker/issues/9745
sudo -E apt-get install -y docker.io apparmor
sudo -E apt-get install -y docker.io apparmor cgroupfs-mount
sudo cgroupfs-mount
elif [ -x "/usr/bin/dnf" ]; then
sudo -E dnf install -y $REDHAT_PACKAGES
elif [ -x "/usr/bin/yum" ]; then