Fix propagation of storage parameters to/from backend
authorHelga Velroyen <helgav@google.com>
Wed, 3 Jul 2013 11:04:38 +0000 (13:04 +0200)
committerHelga Velroyen <helgav@google.com>
Wed, 3 Jul 2013 16:57:35 +0000 (18:57 +0200)
commit52a8a6ae5978411775666ee9144eae2481fc18c7
tree1dc1cb7a9191b7c7600638928fe317d9386c22f1
parent109a21b12be4e9b3339a61c1f05313c461328fcf
Fix propagation of storage parameters to/from backend

This patch fixes two problems with the storage reporting
that showed up in the QA for exclusive storage:

- The processing of storage space information for instance
  operations wrongly assumed that the volume group's
  storage information is always the first in the list.
- The storage parameter 'exclusive storage' was not
  correctly extracted from the list of storage parameters.
- There was a bug in the preparation of storage unit for
  the node info call in the iallocator. The exclusive
  storage flag was not set for spindles and the format
  of the storage parameters for LVM vgs was a boolean
  and not a list.

Signed-off-by: Helga Velroyen <helgav@google.com>
Reviewed-by: Klaus Aehlig <aehlig@google.com>
Reviewed-by: Michele Tartara <mtartara@google.com>
lib/backend.py
lib/cmdlib/instance_storage.py
lib/rpc.py