1. 17 May, 2010 1 commit
  2. 13 May, 2010 1 commit
  3. 04 Jan, 2010 1 commit
  4. 28 Dec, 2009 1 commit
  5. 13 Oct, 2009 1 commit
  6. 30 Jul, 2009 1 commit
  7. 13 Jul, 2009 2 commits
  8. 07 Jul, 2009 1 commit
  9. 19 Jun, 2009 1 commit
  10. 25 May, 2009 2 commits
    • Iustin Pop's avatar
      rapi: rework error handling · 59b4eeef
      Iustin Pop authored
      Currently the rapi code doesn't have any custom error handling; any
      exceptions raised are simply converted into an HTTP 500 error, without
      much explanation.
      This patch adds a couple of generic SubmitJob/GetClient functions that
      handle some errors specially so that they are transformed into HTTP
      errors, with more detailed information.
      With this patch, the behaviour of rapi when the queue is full or
      drained, or when the master is down is more readable.
      Signed-off-by: default avatarIustin Pop <iustin@google.com>
      Reviewed-by: default avatarGuido Trotter <ultrotter@google.com>
    • Iustin Pop's avatar
      rapi: make tags query not use jobs · 25e39bfa
      Iustin Pop authored
      Currently the rapi tags query implementation is similar to the command
      line one: it submits OpGetTags jobs. This not good, since this being an
      API it can be used a lot and can pollute the job queue with many such
      trivial jobs.
      This patch converts it to use either queries (for nodes/instances) or
      direct read from ssconf (for the cluster case). For ssconf, we added a
      function to the ssconf.SimpleStore class for reading the tags.
      Signed-off-by: default avatarIustin Pop <iustin@google.com>
      Reviewed-by: default avatarMichael Hanselmann <hansmi@google.com>
  11. 13 Feb, 2009 1 commit
    • Iustin Pop's avatar
      RAPI: fixes related to write mode · 6e99c5a0
      Iustin Pop authored
      This patch fixes many small issues related to write functions:
        - update documentations w.r.t. how to add users
        - update the instance add function for latest API
        - add instance delete
        - fix addition of tags
        - update some error messages
      Reviewed-by: imsnah
  12. 04 Feb, 2009 1 commit
    • Iustin Pop's avatar
      rapi: fix 'bulk' processing and add locking option · 3d103742
      Iustin Pop authored
      This patch fixes the 'bulk' parameter (before any non-empty
      specification was considered True, in conflict with the documentation,
      i.e. bulk=0 still did bulk queries).
      The patch also adds optional locking on the instance/node listing (does
      not have effect when we only list names).
      Reviewed-by: imsnah
  13. 19 Dec, 2008 1 commit
    • Michael Hanselmann's avatar
      ganeti-rapi: Implement HTTP authentication · b5b67ef9
      Michael Hanselmann authored
      Passwords are stored in "$localstatedir/lib/ganeti/rapi_users". User
      options specify the access permissions of a user (see docstring for
      ganeti.http.ReadPasswordFile), for which only "write" is supported
      to grant write access. Every other user has read-only access.
      Reviewed-by: amishchenko
  14. 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
  15. 26 Nov, 2008 1 commit
  16. 19 Nov, 2008 1 commit
  17. 21 Oct, 2008 1 commit
  18. 17 Oct, 2008 1 commit
  19. 16 Oct, 2008 1 commit
  20. 31 Jul, 2008 2 commits
  21. 23 Jul, 2008 2 commits
  22. 22 Jul, 2008 1 commit