Merge "Use Queens UCA"
This commit is contained in:
commit
72042fc6a7
7
stackrc
7
stackrc
@ -625,12 +625,7 @@ VIRT_DRIVER=${VIRT_DRIVER:-$DEFAULT_VIRT_DRIVER}
|
|||||||
case "$VIRT_DRIVER" in
|
case "$VIRT_DRIVER" in
|
||||||
ironic|libvirt)
|
ironic|libvirt)
|
||||||
LIBVIRT_TYPE=${LIBVIRT_TYPE:-kvm}
|
LIBVIRT_TYPE=${LIBVIRT_TYPE:-kvm}
|
||||||
# If ENABLE_VOLUME_MULTIATTACH is True, the Ubuntu Cloud Archive can't
|
if [[ "$os_VENDOR" =~ (Debian|Ubuntu) ]]; then
|
||||||
# be used until it provides libvirt>=3.10, and with older versions of
|
|
||||||
# Ubuntu the group is "libvirtd".
|
|
||||||
# TODO(mriedem): Remove the ENABLE_VOLUME_MULTIATTACH check when
|
|
||||||
# UCA has libvirt>=3.10.
|
|
||||||
if [[ "$os_VENDOR" =~ (Debian|Ubuntu) && "${ENABLE_VOLUME_MULTIATTACH}" == "False" ]]; then
|
|
||||||
# The groups change with newer libvirt. Older Ubuntu used
|
# The groups change with newer libvirt. Older Ubuntu used
|
||||||
# 'libvirtd', but now uses libvirt like Debian. Do a quick check
|
# 'libvirtd', but now uses libvirt like Debian. Do a quick check
|
||||||
# to see if libvirtd group already exists to handle grenade's case.
|
# to see if libvirtd group already exists to handle grenade's case.
|
||||||
|
@ -77,28 +77,23 @@ function fixup_keystone {
|
|||||||
# Make it possible to switch this based on an environment variable as
|
# 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
|
# libvirt 2.5.0 doesn't handle nested virtualization quite well and this
|
||||||
# is required for the trove development environment.
|
# is required for the trove development environment.
|
||||||
# The Pike UCA has qemu 2.10 but libvirt 3.6, therefore if
|
|
||||||
# ENABLE_VOLUME_MULTIATTACH is True, we can't use the Pike UCA
|
|
||||||
# because multiattach won't work with those package versions.
|
|
||||||
# We can remove this check when the UCA has libvirt>=3.10.
|
|
||||||
function fixup_uca {
|
function fixup_uca {
|
||||||
if [[ "${ENABLE_UBUNTU_CLOUD_ARCHIVE}" == "False" || "$DISTRO" != "xenial" || \
|
if [[ "${ENABLE_UBUNTU_CLOUD_ARCHIVE}" == "False" || "$DISTRO" != "xenial" ]]; then
|
||||||
"${ENABLE_VOLUME_MULTIATTACH}" == "True" ]]; then
|
|
||||||
return
|
return
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# This pulls in apt-add-repository
|
# This pulls in apt-add-repository
|
||||||
install_package "software-properties-common"
|
install_package "software-properties-common"
|
||||||
# Use UCA for newer libvirt. Should give us libvirt 2.5.0.
|
# Use UCA for newer libvirt.
|
||||||
if [[ -f /etc/ci/mirror_info.sh ]] ; then
|
if [[ -f /etc/ci/mirror_info.sh ]] ; then
|
||||||
# If we are on a nodepool provided host and it has told us about where
|
# If we are on a nodepool provided host and it has told us about where
|
||||||
# we can find local mirrors then use that mirror.
|
# we can find local mirrors then use that mirror.
|
||||||
source /etc/ci/mirror_info.sh
|
source /etc/ci/mirror_info.sh
|
||||||
|
|
||||||
sudo apt-add-repository -y "deb $NODEPOOL_UCA_MIRROR xenial-updates/pike main"
|
sudo apt-add-repository -y "deb $NODEPOOL_UCA_MIRROR xenial-updates/queens main"
|
||||||
else
|
else
|
||||||
# Otherwise use upstream UCA
|
# Otherwise use upstream UCA
|
||||||
sudo add-apt-repository -y cloud-archive:pike
|
sudo add-apt-repository -y cloud-archive:queens
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Disable use of libvirt wheel since a cached wheel build might be
|
# Disable use of libvirt wheel since a cached wheel build might be
|
||||||
|
Loading…
Reference in New Issue
Block a user