1. 20 Aug, 2009 1 commit
  2. 07 Jul, 2009 2 commits
  3. 23 Jun, 2009 1 commit
    • Iustin Pop's avatar
      Fix HTTP server library handling of credentials · 81b59aaf
      Iustin Pop authored
      Currently the http library only checks credentials when authentication
      is required. This means that any credentials are accepted on the root
      resource, for example, which makes problems hard to diagnose - the
      user/pw works for all queries, until one tries to do a modification at
      which point fails.
      This patch changes the PreHandleRequest() function to not ignore
      credentials when passed, even if we don't require authentication. This
      makes the behavior of RAPI more predictable.
      Signed-off-by: default avatarIustin Pop <iustin@google.com>
      Reviewed-by: default avatarGuido Trotter <ultrotter@google.com>
  4. 20 Mar, 2009 1 commit
  5. 27 Feb, 2009 1 commit
    • Iustin Pop's avatar
      Fix some epydoc style issues · 5fcc718f
      Iustin Pop authored
      99% of the epydoc return tags are "@return:", but each of the modified files
      had one "@returns:" line. We fix this for consistency.
      Reviewed-by: imsnah
  6. 13 Feb, 2009 2 commits
    • Iustin Pop's avatar
      RAPI: format error messages as JSON · 1f8588f6
      Iustin Pop authored
      This patch changes the format of the HTTP error messages from text/html, which
      is hard to parse from RAPI clients, to JSON which can be automatically parsed.
      The error message is an object, which contains always three keys:
        - code, an integer with the error code
        - message, a short description
        - explain, holding (if available) a description of the error
      In order to implement this, there is a bit of change to the http server
      and executor classes. I've tested and the error handling still works
      (but less optimal, no error message) in case the error formatting itself
      raises an exception.
      Reviewed-by: imsnah
    • Iustin Pop's avatar
      Make RAPI return 502/504 errors for luxi errors · 77e1d753
      Iustin Pop authored
      This changes the RAPI error codes for luxi errors; a timeout error is
      now reported properly as 504, while any other luxi error is reported as
      It would be good to convert even more errors into proper return codes in
      the future.
      Reviewed-by: imsnah
  7. 04 Feb, 2009 1 commit
    • Iustin Pop's avatar
      rapi: fix authentication and queries · 85414b69
      Iustin Pop authored
      For queries, we don't want to require authentication. We fix this by adding an
      override GetAuthRealm in the rapi daemon.
      We also fix a method name.
      Reviewed-by: imsnah
  8. 15 Jan, 2009 2 commits
    • Iustin Pop's avatar
      Some docstring updates · 25e7b43f
      Iustin Pop authored
      This patch rewraps some comments to shorter lengths, changes
      double-quotes to single-quotes inside triple-quoted docstrings for
      better editor handling.
      It also fixes some epydoc errors, namely invalid crossreferences (after
      method rename), documentation for inexistent (removed) parameters, etc.
      Reviewed-by: ultrotter
    • Iustin Pop's avatar
      ganeti-noded: reduce log noise · 14d57a8b
      Iustin Pop authored
      The source port/addr is currently logged three times for each
      connection, and this is unnecessary. We change two log entries to debug,
      since they are useful for precise timing, and we keep only one at INFO
      Reviewed-by: imsnah
  9. 06 Jan, 2009 1 commit
  10. 19 Dec, 2008 4 commits
  11. 18 Dec, 2008 5 commits
  12. 17 Dec, 2008 1 commit
  13. 15 Dec, 2008 4 commits
  14. 14 Dec, 2008 2 commits
  15. 12 Dec, 2008 2 commits
  16. 11 Dec, 2008 1 commit
    • Iustin Pop's avatar
      Fix epydoc format warnings · c41eea6e
      Iustin Pop authored
      This patch should fix all outstanding epydoc parsing errors; as such, we
      switch epydoc into verbose mode so that any new errors will be visible.
      Reviewed-by: imsnah
  17. 10 Dec, 2008 1 commit
  18. 09 Dec, 2008 2 commits
  19. 05 Dec, 2008 1 commit
    • Iustin Pop's avatar
      http: use slicing instead of string modification · b18dd019
      Iustin Pop authored
      The combination of the current buffer splitting method and (4KB) buffer
      size is very inefficient when writing big amounts of data. Just walking
      over a 16 megabyte string using a 4K buffer takes (on a random computer)
      1m06s, whereas using slices will decrease this to 0.080s, and slicing
      with 32 KB size decreases this to 0.073s.
      This means that uploading a big config file (it nears 1MB for big
      clusters) will take more and more time per the number of nodes, since it
      needs lots of slicing.
      I happened upon this by accidentally setting all nodes as master
      candidates, at which point just uploading the config file to all nodes
      took 40s. Applying the patch decreases this to 15s (this probably can
      still be optimized).
      The patch also removes a duplicate constant (the one actually used is in
      http/client.py), and changes the receive buffer size to use the same
      Reviewed-by: imsnah
  20. 04 Dec, 2008 5 commits