Improve error handling in netmask change
authorAndrea Spadaccini <spadaccio@google.com>
Fri, 4 Nov 2011 16:35:16 +0000 (16:35 +0000)
committerAndrea Spadaccini <spadaccio@google.com>
Mon, 7 Nov 2011 14:32:22 +0000 (14:32 +0000)
commit9e6014b9a8f4a9a4b7540d6737cc0ffd161b4bd8
tree48f22037621f50b1ab4ce0c40224394ffef2e98e
parent0007f3ab7d3c6f7a5fc67c3264aa6f5c0d9cd2f8
Improve error handling in netmask change

- check if the master IP with the old netmask is up before attempting to
  change the netmask (to avoid a failed change netmask resulting in an
  undesired activation of the master IP);
- improve error messages of the backend function;
- in case of error, report the problem but otherwise change the cluster
  master_netmask parameter;
- remove duplicate error feedback.

Signed-off-by: Andrea Spadaccini <spadaccio@google.com>
Reviewed-by: Michael Hanselmann <hansmi@google.com>
lib/backend.py
lib/cmdlib.py