Browse code

Merge "Make use of Ubuntu Cloud Archive switchable"

Jenkins authored on 2017/06/09 10:55:36
Showing 2 changed files
... ...
@@ -655,6 +655,8 @@ case "$VIRT_DRIVER" in
655 655
         ;;
656 656
 esac
657 657
 
658
+# By default, devstack will use Ubuntu Cloud Archive.
659
+ENABLE_UBUNTU_CLOUD_ARCHIVE=$(trueorfalse True ENABLE_UBUNTU_CLOUD_ARCHIVE)
658 660
 
659 661
 # Images
660 662
 # ------
... ...
@@ -72,7 +72,10 @@ fi
72 72
 # We've found that Libvirt on Xenial is flaky and crashes enough to be
73 73
 # a regular top e-r bug. Opt into Ubuntu Cloud Archive if on Xenial to
74 74
 # get newer Libvirt.
75
-if [[ "$DISTRO" = "xenial" ]]; then
75
+# Make it possible to switch this based on an environment variable as
76
+# libvirt 2.5.0 doesn't handle nested virtualization quite well and this
77
+# is required for the trove development environment.
78
+if [[ "${ENABLE_UBUNTU_CLOUD_ARCHIVE}" == "True" && "$DISTRO" = "xenial" ]]; then
76 79
     # This pulls in apt-add-repository
77 80
     install_package "software-properties-common"
78 81
     # Use UCA for newer libvirt. Should give us libvirt 2.5.0.