Move cluster verification out of prepare-node-join
authorMichael Hanselmann <hansmi@google.com>
Wed, 28 Nov 2012 09:03:40 +0000 (10:03 +0100)
committerMichael Hanselmann <hansmi@google.com>
Wed, 28 Nov 2012 11:48:47 +0000 (12:48 +0100)
commitdffa96d6dd854a64a05f87ba824c31153b797f38
tree87c2e7b3bff5b966aacf131a9864427f7d1a5740
parent911dfc49c432bdc486876b7dd3d3067db3edb961
Move cluster verification out of prepare-node-join

A new tool for configuring the node daemon will also have to verify the
cluster name, so it's better to have this function in a central place.
In the process of moving it to ssconf it is also changed to use
“SimpleStore” instead of reading the ssconf directly. Tests are updated.

Signed-off-by: Michael Hanselmann <hansmi@google.com>
Reviewed-by: Helga Velroyen <helgav@google.com>
lib/ssconf.py
lib/tools/prepare_node_join.py
test/ganeti.ssconf_unittest.py
test/ganeti.tools.prepare_node_join_unittest.py