Cleanup replace-disks modes and options
authorIustin Pop <iustin@google.com>
Fri, 9 Jan 2009 12:22:51 +0000 (12:22 +0000)
committerIustin Pop <iustin@google.com>
Fri, 9 Jan 2009 12:22:51 +0000 (12:22 +0000)
commit7e9366f7b0c77b63d7c4cc971ac06125ac34b48c
tree9c1e6bdbe5d3c2843683d07a536f44e2974f5aa0
parent82e37788bd53794a0840229c45f11e13c1182728
Cleanup replace-disks modes and options

In 1.2, due to the md+drbd7 legacy, we had a complex choice of replace
modes, and the new drbd8 modes where forced into this syntax, with some
complicated rules of transition from one mode to another (if REPLACE_ALL
but not new node passed, switch to REPLACE_SEC, etc.).

This patch cleans this situation by making a clear separation between
the two main modes:
  - replace on current nodes (with the two sub-cases on primary and on
    secondary)
  - change to a new node (either via manually specified node or via
    iallocator)

Reviewed-by: imsnah
lib/cmdlib.py
lib/constants.py
man/gnt-instance.sgml
scripts/gnt-instance