From 7f7f488bc385dd707a3a6d8dae7859bbe72182e5 Mon Sep 17 00:00:00 2001 From: Lee Yarwood Date: Thu, 20 Aug 2020 09:27:01 +0100 Subject: [PATCH] Bionic: Enable Train UCA for updated QEMU and libvirt This is will allow the openstack/nova project to facilitate a minimum required version bump of QEMU and libvirt within the libvirt virt driver in I8e349849db0b1a540d295c903f1470917b82fd97 ahead of the planned switch to focal later in Victoria. Change-Id: I85eb45632ff229676f7c29708f4a7cc64b3d90e3 --- tools/fixup_stuff.sh | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/tools/fixup_stuff.sh b/tools/fixup_stuff.sh index bf31dcbebb..550239a2d9 100755 --- a/tools/fixup_stuff.sh +++ b/tools/fixup_stuff.sh @@ -73,6 +73,18 @@ function fixup_ubuntu { # Enable universe sudo add-apt-repository -y universe + if [[ -f /etc/ci/mirror_info.sh ]] ; then + # If we are on a nodepool provided host and it has told us about + # where we can find local mirrors then use that mirror. + source /etc/ci/mirror_info.sh + sudo apt-add-repository -y "deb $NODEPOOL_UCA_MIRROR bionic-updates/train main" + else + # Enable UCA:train for updated versions of QEMU and libvirt + sudo add-apt-repository -y cloud-archive:train + fi + REPOS_UPDATED=False + apt_get_update + # Since pip10, pip will refuse to uninstall files from packages # that were created with distutils (rather than more modern # setuptools). This is because it technically doesn't have a