From e52019f7c89fb5cbc75d4f8cd5d37bb1ecc88cb7 Mon Sep 17 00:00:00 2001 From: Guido Trotter <ultrotter@google.com> Date: Tue, 14 Jul 2009 17:47:03 +0200 Subject: [PATCH] Remove ConfigWriter.InitConfig It's been replaced by a simpler bootstrap.InitConfig function, which does the same job, and is currently unused. Signed-off-by: Guido Trotter <ultrotter@google.com> Reviewed-by: Iustin Pop <iustin@google.com> --- lib/config.py | 26 -------------------------- 1 file changed, 26 deletions(-) diff --git a/lib/config.py b/lib/config.py index 679edb3c2..4f7efacd7 100644 --- a/lib/config.py +++ b/lib/config.py @@ -1150,32 +1150,6 @@ class ConfigWriter: constants.SS_RELEASE_VERSION: constants.RELEASE_VERSION, } - @locking.ssynchronized(_config_lock) - def InitConfig(self, version, cluster_config, master_node_config): - """Create the initial cluster configuration. - - It will contain the current node, which will also be the master - node, and no instances. - - @type version: int - @param version: Configuration version - @type cluster_config: objects.Cluster - @param cluster_config: Cluster configuration - @type master_node_config: objects.Node - @param master_node_config: Master node configuration - - """ - nodes = { - master_node_config.name: master_node_config, - } - - self._config_data = objects.ConfigData(version=version, - cluster=cluster_config, - nodes=nodes, - instances={}, - serial_no=1) - self._WriteConfig() - @locking.ssynchronized(_config_lock, shared=1) def GetVGName(self): """Return the volume group name. -- GitLab