From 9c266df8be21f9e73136e96ba42cf04e5f49bae2 Mon Sep 17 00:00:00 2001 From: Varsha Date: Wed, 13 Mar 2019 16:19:52 +0530 Subject: [PATCH] Deprecates `hash_distribution_replicas` config option The `hash_distribution_replicas` was an experimental feature. It accounted for the number of hosts to map onto each hash partition and caused a couple of bugs. Story: #1680160 Task: #10585 Change-Id: I72c19b46f63b139a1a4b1fd0f6c41a1e62e65383 --- ironic/conf/default.py | 3 ++- ...eprecate-hash-distribution-replicas-ef0626ccc592b70e.yaml | 5 +++++ 2 files changed, 7 insertions(+), 1 deletion(-) create mode 100644 releasenotes/notes/deprecate-hash-distribution-replicas-ef0626ccc592b70e.yaml diff --git a/ironic/conf/default.py b/ironic/conf/default.py index 9603e62d1c..bc0043139d 100644 --- a/ironic/conf/default.py +++ b/ironic/conf/default.py @@ -190,7 +190,8 @@ hash_opts = [ 'Setting this to more than one will cause additional ' 'conductor services to prepare deployment environments ' 'and potentially allow the Ironic cluster to recover ' - 'more quickly if a conductor instance is terminated.')), + 'more quickly if a conductor instance is terminated.'), + deprecated_for_removal=True), cfg.IntOpt('hash_ring_reset_interval', default=15, help=_('Time (in seconds) after which the hash ring is ' diff --git a/releasenotes/notes/deprecate-hash-distribution-replicas-ef0626ccc592b70e.yaml b/releasenotes/notes/deprecate-hash-distribution-replicas-ef0626ccc592b70e.yaml new file mode 100644 index 0000000000..dbf2fd61ea --- /dev/null +++ b/releasenotes/notes/deprecate-hash-distribution-replicas-ef0626ccc592b70e.yaml @@ -0,0 +1,5 @@ +--- +deprecations: + - | + The "hash_distribution_replicas" configuration option is now deprecated. + If specified in the config file, a warning is logged.