From 17868092616f868cfa7bfe0f1ae09bf3ccf1111c Mon Sep 17 00:00:00 2001 From: Chuck Short Date: Mon, 12 Sep 2016 14:25:16 -0700 Subject: [PATCH] Enable user namespace for ext4 Enable user namespace for ext4 when cinder is detected. This is done so that the block devices can actually be used in the container. Change-Id: I3f6793e5e47597c83cd0e001e5f1b6c2081d6654 Signed-off-by: Chuck Short --- devstack/plugin.sh | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/devstack/plugin.sh b/devstack/plugin.sh index 4a01f340..e3ed9b4f 100755 --- a/devstack/plugin.sh +++ b/devstack/plugin.sh @@ -69,6 +69,11 @@ function init_nova-lxd() { iniset $TEMPEST_CONFIG validation image_ssh_user ubuntu iniset $TEMPEST_CONFIG validation run_validation True fi + + if is_service_enabled cinder; then + # Enable user namespace for ext4, this has only been tested on xenial+ + echo Y | sudo tee /sys/module/ext4/parameters/userns_mounts + fi } function shutdown_nova-lxd() {