Skip to content

Commit a61b470

Browse files
Zuulopenstack-gerrit
authored andcommitted
Merge "Remove cgroup natty or less block"
2 parents ee98461 + 770690e commit a61b470

1 file changed

Lines changed: 0 additions & 11 deletions

File tree

lib/nova

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -303,17 +303,6 @@ function configure_nova {
303303
# to simulate multiple systems.
304304
if [[ "$LIBVIRT_TYPE" == "lxc" ]]; then
305305
if is_ubuntu; then
306-
if [[ ! "$DISTRO" > natty ]]; then
307-
local cgline="none /cgroup cgroup cpuacct,memory,devices,cpu,freezer,blkio 0 0"
308-
sudo mkdir -p /cgroup
309-
if ! grep -q cgroup /etc/fstab; then
310-
echo "$cgline" | sudo tee -a /etc/fstab
311-
fi
312-
if ! mount -n | grep -q cgroup; then
313-
sudo mount /cgroup
314-
fi
315-
fi
316-
317306
# enable nbd for lxc unless you're using an lvm backend
318307
# otherwise you can't boot instances
319308
if [[ "$NOVA_BACKEND" != "LVM" ]]; then

0 commit comments

Comments
 (0)