diff options
author | Vasyl Saienko <vsaienko@mirantis.com> | 2017-01-12 13:40:52 +0200 |
---|---|---|
committer | John L. Villalovos <john.l.villalovos@intel.com> | 2017-01-12 09:12:04 -0800 |
commit | 76b91709ae24490721f0d60f19eea5ea5ec71434 (patch) | |
tree | 36776c415b9f646115d9b7b1bc1594f14af89010 /devstack | |
parent | b0ca1b9ed02bc7d81d5b5f7ca290de2dc8dccac7 (diff) | |
download | ironic-76b91709ae24490721f0d60f19eea5ea5ec71434.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
Update release documentation.
Related-Bug: #1655888
Change-Id: Id6d36280f622549a2877aab99c11e4008af67fe7
Diffstat (limited to 'devstack')
-rw-r--r-- | devstack/lib/ironic | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/devstack/lib/ironic b/devstack/lib/ironic index 9cb4a1853..e6cb83e38 100644 --- a/devstack/lib/ironic +++ b/devstack/lib/ironic @@ -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" |