Skip to content
Snippets Groups Projects
  1. Aug 27, 2010
  2. Aug 24, 2010
    • Michael Hanselmann's avatar
      Add simple lock monitor · 19b9ba9a
      Michael Hanselmann authored
      
      This patch adds an initial implementation of a lock monitor, accessible
      for the user through “gnt-debug locks”. It currently shows all resource
      locks: BGL, nodes and instances. Config and job queue locks could be
      shown too, but wouldn't be of much help.  The current owner(s) and mode
      are also shown.
      
      Showing pending acquires will require further changes on the SharedLock
      internals and is not yet implemented.
      
      Example output:
      $ gnt-debug locks -o name,mode,owner
      Name            Mode      Owner
      BGL/BGL         shared    JobQueue19/Job147
      instances/inst1 exclusive JobQueue19/Job147
      instances/inst2 -         -
      instances/inst3 -         -
      instances/inst4 -         -
      nodes/node1     exclusive JobQueue19/Job147
      nodes/node2     exclusive JobQueue19/Job147
      
      Signed-off-by: default avatarMichael Hanselmann <hansmi@google.com>
      Reviewed-by: default avatarGuido Trotter <ultrotter@google.com>
      Reviewed-by: default avatarIustin Pop <iustin@google.com>
      19b9ba9a
  3. Aug 23, 2010
  4. Aug 19, 2010
  5. Aug 18, 2010
  6. Aug 17, 2010
  7. Aug 10, 2010
  8. Jul 30, 2010
    • Iustin Pop's avatar
      Fix a few job archival issues · aa9f8167
      Iustin Pop authored
      
      This patch fixes two issues with job archival. First, the
      LoadJobFromDisk can return 'None' for no-such-job, and we shouldn't add
      None to the job list; we can't anyway, as this raises an exception:
      
        node1# gnt-job archive foo
        Unhandled protocol error while talking to the master daemon:
        Caught exception: cannot create weak reference to 'NoneType' object
      
      After fixing this, job archival of missing jobs will just continue
      silently, so we modify gnt-job archive to log jobs which were not
      archived and to return exit code 1 for any missing jobs.
      
      Signed-off-by: default avatarIustin Pop <iustin@google.com>
      Reviewed-by: default avatarMichael Hanselmann <hansmi@google.com>
      aa9f8167
  9. Jul 29, 2010
  10. Jul 28, 2010
  11. Jul 26, 2010
  12. Jul 23, 2010
  13. Jul 16, 2010
  14. Jul 15, 2010
  15. Jul 12, 2010
  16. Jul 09, 2010
  17. Jul 08, 2010
  18. Jul 06, 2010
  19. Jul 05, 2010
  20. Jul 01, 2010
  21. Jun 30, 2010
  22. Jun 29, 2010
  23. Jun 28, 2010
    • Guido Trotter's avatar
      Remove pred from compat.any/all · 403f5172
      Guido Trotter authored
      
      This makes it compatible with the python builtin, and we can even use
      the builtin when running under the right version of python. The all and
      any functions are renamed to _all and _any, so that they can be tested,
      and (non)existing unittests are updated (translation: there are no unit
      tests, so none are updated).
      
      This patch also moves the code deciding which partial to use next to
      the definition of the _partial function, rather than after TryToRoman.
      
      Signed-off-by: default avatarGuido Trotter <ultrotter@google.com>
      Reviewed-by: default avatarMichael Hanselmann <hansmi@google.com>
      403f5172
  24. Jun 23, 2010
    • Iustin Pop's avatar
      Simplify gnt-os diagnose output · ccadf1ff
      Iustin Pop authored
      
      Currently, we always list the api/variants, even if these are empty.
      This patch changes so that we make clear distiction for empty values
      ("[no variants]" versus "[variants: ]"), and we only list variants and
      parameters when the OS API indicates they should be supported.
      
      Signed-off-by: default avatarIustin Pop <iustin@google.com>
      Reviewed-by: default avatarGuido Trotter <ultrotter@google.com>
      ccadf1ff
    • Iustin Pop's avatar
      Add a new gnt-os info command · ae5b1530
      Iustin Pop authored
      
      This can be used to show the actual OS parameters and supported
      variants, in a global manner (rather than per-node as gnt-os diagnose).
      
      Signed-off-by: default avatarIustin Pop <iustin@google.com>
      Reviewed-by: default avatarGuido Trotter <ultrotter@google.com>
      ae5b1530
    • Iustin Pop's avatar
      LUDiagnoseOS: add more fields, cleanup · bad78e66
      Iustin Pop authored
      
      This patch exports all the way from backend a new field ‘api_version’
      which holds the list of support API versions, and exposes the (already
      computed) ‘parameters’ field.
      
      The patch also reworks (again) the field calculation in its Exec()
      method. All callers of LUDiagnoseOS pass in the 'valid' and 'variants'
      parameters, thus having the special casing of whether to compute or not
      the validity seems overkill. We move to a model where we always compute
      these across-nodes arguments, in order to simplify the code, and we also
      change the parameters set to be intersection of all node's values (which
      means a change in description will drop the parameter from the list of
      parameters).
      
      Additionally, we update scripts/gnt-os, which was broken for multi-dir
      OSes since the introduction of variants…
      
      Signed-off-by: default avatarIustin Pop <iustin@google.com>
      Reviewed-by: default avatarGuido Trotter <ultrotter@google.com>
      bad78e66
Loading