• Helga Velroyen's avatar
    Fix propagation of storage parameters to/from backend · 52a8a6ae
    Helga Velroyen authored
    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: default avatarHelga Velroyen <helgav@google.com>
    Reviewed-by: default avatarKlaus Aehlig <aehlig@google.com>
    Reviewed-by: default avatarMichele Tartara <mtartara@google.com>
backend.py 136 KB