Move the cluster name from ConfigWriter to SimpleStore.
authorIustin Pop <iustin@google.com>
Fri, 27 Jul 2007 07:41:30 +0000 (07:41 +0000)
committerIustin Pop <iustin@google.com>
Fri, 27 Jul 2007 07:41:30 +0000 (07:41 +0000)
commit5fcdc80db13233a8718074a18064c40b0d3a1e20
tree8cafec23f4cab0f728e3e82bf910ed53118beb99
parentfe7b03519bbba088359c0dad5b8602acdbf73147
Move the cluster name from ConfigWriter to SimpleStore.

Reason: if left ConfigWriter, nodes don't know to which cluster they belong.
This will bite us later when we'll revisit node join operation.

Cons: we lose the cluster name from the config file, which means a
standalone "cluster.data" is a little bit harder to analyze. But I have
a plan for this which will follow shortly.

Implementing this will also allow us to cleanly fix "gnt-cluster
getmaster".

Reviewed-by: imsnah
lib/cmdlib.py
lib/config.py
lib/mcpu.py
lib/objects.py
lib/ssconf.py
testing/mocks.py
tools/cfgshell