1. 26 Feb, 2010 1 commit
  2. 23 Feb, 2010 1 commit
  3. 22 Feb, 2010 1 commit
  4. 18 Feb, 2010 1 commit
  5. 17 Feb, 2010 1 commit
  6. 03 Feb, 2010 1 commit
  7. 28 Jan, 2010 1 commit
  8. 27 Jan, 2010 2 commits
    • Iustin Pop's avatar
      node daemon: allow working with broken queue dir · 81198f6e
      Iustin Pop authored
      
      
      In case the queue dir cannot be create/initialized, currently
      ganeti-noded exits. This means that a read-only filesystem or a
      permission error breaks all node daemon functionality, including
      powercycle. This is not good for the usual failure case for nodes.
      
      To workaround this, we don't require successful initialization at node
      daemon startup; if we can't init the queue dir/lock, we retry at every
      RPC call requiring a job queue lock, and if we still can't acquire the
      lock, we raise an exception (which is catched in HandleRequest and
      transformed into an RPC failure).
      
      This allows the node daemon to start in face of queue issues, and the
      master node to power-cycle it.
      Signed-off-by: default avatarIustin Pop <iustin@google.com>
      Reviewed-by: default avatarMichael Hanselmann <hansmi@google.com>
      81198f6e
    • Iustin Pop's avatar
      daemon-utils: remove usage of here-docs · 8645ff83
      Iustin Pop authored
      
      
      In some versions of bash, here-docs and here-strings use temporary
      files, which means daemon-util needs a writable temporary filesystem.
      Since echo is a bash builtin anyway, it's simple to switch to it and
      remove this dependency.
      Signed-off-by: default avatarIustin Pop <iustin@google.com>
      Reviewed-by: default avatarMichael Hanselmann <hansmi@google.com>
      8645ff83
  9. 19 Jan, 2010 1 commit
    • Michael Hanselmann's avatar
      daemon-util: Fix quoting issue · 03956d39
      Michael Hanselmann authored
      
      
      This patch fixes a quoting issue in daemon-util:
      
      $ EXTRA_MASTERD_ARGS=--no-voting /etc/init.d/ganeti restart
      […]
      * ganeti-masterd...
      /…/ganeti/daemon-util: line 65: local: `--no-voting': not a valid identifier
      
      The reason was that the generated variables were not quoted properly and
      the troublesome line expanded to
      “local args=$MASTERD_ARGS $EXTRA_MASTERD_ARGS” instead of the correct
      “local args="$MASTERD_ARGS $EXTRA_MASTERD_ARGS"”.
      Signed-off-by: default avatarMichael Hanselmann <hansmi@google.com>
      Reviewed-by: default avatarIustin Pop <iustin@google.com>
      03956d39
  10. 13 Jan, 2010 1 commit
  11. 05 Jan, 2010 1 commit
    • Iustin Pop's avatar
      Introduce a Luxi call for GetTags · 7699c3af
      Iustin Pop authored
      
      
      This changes from submitting jobs to get the tags (in cli scripts) to
      queries, which (since the tags query is a cheap one) should be much
      faster.
      
      The tags queries are already done without locks (in the generic query
      paths for instances/nodes/cluster), so this shouldn't break tags query
      via gnt-* list-tags.
      
      On a small cluster, the runtime of gnt-cluster/gnt-instance list tags
      more than halves; on a big cluster (with many MCs) I expect it to be
      more than 5 times faster. The speed of the tags get is not the main
      gain, it is eliminating a job when a simple query is enough.
      Signed-off-by: default avatarIustin Pop <iustin@google.com>
      Reviewed-by: default avatarRené Nussbaumer <rn@google.com>
      7699c3af
  12. 04 Jan, 2010 8 commits
  13. 10 Dec, 2009 1 commit
  14. 25 Nov, 2009 1 commit
  15. 11 Nov, 2009 1 commit
  16. 06 Nov, 2009 2 commits
  17. 05 Nov, 2009 1 commit
    • Michael Hanselmann's avatar
      Add new “daemon-util” script to start/stop Ganeti daemons · f154a7a3
      Michael Hanselmann authored
      
      
      Until now, Ganeti started and stopped its own daemons using custom functions.
      To start, the daemon was just executed and then sent the appropriate signals to
      stop it again. Init scripts would have to pay attention to the PID file and
      other things.
      
      With this patch, a new script is added (“daemon-util”, installed in
      $prefix/lib/ganeti/), centralizing the starting and stopping of daemons. The
      provided example init script is adjusted to use this new script. Ganeti's code
      no longer calls its own init script.
      Signed-off-by: default avatarMichael Hanselmann <hansmi@google.com>
      Reviewed-by: default avatarGuido Trotter <ultrotter@google.com>
      f154a7a3
  18. 02 Nov, 2009 1 commit
  19. 29 Oct, 2009 1 commit
  20. 22 Oct, 2009 1 commit
  21. 13 Oct, 2009 1 commit
  22. 09 Oct, 2009 1 commit
  23. 29 Sep, 2009 1 commit
  24. 28 Sep, 2009 2 commits
  25. 25 Sep, 2009 1 commit
  26. 18 Sep, 2009 1 commit
  27. 17 Sep, 2009 1 commit
  28. 16 Sep, 2009 3 commits