1. 18 May, 2010 1 commit
  2. 17 May, 2010 1 commit
  3. 13 May, 2010 2 commits
  4. 12 May, 2010 2 commits
    • Michael Hanselmann's avatar
      12eff9b9
    • Michael Hanselmann's avatar
      RAPI: Add initial support for instance creation request version · d975f482
      Michael Hanselmann authored
      The way the resource /2/instances expects its request data (e.g.
      instance name, disks, NICs) to be formatted in a dict is not
      very extensible. HV and BE parameters are interleaved with all
      other values. In commit 495cfdf0
      
       a new parameter “mode” was added
      which can be misunderstood as the instance creation mode, but is
      actually a mode for the network interface.
      
      Short of bumping the whole RAPI version (currently 2), which would
      involve many, many other changes and potentially break clients,
      we can not change the request format easily as it needs to stay
      backwards and future-compatible as far as possible. This is not an
      internal API, but one used by several external applications.
      
      By introducing a data format version per request, we can still
      support the old request format, and thereby not break existing users,
      while we can add a more flexible request format which will, for
      example, support multiple NICs and move HV/BE parameters to separate
      containers, avoiding conflicts.
      Signed-off-by: default avatarMichael Hanselmann <hansmi@google.com>
      Reviewed-by: default avatarGuido Trotter <ultrotter@google.com>
      d975f482
  5. 11 May, 2010 1 commit
  6. 20 Apr, 2010 1 commit
  7. 15 Apr, 2010 1 commit
  8. 23 Mar, 2010 1 commit
  9. 22 Mar, 2010 2 commits
  10. 22 Jan, 2010 2 commits
  11. 04 Jan, 2010 2 commits
  12. 28 Dec, 2009 1 commit
  13. 16 Dec, 2009 1 commit
  14. 25 Nov, 2009 1 commit
  15. 12 Oct, 2009 1 commit
  16. 05 Oct, 2009 1 commit
  17. 24 Sep, 2009 1 commit
  18. 03 Sep, 2009 1 commit
  19. 25 Aug, 2009 1 commit
  20. 18 Aug, 2009 1 commit
  21. 17 Aug, 2009 1 commit
  22. 14 Aug, 2009 1 commit
  23. 13 Aug, 2009 2 commits
  24. 11 Aug, 2009 3 commits
  25. 31 Jul, 2009 1 commit
  26. 30 Jul, 2009 1 commit
  27. 13 Jul, 2009 2 commits
  28. 19 Jun, 2009 1 commit
  29. 17 Jun, 2009 1 commit
  30. 25 May, 2009 1 commit
    • 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
  31. 21 May, 2009 1 commit