Merge "devstack: switch to using CentOS 8 DIB ramdisks by default"

This commit is contained in:
Zuul 2020-01-09 12:32:24 +00:00 committed by Gerrit Code Review
commit 9669948732
3 changed files with 15 additions and 5 deletions

View File

@ -259,7 +259,8 @@ IPA_DOWNLOAD_BRANCH=${IPA_DOWNLOAD_BRANCH:-master}
IPA_DOWNLOAD_BRANCH=$(echo $IPA_DOWNLOAD_BRANCH | tr / -)
# OS for using with DIB images
IRONIC_DIB_RAMDISK_OS=centos7
IRONIC_DIB_RAMDISK_OS=${IRONIC_DIB_RAMDISK_OS:-centos8}
IRONIC_DIB_RAMDISK_RELEASE=${IRONIC_DIB_RAMDISK_RELEASE:-}
# Configure URLs required to download ramdisk if we're not building it, and
# IRONIC_DEPLOY_RAMDISK/KERNEL or the RAMDISK/KERNEL_URLs have not been
@ -283,7 +284,15 @@ fi
# This refers the options for disk-image-create and the platform on which
# to build the dib based ironic-python-agent ramdisk.
IRONIC_DIB_RAMDISK_OPTIONS=${IRONIC_DIB_RAMDISK_OPTIONS:-"$IRONIC_DIB_RAMDISK_OS"}
IRONIC_DIB_RAMDISK_OPTIONS=${IRONIC_DIB_RAMDISK_OPTIONS:-}
if [[ -z "$IRONIC_DIB_RAMDISK_OPTIONS" ]]; then
if [[ "$IRONIC_DIB_RAMDISK_OS" == "centos8" ]]; then
# Adapt for DIB naming change
IRONIC_DIB_RAMDISK_OS=centos-minimal
IRONIC_DIB_RAMDISK_RELEASE=8
fi
IRONIC_DIB_RAMDISK_OPTIONS="$IRONIC_DIB_RAMDISK_OS"
fi
# DHCP timeout for the dhcp-all-interfaces element.
IRONIC_DIB_DHCP_TIMEOUT=${IRONIC_DIB_DHCP_TIMEOUT:-60}
@ -2542,6 +2551,7 @@ function build_ipa_dib_ramdisk {
git_clone $IRONIC_PYTHON_AGENT_BUILDER_REPO $IRONIC_PYTHON_AGENT_BUILDER_DIR $IRONIC_PYTHON_AGENT_BUILDER_BRANCH
ELEMENTS_PATH="$IRONIC_PYTHON_AGENT_BUILDER_DIR/dib" \
DIB_DHCP_TIMEOUT=$IRONIC_DIB_DHCP_TIMEOUT \
DIB_RELEASE=$IRONIC_DIB_RAMDISK_RELEASE \
disk-image-create "$IRONIC_DIB_RAMDISK_OPTIONS" \
-x -o "$tempdir/ironic-agent" \
ironic-python-agent-ramdisk

View File

@ -580,7 +580,7 @@
- ^tox.ini$
- job:
name: ironic-tempest-ipa-wholedisk-bios-ipmi-direct-dib-centos7
name: ironic-tempest-ipa-wholedisk-bios-ipmi-direct-dib
parent: ironic-base
timeout: 9600
vars:
@ -593,7 +593,7 @@
devstack_localrc:
IRONIC_DEFAULT_DEPLOY_INTERFACE: direct
IRONIC_RAMDISK_TYPE: dib
IRONIC_DIB_RAMDISK_OS: centos7
IRONIC_DIB_RAMDISK_OS: centos8
IRONIC_TEMPEST_WHOLE_DISK_IMAGE: True
IRONIC_TEMPEST_BUILD_TIMEOUT: 900
IRONIC_VM_EPHEMERAL_DISK: 0

View File

@ -39,7 +39,7 @@
voting: false
- ironic-inspector-tempest-partition-bios-redfish-vmedia:
voting: false
- ironic-tempest-ipa-wholedisk-bios-ipmi-direct-dib-centos7:
- ironic-tempest-ipa-wholedisk-bios-ipmi-direct-dib:
voting: false
- bifrost-integration-tinyipa-ubuntu-xenial:
voting: false