Properly update iv_name of disks while changing templates
authorMichele Tartara <mtartara@google.com>
Wed, 10 Apr 2013 14:36:44 +0000 (14:36 +0000)
committerMichele Tartara <mtartara@google.com>
Thu, 11 Apr 2013 11:27:29 +0000 (13:27 +0200)
commitf0583b667ef6f00d75efea95010b9c66510d2f97
tree5014217d0d476f8f73f273e5d0f24c2dde4ce824
parent06c056d3e45cfc49a2ce84aec3918af1ec171f84
Properly update iv_name of disks while changing templates

Trasforming the disk of an instance from DRBD to plain did not properly
update the iv_name of disks, leaving it to None.

This commit modifies _ConvertDrbdToPlain to properly set the iv_name
variables.

An analogous fix is not required in the opposite function,
_ConvertPlainToDrbd, because it uses _GenerateDiskTemplate, that already
takes care of doing that.

Fixes Issue 403.

Signed-off-by: Michele Tartara <mtartara@google.com>
Reviewed-by: Guido Trotter <ultrotter@google.com>
lib/cmdlib.py