1. 28 Dec, 2009 1 commit
  2. 13 Jul, 2009 1 commit
    • Iustin Pop's avatar
      RAPI: implement instance reinstall · e5b7c4ca
      Iustin Pop authored
      
      
      This patch adds instance reinstall to RAPI, with two optional parameters:
        - ‘os', in order to change the OS on reinstall
        - ‘nostartup’, in order to leave the instance down after reinstall
      
      The call will first shutdown the instance, the reinstall it, and unless
      ‘nostartup’ has been passed and is equal to 1, it will be started
      automatically.
      Signed-off-by: default avatarIustin Pop <iustin@google.com>
      Reviewed-by: default avatarGuido Trotter <ultrotter@google.com>
      e5b7c4ca
  3. 07 Jul, 2009 1 commit
  4. 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>
      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
  5. 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
      6e99c5a0
  6. 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
      3d103742
  7. 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
      b5b67ef9
  8. 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
      c41eea6e
  9. 26 Nov, 2008 1 commit
  10. 19 Nov, 2008 1 commit
  11. 21 Oct, 2008 1 commit
  12. 17 Oct, 2008 1 commit
  13. 16 Oct, 2008 1 commit
  14. 31 Jul, 2008 2 commits
  15. 23 Jul, 2008 2 commits
  16. 22 Jul, 2008 1 commit