commit | e1297193dcb93acc1f7b89f5fe91babbcc6dda49 | [log] [tgz] |
---|---|---|
author | Jay Faulkner <jay@jvf.cc> | Sun Sep 10 16:24:38 2023 -0700 |
committer | Jay Faulkner <jay@jvf.cc> | Mon Sep 11 17:44:09 2023 +0000 |
tree | 849dd5670ad956477017cea88b223f8efa6edbfa | |
parent | d51a6b9a1141b687e48ba82e63984a7d44a632c3 [diff] [blame] |
[nova][ironic] Support configuring 1 shard on n-cpu Allows for testing of basic sharding configuration. Change-Id: Idfb2bd1822898d95af8643d69d97d9a76b4d64cc Needed-By: https://review.opendev.org/c/openstack/ironic/+/894460
diff --git a/functions-common b/functions-common index f752271..c57c4cc 100644 --- a/functions-common +++ b/functions-common
@@ -1114,6 +1114,12 @@ 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 # =================