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