Add a rpc call for BlockDev.Close()
authorIustin Pop <iustin@google.com>
Fri, 20 Jun 2008 10:59:15 +0000 (10:59 +0000)
committerIustin Pop <iustin@google.com>
Fri, 20 Jun 2008 10:59:15 +0000 (10:59 +0000)
commit452648304b2d919127d2e101ab639bc03e1bdb31
tree5b01fe391e35dcb6bb34323fdc9326bf42f152a3
parentb12abaf42c1b61142b079b8c4187d26e4e560fc2
Add a rpc call for BlockDev.Close()

This patch adds rpc layer calls (in rpc.py and the equivalent in
ganeti-noded) to close a list of block devices, and the wrapper in
backend.py that takes a list of Disk objects, identifies them and
returns correctly formatted results.

The reason why this very basic call was missing until now from the rpc
layer is that we usually don't care about device closes (though we
should, and will do so in the future) as only drbd has a meaningful
Close() operation; right now we directly do Shutdown().

The patch is clean enough that it's actually independent of the live
migration implementation.

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