Skip to content
Snippets Groups Projects
  1. Sep 10, 2008
    • Iustin Pop's avatar
      Do not use jobs in gnt-instance _ExpandNames() · b7329c9c
      Iustin Pop authored
      In the gnt-instance script, _ExpandNames() uses jobs to query instance
      names. This is not optimal, so we change it to use queries.
      
      Reviewed-by: ultrotter
      b7329c9c
    • Iustin Pop's avatar
      Implement "--submit" on gnt-instance · 6340bb0a
      Iustin Pop authored
      This patch adds support for the “--submit” parameter in the gnt-instance
      script, for the commands where it makes sense.
      
      Reviewed-by: ultrotter
      6340bb0a
    • Iustin Pop's avatar
      Rewrite the 'only submit job' handling in scripts · e9d741b6
      Iustin Pop authored
      The "sys.exit(0)" was not nice as you couldn't differentiate it from
      other exit codes. We change this to a specially defined exception for
      this, so that multi-opcode commands can handle this nicely.
      
      Reviewed-by: imsnah
      e9d741b6
    • Iustin Pop's avatar
      Optimize the OpQueryNodes for names only · c8d8b4c8
      Iustin Pop authored
      Currently, OpQueryNodes is locking all nodes (in shared mode), which
      will also block the special case of querying only for the node names
      (this is needed for gnt-cluster command, for example). There is no
      logical requirement to not give the administrator enough power if she/he
      knows what to do, so it would be logical that querying the node names
      works without a lock.
      
      The patch changes the LUQuerytNodes.ExpandNodes to only request locking
      when the selected fields contain dynamic attributes, and a small change
      in the Exec() method to use the new, atomic query method from
      ConfigWriter.
      
      Reviewed-by: ultrotter
      c8d8b4c8
    • Iustin Pop's avatar
      Add a way to export all node information at once · d65e5776
      Iustin Pop authored
      The patch adds a new function to export all node information at once
      (i.e. atomically with respect to the configuration lock).
      
      Reviewed-by: ultrotter
      d65e5776
  2. Sep 09, 2008
  3. Sep 08, 2008
  4. Sep 05, 2008
  5. Sep 04, 2008
Loading