Merge "[nova][ironic] Support configuring 1 shard on n-cpu"

This commit is contained in:
Zuul 2023-09-12 11:37:19 +00:00 committed by Gerrit Code Review
commit 428cb8a0a9
2 changed files with 10 additions and 0 deletions

View File

@ -1114,6 +1114,12 @@ function is_ironic_enforce_scope {
return 1
}
function is_ironic_sharded {
# todo(JayF): Support >1 shard with multiple n-cpu instances for each
is_service_enabled ironic && [[ "$IRONIC_SHARDS" == "1" ]] && return 0
return 1
}
# Package Functions
# =================

View File

@ -53,6 +53,10 @@ function configure_nova_hypervisor {
iniset $NOVA_CONF ironic project_domain_id default
iniset $NOVA_CONF ironic project_name demo
fi
if is_ironic_sharded; then
iniset $NOVA_CONF ironic shard $IRONIC_SHARD_1_NAME
fi
iniset $NOVA_CONF ironic user_domain_id default
iniset $NOVA_CONF ironic region_name $REGION_NAME