Update blockdev's "info" at instance rename
authorIustin Pop <iustin@google.com>
Thu, 18 Oct 2012 15:59:56 +0000 (17:59 +0200)
committerIustin Pop <iustin@google.com>
Fri, 19 Oct 2012 14:55:25 +0000 (16:55 +0200)
commit48e175a2934fdb473466b2a7e52d16b91d5b87be
tree50449af38890b52d26a13dc9559f80c72075fb2b
parenta1556cfa77d6f92ce7e3c640a98d37dd7ad04813
Update blockdev's "info" at instance rename

Currently, we set "info" metadata on block devices at device creation
time, but we never update it, leading to stale data in case of
instance renames. This would not be a big problem in case of regular
renames (assuming this is a rare operation), but importing instances
into the cluster via the import/export feature usually is done with a
rename; this means that all imported instances have wrong information
in their block devices.

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