1. 14 Jun, 2013 5 commits
  2. 13 Jun, 2013 5 commits
    • Helga Velroyen's avatar
      Fix lookup of xen toolstack in Haskell · 68af861c
      Helga Velroyen authored
      
      
      There was a bug in the haskell implementation of node
      query which made the lookup of the xen toolstack xm/xl
      fail.
      Signed-off-by: default avatarHelga Velroyen <helgav@google.com>
      Reviewed-by: default avatarThomas Thrainer <thomasth@google.com>
      68af861c
    • Thomas Thrainer's avatar
      Inline simple "alias" variables · d0d7d7cf
      Thomas Thrainer authored
      
      
      Remove variables in the form "var = self.var" throughout all LU's. Those
      "alias" variables make it harder to read the code (it's no longer
      immediately clear what's a field and what's a local variable), and can
      introduce subtle bug (especially when not used consistently and when
      they are re-assigned).
      Signed-off-by: default avatarThomas Thrainer <thomasth@google.com>
      Reviewed-by: default avatarKlaus Aehlig <aehlig@google.com>
      d0d7d7cf
    • Thomas Thrainer's avatar
      Convert node indices to UUIDs in configuration · b555101c
      Thomas Thrainer authored
      
      
      cfgupgrade replaces the occurences of node names (where they are used as
      index) with the node UUID.
      It also supports the inverse replacement, so downgrades are supported
      too.
      
      Tests for cfgupgrade are adapted as well.
      Signed-off-by: default avatarThomas Thrainer <thomasth@google.com>
      Reviewed-by: default avatarKlaus Aehlig <aehlig@google.com>
      b555101c
    • 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>
      1c3231aa
    • 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>
      bc0a2284
  3. 12 Jun, 2013 28 commits
  4. 11 Jun, 2013 2 commits