From 8a113c7a3e3761dad77f22bf27dc11147854a345 Mon Sep 17 00:00:00 2001
From: Iustin Pop <iustin@google.com>
Date: Fri, 9 Jan 2009 16:24:05 +0000
Subject: [PATCH] Add a new ssconf file with the ganeti version

The patch adds a new ssconf file containing the ganeti version.

Reviewed-by: imsnah
---
 lib/config.py    | 1 +
 lib/constants.py | 1 +
 lib/ssconf.py    | 1 +
 3 files changed, 3 insertions(+)

diff --git a/lib/config.py b/lib/config.py
index 986b03a4c..29acbd16a 100644
--- a/lib/config.py
+++ b/lib/config.py
@@ -992,6 +992,7 @@ class ConfigWriter:
       constants.SS_MASTER_NODE: cluster.master_node,
       constants.SS_NODE_LIST: node_data,
       constants.SS_OFFLINE_NODES: off_data,
+      constants.SS_RELEASE_VERSION: constants.RELEASE_VERSION,
       }
 
   @locking.ssynchronized(_config_lock)
diff --git a/lib/constants.py b/lib/constants.py
index bbe29e4c5..ae16d26e6 100644
--- a/lib/constants.py
+++ b/lib/constants.py
@@ -414,6 +414,7 @@ SS_MASTER_NETDEV = "master_netdev"
 SS_MASTER_NODE = "master_node"
 SS_NODE_LIST = "node_list"
 SS_OFFLINE_NODES = "offline_nodes"
+SS_RELEASE_VERSION = "release_version"
 
 # cluster wide default parameters
 DEFAULT_ENABLED_HYPERVISOR = HT_XEN_PVM
diff --git a/lib/ssconf.py b/lib/ssconf.py
index 225f38c18..f575d129f 100644
--- a/lib/ssconf.py
+++ b/lib/ssconf.py
@@ -133,6 +133,7 @@ class SimpleStore(object):
     constants.SS_MASTER_NODE,
     constants.SS_NODE_LIST,
     constants.SS_OFFLINE_NODES,
+    constants.SS_RELEASE_VERSION,
     )
   _MAX_SIZE = 131072
 
-- 
GitLab