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 <chuck.short@canonical.com>
This commit is contained in:
parent
34661ba997
commit
1786809261
|
@ -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() {
|
||||
|
|
Loading…
Reference in New Issue