Add a rpc call for drbd network reconfiguration
authorIustin Pop <iustin@google.com>
Mon, 23 Jun 2008 14:04:16 +0000 (14:04 +0000)
committerIustin Pop <iustin@google.com>
Mon, 23 Jun 2008 14:04:16 +0000 (14:04 +0000)
commit4cf5b6eb5c35cba571dc37ac1617972847af553a
treedca12e933a972bc46b91ba61f11a51a7a8425a94
parent36e22806c0c43068dc8a7a77276f09fd0f3a337a
Add a rpc call for drbd network reconfiguration

This patch adds a rpc call and backend.py implementation over the
low-level bdev.DRBD8.ReAttachNet() call.

The rpc call and reconfiguration is done in such a way that it needs to
be called to two nodes in parallel, and will wait (with one minute
timeout) until the two nodes are reconnected with the new configuration.
Note that this means that if the rpc calls cannot be launched in
parallel to the two nodes, this call will fail.

The patch also adds an extra attribute to the bdev.DRBD8Status class,
and changes the blockdev_close rpc to also pass the instance name to
backend.CloseBlockDevices(), in order to cleanup the symlinks (which are
create in the DrbdReconfigNet function).

Reviewed-by: imsnah
daemons/ganeti-noded
lib/backend.py
lib/bdev.py
lib/rpc.py