Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fallback to 0 minimum compute when no nova-compute units #1282

Merged
merged 1 commit into from
Oct 18, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion zaza/openstack/charm_tests/tempest/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -245,7 +245,10 @@ 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'))
try:
ctxt['min_compute_nodes'] = len(model.get_units('nova-compute'))
except KeyError:
ctxt['min_compute_nodes'] = 0


def _add_neutron_config(ctxt, keystone_session, missing_fatal=True):
Expand Down
Loading