diff --git a/stackrc b/stackrc index 1300f45cda..f7a0c876f2 100644 --- a/stackrc +++ b/stackrc @@ -665,6 +665,8 @@ case "$VIRT_DRIVER" in ;; esac +# By default, devstack will use Ubuntu Cloud Archive. +ENABLE_UBUNTU_CLOUD_ARCHIVE=$(trueorfalse True ENABLE_UBUNTU_CLOUD_ARCHIVE) # Images # ------ diff --git a/tools/fixup_stuff.sh b/tools/fixup_stuff.sh index d07d2675c6..0b78bdeb00 100755 --- a/tools/fixup_stuff.sh +++ b/tools/fixup_stuff.sh @@ -72,7 +72,10 @@ fi # We've found that Libvirt on Xenial is flaky and crashes enough to be # a regular top e-r bug. Opt into Ubuntu Cloud Archive if on Xenial to # get newer Libvirt. -if [[ "$DISTRO" = "xenial" ]]; then +# Make it possible to switch this based on an environment variable as +# libvirt 2.5.0 doesn't handle nested virtualization quite well and this +# is required for the trove development environment. +if [[ "${ENABLE_UBUNTU_CLOUD_ARCHIVE}" == "True" && "$DISTRO" = "xenial" ]]; then # This pulls in apt-add-repository install_package "software-properties-common" # Use UCA for newer libvirt. Should give us libvirt 2.5.0.