Skip to content
Snippets Groups Projects
  1. Sep 30, 2010
  2. Sep 22, 2010
  3. Sep 20, 2010
  4. Sep 16, 2010
  5. Sep 15, 2010
  6. Sep 13, 2010
  7. Sep 10, 2010
  8. Sep 07, 2010
  9. Sep 03, 2010
  10. Sep 02, 2010
  11. Aug 27, 2010
  12. Aug 25, 2010
  13. 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
    • Michael Hanselmann's avatar
      workerpool: Allow setting task name · daba67c7
      Michael Hanselmann authored
      
      With this patch, the task name is added to the thread name and will show up in
      logs. Log messages from jobs will look like “pid=578/JobQueue14/Job13 mcpu:289
      DEBUG LU locks acquired/cluster/BGL/shared”.
      
      Signed-off-by: default avatarMichael Hanselmann <hansmi@google.com>
      Reviewed-by: default avatarGuido Trotter <ultrotter@google.com>
      daba67c7
  14. Aug 23, 2010
  15. Aug 20, 2010
  16. Aug 19, 2010
    • Iustin Pop's avatar
      Stop adding the dry-run option by default · a0a6ff34
      Iustin Pop authored
      
      Currently cli.py unconditionally adds the dry-run option. This patch
      disables this, and exports dry-run as a normal option.
      
      The other alternative I tried to implement (adding a new fake option for
      disabling the auto-add per individual command) would require changes in
      more places, as the list of options is no longer a homogeneous list.
      
      Signed-off-by: default avatarIustin Pop <iustin@google.com>
      Reviewed-by: default avatarMichael Hanselmann <hansmi@google.com>
      a0a6ff34
    • Michael Hanselmann's avatar
      jqueue: Remove lock status field · 9bdab621
      Michael Hanselmann authored
      
      With the job queue changes for Ganeti 2.2, watched and queried jobs are
      loaded directly from disk, rendering the in-memory “lock_status” field
      useless. Writing it to disk would be possible, but has a huge cost at
      runtime (when tested, processing 1'000 opcodes involved 4'000 additional
      writes to job files, even with replication turned off).
      
      Using an additional in-memory dictionary to just manage this field turned
      out to be a complicated task due to the necessary locking.
      
      The plan is to introduce a more generic lock debugging mechanism in the
      near future. Hence the decision is to remove this field now instead of
      spending a lot of time to make it working again.
      
      Signed-off-by: default avatarMichael Hanselmann <hansmi@google.com>
      Reviewed-by: default avatarIustin Pop <iustin@google.com>
      9bdab621
    • Guido Trotter's avatar
      Don't ignore secondary node silently · af5970ab
      Guido Trotter authored
      
      Currently on non-mirrored disk templates the secondary node is ignored
      silently. This patch adds a check for this case, and warns the user
      should this be happening. This solves issue 113.
      
      The patch also moves a prereq check to an argument check. This is ok
      because the iallocator framework already checks it has a secondary node,
      when it needs one.
      
      Signed-off-by: default avatarGuido Trotter <ultrotter@google.com>
      Reviewed-by: default avatarMichael Hanselmann <hansmi@google.com>
      af5970ab
  17. Aug 18, 2010
Loading