1. 22 Sep, 2010 1 commit
  2. 20 Sep, 2010 2 commits
  3. 16 Sep, 2010 1 commit
  4. 15 Sep, 2010 2 commits
  5. 13 Sep, 2010 3 commits
  6. 10 Sep, 2010 6 commits
  7. 07 Sep, 2010 2 commits
  8. 03 Sep, 2010 1 commit
  9. 02 Sep, 2010 2 commits
  10. 27 Aug, 2010 1 commit
  11. 25 Aug, 2010 1 commit
  12. 24 Aug, 2010 2 commits
    • 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
  13. 23 Aug, 2010 2 commits
  14. 20 Aug, 2010 1 commit
  15. 19 Aug, 2010 3 commits
    • 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
  16. 18 Aug, 2010 5 commits
  17. 17 Aug, 2010 5 commits