Fix cluster start failure due to missing netmask
authorAndrea Spadaccini <spadaccio@google.com>
Fri, 4 Nov 2011 13:33:59 +0000 (13:33 +0000)
committerAndrea Spadaccini <spadaccio@google.com>
Fri, 4 Nov 2011 14:22:56 +0000 (14:22 +0000)
commit186c03b356a3d351520645293c981a3a5ecb2241
tree42587ffc8a35b5e1a12c6cee2c9ee726bedad2ac
parentd24303b31530dfd6196d2e8c3d01a42193d304f8
Fix cluster start failure due to missing netmask

If the cluster version is upgraded from a version before commit
5a8648eb609f7e3a8d7ad7f82e93cfdd467a8fb5 to a version after that commit,
the master startup will fail because the ssconf file with the master
netmask will not be present, and it is read during the master voting
process.

This patch fixes this bug, making ssconf.GetMasterNetmask return a
default netmask value, and also corrects the docstring of this method.

Signed-off-by: Andrea Spadaccini <spadaccio@google.com>
Reviewed-by: RenĂ© Nussbaumer <rn@google.com>
lib/ssconf.py