Skip to content

Commit 9234316

Browse files
Jenkinsopenstack-gerrit
authored andcommitted
Merge "Make use of Ubuntu Cloud Archive switchable"
2 parents 1ca22d5 + bb436d3 commit 9234316

2 files changed

Lines changed: 6 additions & 1 deletion

File tree

stackrc

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -655,6 +655,8 @@ case "$VIRT_DRIVER" in
655655
;;
656656
esac
657657

658+
# By default, devstack will use Ubuntu Cloud Archive.
659+
ENABLE_UBUNTU_CLOUD_ARCHIVE=$(trueorfalse True ENABLE_UBUNTU_CLOUD_ARCHIVE)
658660

659661
# Images
660662
# ------

tools/fixup_stuff.sh

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,10 @@ fi
7272
# We've found that Libvirt on Xenial is flaky and crashes enough to be
7373
# a regular top e-r bug. Opt into Ubuntu Cloud Archive if on Xenial to
7474
# 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
7679
# This pulls in apt-add-repository
7780
install_package "software-properties-common"
7881
# Use UCA for newer libvirt. Should give us libvirt 2.5.0.

0 commit comments

Comments
 (0)