Fix two issues with exports and snapshot errors
authorIustin Pop <iustin@google.com>
Wed, 3 Jun 2009 12:00:59 +0000 (14:00 +0200)
committerIustin Pop <iustin@google.com>
Wed, 3 Jun 2009 12:17:29 +0000 (14:17 +0200)
commita97da6b7fa44603bf4649785b1c43bbbaa1ce522
treefb7c1258afd9d6d6ff19cafa3e855b8310496be9
parent2cd855dd497bf8d40879220887a0a287ca1f8a8f
Fix two issues with exports and snapshot errors

This patch fixes two issues related to failed snapshots during exports:
  - first, the error messages used disk.logical_id[1], which is a node
    name for DRBD, and it resulted in strange error messages like
    "cannot snapshot block device node1 on node2"
  - second, if snapshotting fails for any disk, rpc.call_finalize_export
    fails as it didn't handle booleans (backend.FinalizeExport does)

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