Skip to content
Snippets Groups Projects
  1. Nov 07, 2008
  2. Nov 06, 2008
    • Michael Hanselmann's avatar
      Add new HTTP client class · 8a0b06d2
      Michael Hanselmann authored
      It is based on the WorkerPool class which is already used for the job
      queue and master daemon. Each request must be encapsulated in an
      instance of HttpClientRequest, which will then be passed to
      HttpClientManager for processing. Upon completion, the request object
      contains the response or error message.
      
      While not yet enabled, the HTTP client implementation has been designed
      with HTTP/1.1 and keep-alive in mind. For now it only uses HTTP/1.0,
      though.
      
      HttpClientManager will likely need more changes when integrating with
      the RPC layer. SSL will also be integrated in a second step.
      
      Reviewed-by: iustinp, ultrotter
      8a0b06d2
    • Michael Hanselmann's avatar
      ganeti.http: Use 411 Length Required in server code · 64357ed8
      Michael Hanselmann authored
      Reviewed-by: iustinp
      64357ed8
  3. Nov 05, 2008
  4. Oct 27, 2008
  5. Oct 25, 2008
    • Iustin Pop's avatar
      Update backend.py docstrings · 10c2650b
      Iustin Pop authored
      This patch converts all of backend.py to epydoc formatting.
      
      Reviewed-by: imsnah
      10c2650b
    • Iustin Pop's avatar
      Fix another error handling case · 3f5bd234
      Iustin Pop authored
      The return from this error path is a dict, but the actual return value
      (on the non-error handling) is a list of dicts. Change accordingly.
      
      Reviewed-by: imsnah
      3f5bd234
  6. Oct 24, 2008
  7. Oct 23, 2008
  8. Oct 22, 2008
    • Oleksiy Mishchenko's avatar
      RAPI: Export beparams as dict. The patch also enables LUQueryInstances to... · 1a05d855
      Oleksiy Mishchenko authored
      RAPI: Export beparams as dict. The patch also enables LUQueryInstances to accept beparams as valid field.
      
      Reviewed-by: iustinp
      
      1a05d855
    • Oleksiy Mishchenko's avatar
      RAPI: Forgoten in r1923 instance add change. · 212fa3a7
      Oleksiy Mishchenko authored
      Reviewed-by: iustinp
      212fa3a7
    • Guido Trotter's avatar
      LUCreateInstance: import multiple disks · 09acf207
      Guido Trotter authored
      Previously we used to handle only one disk. Now we'll import all the
      ones present in the export, in order, on the instance's disks. Any disk
      which was present on the original instance but wasn't exported is just
      skipped in the target instance.
      
      Reviewed-by: iustinp
      09acf207
    • Guido Trotter's avatar
      Convert ImportOSIntoInstance to OS API 10 · 6c0af70e
      Guido Trotter authored
      - Change ImportOSIntoInstance not to get any "os_disk" and "swap_disk"
        arguments but to accept multiple target images to import, and to
        return a list of booleans with the result of each import
      - Change the relevant rpc call and the only caller to conform
      - Pass arguments to the import script through the environment
      - Run one import os script for each disk image, passing an IMPORT_DEVICE
      
      Reviewed-by: iustinp
      6c0af70e
    • Guido Trotter's avatar
      Convert ExportSnapshot to OS API 10 · 0607699d
      Guido Trotter authored
      We pass the data via the environment rather than on the command line, as
      API 10 says. All the rest remains the same, and we export just one disk,
      as the master calls this function for every snapshotted disk.
      
      Reviewed-by: iustinp
      0607699d
    • Guido Trotter's avatar
      LUExportInstance: snapshot all disks · 19d7f90a
      Guido Trotter authored
      Rather than just snapshotting the "sda" disk, we'll snapshot all of the
      instance disks. If we can't snapshot a disk for any reason we'll log an
      error and proceed anyway: in this case the resulting export will miss a
      disk. This also changes all the warning messages to self.LogWarning().
      
      Reviewed-by: iustinp
      19d7f90a
Loading