summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVasyl Saienko <vsaienko@mirantis.com>2017-01-12 13:40:52 +0200
committerJohn L. Villalovos <john.l.villalovos@intel.com>2017-01-12 09:17:25 -0800
commitcc03e0262aeb92308b4f264b69db8c01d5296b20 (patch)
tree6e69df65e5682c56a5af9d7c4ef4707782c36fde
parent6bf63a06ef3a70cfea26752194323b6128f9fe2d (diff)
downloadironic-cc03e0262aeb92308b4f264b69db8c01d5296b20.tar.gz
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 Set TEMPEST_BAREMETAL_MAX_MICROVERSION to 1.22 as it is latest API version for newton release. Conflicts: doc/source/dev/releasing.rst Related-Bug: #1655888 Change-Id: Id6d36280f622549a2877aab99c11e4008af67fe7 (cherry picked from commit 76b91709ae24490721f0d60f19eea5ea5ec71434)
-rw-r--r--devstack/lib/ironic14
1 files changed, 14 insertions, 0 deletions
diff --git a/devstack/lib/ironic b/devstack/lib/ironic
index 7b805802c..280fc7d4a 100644
--- a/devstack/lib/ironic
+++ b/devstack/lib/ironic
@@ -309,6 +309,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:-'1.22'}
+
# get_pxe_boot_file() - Get the PXE/iPXE boot file path
function get_pxe_boot_file {
local relpath=syslinux/pxelinux.0
@@ -1500,6 +1507,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"