Some fixes to node add and re-add
authorIustin Pop <iustin@google.com>
Tue, 10 Feb 2009 16:05:24 +0000 (16:05 +0000)
committerIustin Pop <iustin@google.com>
Tue, 10 Feb 2009 16:05:24 +0000 (16:05 +0000)
commit82e12743915efc510097f72f50ad547710cb66d7
treec981f4bbd9aedc2a6d99b87ece2d99bcedf86c32
parenta5728081faa3068dcb797a7ccccd9ce47c0b23e0
Some fixes to node add and re-add

The patch changes the pre-checks in node-add and re-add:
  - if the node is not already in the cluster, refuse to re-add
  - when re-adding, reuse the secondary IP from the cluster
    configuration
  - when re-adding, reset the offline and drained flags, so that RPC
    calls work (and we can actually upload the keys)

The patch also adds a missing log entry in LUSetNodeParams.

Reviewed-by: imsnah
lib/cmdlib.py
scripts/gnt-node