Allow to set min,max API microversion in tempest
This patch introduce new devstack variables to set min and max Ironic API version to allow skip tempest tests. TEMPEST_BAREMETAL_MIN_MICROVERSION TEMPEST_BAREMETAL_MAX_MICROVERSION Update release documentation. Related-Bug: #1655888 Change-Id: Id6d36280f622549a2877aab99c11e4008af67fe7
This commit is contained in:
parent
b0ca1b9ed0
commit
76b91709ae
@ -356,6 +356,13 @@ IRONIC_DEPLOY_LOGS_STORAGE_BACKEND=${IRONIC_DEPLOY_LOGS_STORAGE_BACKEND:-local}
|
||||
# The path to the directory where Ironic should put the logs when IRONIC_DEPLOY_LOGS_STORAGE_BACKEND is set to "local"
|
||||
IRONIC_DEPLOY_LOGS_LOCAL_PATH=${IRONIC_DEPLOY_LOGS_LOCAL_PATH:-$IRONIC_VM_LOG_DIR/deploy_logs}
|
||||
|
||||
|
||||
# Define baremetal min_microversion in tempest config. Default value None is picked from tempest.
|
||||
TEMPEST_BAREMETAL_MIN_MICROVERSION=${TEMPEST_BAREMETAL_MIN_MICROVERSION:-}
|
||||
|
||||
# Define baremetal max_microversion in tempest config. No default value means that it is picked from tempest.
|
||||
TEMPEST_BAREMETAL_MAX_MICROVERSION=${TEMPEST_BAREMETAL_MAX_MICROVERSION:-}
|
||||
|
||||
# get_pxe_boot_file() - Get the PXE/iPXE boot file path
|
||||
function get_pxe_boot_file {
|
||||
local pxe_boot_file
|
||||
@ -1708,6 +1715,13 @@ function cleanup_baremetal_basic_ops {
|
||||
function ironic_configure_tempest {
|
||||
iniset $TEMPEST_CONFIG service_available ironic True
|
||||
|
||||
if [[ -n "$TEMPEST_BAREMETAL_MIN_MICROVERSION" ]]; then
|
||||
iniset $TEMPEST_CONFIG baremetal min_microversion $TEMPEST_BAREMETAL_MIN_MICROVERSION
|
||||
fi
|
||||
if [[ -n "$TEMPEST_BAREMETAL_MAX_MICROVERSION" ]]; then
|
||||
iniset $TEMPEST_CONFIG baremetal max_microversion $TEMPEST_BAREMETAL_MAX_MICROVERSION
|
||||
fi
|
||||
|
||||
local bm_flavor_id
|
||||
bm_flavor_id=$(openstack flavor show baremetal -f value -c id)
|
||||
die_if_not_set $LINENO bm_flavor_id "Failed to get id of baremetal flavor"
|
||||
|
@ -45,6 +45,10 @@ Things to do before releasing
|
||||
version history (doc/source/dev/webapi-version-history.rst) to
|
||||
indicate that they were part of the new release.
|
||||
|
||||
* Set appropriate defaults for TEMPEST_BAREMETAL_MIN_MICROVERSION and
|
||||
TEMPEST_BAREMETAL_MAX_MICROVERSION in devstack/lib/ironic to make sure that
|
||||
unsupported API tempest tests are skipped on stable branches.
|
||||
|
||||
.. _`standards`: http://docs.openstack.org/developer/ironic/dev/faq.html#know-if-a-release-note-is-needed-for-my-change
|
||||
|
||||
Things to do after releasing
|
||||
|
Loading…
x
Reference in New Issue
Block a user