Commit 65b526e7 authored by Klaus Aehlig's avatar Klaus Aehlig
Browse files

Remove osparams_private when downgrading the configuration

The instance parameter "osparams_private" was newly introduced
in 2.12. So remove it when downgrading the configuration to 2.11.
Signed-off-by: default avatarKlaus Aehlig <>
Reviewed-by: default avatarHrvoje Ribicic <>
parent 4f7cc3c2
......@@ -410,12 +410,21 @@ def DowngradeCluster(config_data):
if "osparams_private_cluster" in cluster:
del cluster["osparams_private_cluster"]
def DowngradeInstances(config_data):
instances = config_data.get("instances", None)
if not instances:
raise Error("Cannot find the 'instances' key in the configuration")
for (_, iobj) in instances.items():
if "osparams_private" in iobj:
del iobj["osparams_private"]
def DowngradeAll(config_data):
# Any code specific to a particular version should be labeled that way, so
# it can be removed when updating to the next version.
config_data["version"] = version.BuildVersion(DOWNGRADE_MAJOR,
def main():
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment