Re-create instance disk symlinks on activate
authorIustin Pop <iustin@google.com>
Fri, 28 Jan 2011 15:53:40 +0000 (16:53 +0100)
committerIustin Pop <iustin@google.com>
Fri, 28 Jan 2011 16:44:15 +0000 (17:44 +0100)
commitc417e1152c3b9ff59ea2091df6b30d1b75371c36
tree3526d2c8044a195789885c03dab320669fae9200
parentb82d4c5e4e5751f12b61a71b16592fb20b8f822e
Re-create instance disk symlinks on activate

This patch implements recreation of instance disk symlinks when the
activate-disks operation is run. Until now, it was not possible to
re-create these symlinks without stopping and starting or migrating an
instance as the RPC call where this is done was in instance startup
and migration.

In order to do this, the blockdev_assemble rpc call needs the disk
index too, which is added to the protocol. This is a change from 2.3
and makes instance startup incompatible (FYI).

Signed-off-by: Iustin Pop <iustin@google.com>
Reviewed-by: Michael Hanselmann <hansmi@google.com>
lib/backend.py
lib/cmdlib.py
lib/rpc.py
lib/server/noded.py