Rework the migration implementation
authorIustin Pop <iustin@google.com>
Thu, 26 Jun 2008 15:03:02 +0000 (15:03 +0000)
committerIustin Pop <iustin@google.com>
Thu, 26 Jun 2008 15:03:02 +0000 (15:03 +0000)
commiteddabe9983f954635e1da7d25909859be31e2929
tree1e66685efdab6bfad2230bf38e5a2501db590aa9
parentdc35ee9538f88eb1e0cfad5edb10b2e786d81824
Rework the migration implementation

The current migration code has many issues related to the
synchronization between nodes in the drbd network reconfiguration part.
As such, a new algorithm is implemented that uses the master as a
synchronization point, and implementing a cache of bdevs in the backend
to allow the rpc to resume from the previous state.

The code also splits the LU code in a few methods, so that we can reuse
it better when we implement the â€˜--recover’ flag.

Reviewed-by: ultrotter
daemons/ganeti-noded
lib/backend.py
lib/bdev.py
lib/cmdlib.py
lib/constants.py
lib/rpc.py