Skip to content
Snippets Groups Projects
  1. Mar 10, 2010
    • Michael Hanselmann's avatar
      http.auth: Fix bug with checking hashed passwords · 23ccba04
      Michael Hanselmann authored
      
      When username and password were sent for a resource not requiring
      authentication, it wouldn't be accepted if the user in question had a
      hashed password. The reason was that the function GetAuthRealm used to
      return None if no authentication was necessary. However, the
      authentication realm is necessary to verify hashed passwords. This is
      fixed by requiring GetAuthRealm to always return a realm and separating
      the decision whether to require authentication or not to a separate
      function.
      
      Signed-off-by: default avatarMichael Hanselmann <hansmi@google.com>
      Reviewed-by: default avatarIustin Pop <iustin@google.com>
      23ccba04
  2. Mar 08, 2010
  3. Feb 26, 2010
  4. Feb 23, 2010
  5. Feb 22, 2010
  6. Feb 18, 2010
  7. Feb 17, 2010
  8. Feb 03, 2010
  9. Feb 02, 2010
  10. Jan 28, 2010
  11. Jan 27, 2010
    • 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
  12. Jan 19, 2010
    • 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
  13. Jan 13, 2010
  14. Jan 05, 2010
    • 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
  15. Jan 04, 2010
  16. Dec 10, 2009
  17. Nov 25, 2009
  18. Nov 11, 2009
  19. Nov 06, 2009
  20. Nov 05, 2009
    • 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
  21. Nov 02, 2009
  22. Oct 29, 2009
  23. Oct 22, 2009
  24. Oct 13, 2009
  25. Oct 09, 2009
  26. Sep 29, 2009
  27. Sep 28, 2009
Loading