From a9d7d8fd99870e28a741800259a9916111370e81 Mon Sep 17 00:00:00 2001 From: Jakub Libosvar Date: Mon, 25 Feb 2019 15:08:46 +0100 Subject: [PATCH] Set available_nodes in tempest conf The patch sets the available_nodes config option in tempest.conf that is consumed by the ironic multitenancy tests. Needed-By: https://review.openstack.org/639098 Change-Id: Id8087375088180174247370d129f78cc06b1d49e --- devstack/lib/ironic | 3 +++ 1 file changed, 3 insertions(+) diff --git a/devstack/lib/ironic b/devstack/lib/ironic index e10ef7e714..fe06e67f7a 100644 --- a/devstack/lib/ironic +++ b/devstack/lib/ironic @@ -2454,6 +2454,9 @@ function ironic_configure_tempest { if [[ -n "$TEMPEST_BAREMETAL_MAX_MICROVERSION" ]]; then iniset $TEMPEST_CONFIG baremetal max_microversion $TEMPEST_BAREMETAL_MAX_MICROVERSION fi + if [[ -n "$IRONIC_VM_COUNT" ]]; then + iniset $TEMPEST_CONFIG baremetal available_nodes $IRONIC_VM_COUNT + fi if [[ -n "$IRONIC_PING_TIMEOUT" ]]; then iniset $TEMPEST_CONFIG validation ping_timeout $IRONIC_PING_TIMEOUT fi