Disable train cinder consistency group support

Cinder consistency group support was removed from upstream horizon
as of Train, and has been replaced by the generic group feature.

Change-Id: Iebf4d441b36e7c31b200205cd9bbee0d1fb9a47c
Closes-Bug: #1841188
This commit is contained in:
Corey Bryant 2019-09-03 19:45:52 +00:00
parent 101098a1c2
commit 983d7466d4
2 changed files with 7 additions and 1 deletions

View File

@ -370,3 +370,8 @@ options:
avoid having the Consistency Groups tabs on Horizon without the feature
enabled on Cinder, this also defaults to False. Setting this to True
will make the Consistency Groups tabs appear on the dashboard.
.
This option is supported for releases up to OpenStack Stein only. As of
OpenStack Train, consistency groups have been dropped and replaced by
the generic group feature. Setting this option for OpenStack Train or
above will not do anything.

View File

@ -191,7 +191,8 @@ def register_configs():
HAPROXY_CONF,
PORTS_CONF]
if CompareOpenStackReleases(release) >= 'queens':
if (CompareOpenStackReleases(release) >= 'queens' and
CompareOpenStackReleases(release) <= 'stein'):
configs.register(
CONSISTENCY_GROUP_POLICY,
CONFIG_FILES[CONSISTENCY_GROUP_POLICY]['hook_contexts'])