Skip to content
Snippets Groups Projects
  1. Apr 26, 2012
  2. Feb 21, 2012
  3. Sep 22, 2011
  4. Sep 14, 2011
  5. Sep 09, 2011
  6. Aug 30, 2011
  7. Aug 25, 2011
  8. Apr 21, 2011
  9. Feb 15, 2011
  10. Jan 18, 2011
  11. Jan 05, 2011
  12. Jul 28, 2010
  13. Jul 12, 2010
  14. Jul 01, 2010
  15. May 17, 2010
  16. May 13, 2010
  17. Jan 22, 2010
  18. Jan 04, 2010
  19. Dec 28, 2009
  20. Oct 13, 2009
  21. Jul 30, 2009
  22. Jul 13, 2009
  23. Jul 07, 2009
  24. Jun 19, 2009
  25. May 25, 2009
    • 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>
      59b4eeef
    • 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>
      25e39bfa
  26. Feb 13, 2009
    • 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
      6e99c5a0
  27. Feb 04, 2009
    • 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
      3d103742
  28. Dec 19, 2008
    • 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
      b5b67ef9
Loading