Merge pull request #1276 from fnordahl/tempest-compute-count

tempest: Deduce min_compute_nodes from Juju model.
This commit is contained in:
James Page
2024-10-14 17:08:27 +01:00
committed by GitHub
2 changed files with 2 additions and 1 deletions
@@ -25,7 +25,7 @@ image_ref = {{ image_id }}
image_ref_alt = {{ image_alt_id }}
flavor_ref = {{ flavor_ref }}
flavor_ref_alt = {{ flavor_ref_alt }}
min_compute_nodes = 3
min_compute_nodes = {{ min_compute_nodes }}
# TODO: review this as its release specific
# min_microversion = 2.2
@@ -245,6 +245,7 @@ def _add_nova_config(ctxt, keystone_session, missing_fatal=True):
ctxt['flavor_ref'] = flavor.id
if flavor.name == TEMPEST_ALT_FLAVOR_NAME:
ctxt['flavor_ref_alt'] = flavor.id
ctxt['min_compute_nodes'] = len(model.get_units('nova-compute'))
def _add_neutron_config(ctxt, keystone_session, missing_fatal=True):