From 0a5a11704fb6f85fb1bc151a54c6b4e9ea40a2be Mon Sep 17 00:00:00 2001 From: Jesse Pretorius Date: Fri, 5 Aug 2016 15:42:58 +0100 Subject: [PATCH] Prevent overlayfs use in test when kernel < 3.18 or release == trusty The overlayfs version in kernel version < 3.18 was not production-ready and should be avoided on Trusty due general instability. This patch prevents overlayfs from being used when implementing an AIO with kernel version and release versions that are not not suitable. Related-Bug: #1612412 Related-Bug: #1631690 Change-Id: I224c27ed645c3f3817721baccd5d9e5ce19f3a03 --- tests/roles/bootstrap-host/templates/user_variables.aio.yml.j2 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/roles/bootstrap-host/templates/user_variables.aio.yml.j2 b/tests/roles/bootstrap-host/templates/user_variables.aio.yml.j2 index bf3497337c..54811d809e 100644 --- a/tests/roles/bootstrap-host/templates/user_variables.aio.yml.j2 +++ b/tests/roles/bootstrap-host/templates/user_variables.aio.yml.j2 @@ -87,7 +87,7 @@ repo_build_pip_no_binary: # The container backing store is set to 'overlayfs' to speed up the # AIO build time. -lxc_container_backing_store: overlayfs +lxc_container_backing_store: "{{ ((ansible_kernel | version_compare('3.18.0-0-generic', '<')) or (ansible_distribution_release | lower == 'trusty')) | ternary('dir', 'overlayfs') }}" ## Enable LBaaSv2 in the AIO neutron_plugin_base: