devstack: remove bionic condition when init lxd storage
This make devstack working on all ubuntu based version that is shipped with LXD3. For versions that ship LXD2 this do not cause any incidence. Note that: When using LXD_POOL_NAME with dir backend. LXD2 does not have the concept of pools so it can't be anything else than "default", for LXD3 this can be updated but LXD should have been initialized and the pool created. Change-Id: I781fb97100937e5189994f3752d0b95b15614d85 Signed-off-by: Sahid Orentino Ferdjaoui <sahid.ferdjaoui@canonical.com>
This commit is contained in:
parent
13229ff977
commit
23d1416932
|
@ -119,9 +119,11 @@ function configure_lxd_block() {
|
|||
echo_summary "Configure LXD storage backend."
|
||||
if is_ubuntu; then
|
||||
if [ "$LXD_BACKEND_DRIVER" == "default" ]; then
|
||||
if [ "$DISTRO" == "bionic" ]; then
|
||||
echo_summary " . Configuring default dir backend for bionic lxd"
|
||||
if [ "$LXD_POOL_NAME" == "default" ]; then
|
||||
echo_summary " . Configuring '${LXD_POOL_NAME}' dir backend for bionic lxd"
|
||||
sudo lxd init --auto --storage-backend dir
|
||||
else
|
||||
echo_summary " . LXD_POOL_NAME != default, considering lxd already initialized"
|
||||
fi
|
||||
elif [ "$LXD_BACKEND_DRIVER" == "zfs" ]; then
|
||||
pool=`lxc profile device get default root pool 2>> /dev/null || :`
|
||||
|
|
Loading…
Reference in New Issue