1. 03 Jul, 2013 1 commit
    • 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>
  2. 02 Jul, 2013 2 commits
  3. 28 Jun, 2013 1 commit
  4. 14 Jun, 2013 3 commits
  5. 13 Jun, 2013 2 commits
    • Thomas Thrainer's avatar
      Index nodes by their UUID · 1c3231aa
      Thomas Thrainer authored
      No longer index nodes by their name but by their UUID in the cluster
      config. This change changes large parts of the code, as the following
      adjustments were necessary:
       * Change the index key to UUID in the configuration and the
         ConfigWriter, including all methods.
       * Change all cross-references to nodes to use UUID's.
       * External interfaces (command line interface, IAllocator interface,
         hook scripts, etc.) are kept stable.
       * RPC-calls can resolve UUID's as target node arguments, if the RPC
         runner is based on a ConfigWriter instance. The result dictionary is
         presented in the form the nodes are addressed: by UUID if UUID's were
         given, or by name if names were given.
       * Node UUID's are resolved in ExpandNames and then stored in the
         OpCode. This allows to check for node renames if the OpCode is
         reloaded after a cluster restart. This check is currently only done
         for single node parameters.
       * Variable names are renamed to follow the following pattern:
         - Suffix is 'node' or 'nodes': Variable holds Node objects
         - Suffix is 'name' or 'names': Variable holds node names
         - Suffix is 'uuid' or 'uuids': Variable holds node UUID's
       * Tests are adapted.
      Signed-off-by: default avatarThomas Thrainer <thomasth@google.com>
      Reviewed-by: default avatarKlaus Aehlig <aehlig@google.com>
    • Helga Velroyen's avatar
      Add cluster name to instance migration RPC · bc0a2284
      Helga Velroyen authored
      This fixes a 'FIXME' in the xen hypervisor. The instance
      migration requires the cluster's name. This should come
      from the RPC call, but so far was hackishly taken from
      ssconf. Ssconf is intended to be used by scripts only and
      not by the backend itself.
      Signed-off-by: default avatarHelga Velroyen <helgav@google.com>
      Reviewed-by: default avatarThomas Thrainer <thomasth@google.com>
  6. 12 Jun, 2013 10 commits
  7. 07 Jun, 2013 1 commit
  8. 04 Jun, 2013 1 commit
  9. 28 May, 2013 1 commit
  10. 21 May, 2013 1 commit
    • Helga Velroyen's avatar
      RPC 'node_info': <storage_type,key> instead of vg_names · 4b92e992
      Helga Velroyen authored
      This replaces the field 'vg_names' in the RPC call of 'node info' by
      'storage_units'. A storage unit is a tuple <storage_type,key>
      and a generalization of a vg_name. The list of vg names is replaced by
      a list of storage units. The modified RPC call will be used to report
      storage space for more than just lvm volume groups. What the 'key' is
      depends on the storage type. For storage type lvm-vg, the key is the
      volume group name. To keep backward compatibility, all functions that
      use the old vg_names, convert them to a list where every volume group
      is mapped to a tuple [('lvm-vg',volume_group)] before making the call.
      Signed-off-by: default avatarHelga Velroyen <helgav@google.com>
      Reviewed-by: default avatarBernardo Dal Seno <bdalseno@google.com>
  11. 14 May, 2013 1 commit
  12. 06 May, 2013 3 commits
  13. 29 Apr, 2013 2 commits
  14. 24 Apr, 2013 4 commits
  15. 22 Apr, 2013 3 commits
  16. 17 Apr, 2013 1 commit
  17. 10 Apr, 2013 1 commit
  18. 19 Feb, 2013 2 commits