[devstack] lxd/pool needs to be configured when using ZFS

Change-Id: Ibf00d8af1c97540726625452ed7bbc1457fc1c05
Related-to: #1782329
Signed-off-by: Sahid Orentino Ferdjaoui <sahid.ferdjaoui@canonical.com>
This commit is contained in:
Sahid Orentino Ferdjaoui 2018-12-12 09:59:06 -05:00 committed by Alex Kavanagh (tinwood)
parent 9daffc1279
commit 0ea07af2a2
1 changed files with 6 additions and 0 deletions

View File

@ -51,6 +51,12 @@ function configure_nova-lxd() {
iniset $NOVA_CONF DEFAULT compute_driver lxd.LXDDriver
iniset $NOVA_CONF DEFAULT force_config_drive False
if [ "$LXD_BACKEND_DRIVER" == "zfs" ]; then
# For LXD 3 and upper we need pool name configured, see:
# bug/1782329
iniset $NOVA_CONF lxd pool $LXD_ZFS_ZPOOL
fi
if is_service_enabled glance; then
iniset $GLANCE_API_CONF DEFAULT disk_formats "ami,ari,aki,vhd,raw,iso,qcow2,root-tar"
iniset $GLANCE_API_CONF DEFAULT container_formats "ami,ari,aki,bare,ovf,tgz"