Revert "Get rid of ssconf"
authorIustin Pop <iustin@google.com>
Tue, 2 Dec 2008 05:03:52 +0000 (05:03 +0000)
committerIustin Pop <iustin@google.com>
Tue, 2 Dec 2008 05:03:52 +0000 (05:03 +0000)
commit93384844b72970fc8b2c6eb2d9ada4923a457583
treebccfbdfaf620ab9630917aa192f96144ff7ab906
parentb518a14ac312c86b0ae5446a2bbf53ce6e1093e7
Revert "Get rid of ssconf"

This partially reverts the "Get rid of ssconf" patch.

It adds back a simpler version of the SimpleStore class, and drops the
WritableSimpleStore class. The new version of the class also has
node_list as a new key, and increases the size of the keys so that big
clusters will fit the node list. Also, the SS_* constants are moved to
constants.py, since the ConfigWriter class will need them too in order
to generate the values dictionary.

It also changes the GetMasterAndMyself function to use the SimpleStore
by default, and the backend._GetConfig to use it too (it has all the
needed keys).

Reviewed-by: imsnah
lib/backend.py
lib/constants.py
lib/ssconf.py