Fix issue when changing the disk template to drbd
authorIustin Pop <iustin@google.com>
Thu, 22 Jul 2010 17:00:15 +0000 (13:00 -0400)
committerIustin Pop <iustin@google.com>
Thu, 22 Jul 2010 17:21:03 +0000 (13:21 -0400)
commit6e04dc39bed2ae868bb400d28b411381ca77a40e
tree7495e5cd9298024cee1b5ff54fea4d516c7b80b8
parenta1d8344b628c4aeb46256af9914e175318138a5a
Fix issue when changing the disk template to drbd

If we pass the current primary node, the conversion will fail horribly
with LVM creation errors. Instead, we catch and check for this
condition in CheckPrereq.

Signed-off-by: Iustin Pop <iustin@google.com>
Reviewed-by: Guido Trotter <ultrotter@google.com>
lib/cmdlib.py