Skip to content
Snippets Groups Projects
  1. Aug 10, 2010
  2. Jul 22, 2010
  3. Jul 16, 2010
  4. Jul 13, 2010
  5. Jul 09, 2010
  6. Jul 07, 2010
  7. Jul 05, 2010
  8. Jul 01, 2010
  9. Jun 30, 2010
  10. Jun 29, 2010
  11. Jun 22, 2010
  12. Jun 18, 2010
  13. Jun 17, 2010
    • Michael Hanselmann's avatar
      RAPI client: Add support for Python 2.6 · 809bc174
      Michael Hanselmann authored
      
      The httplib module used by urllib2 requires its sockets to have a
      makefile() method to provide a file-like interface (or rather
      file-in-Python-like) to the socket. PyOpenSSL doesn't implement
      makefile() as the semantics require files to call dup(2) on the
      underlying file descriptors, something not easily done on SSL sockets.
      
      Python up to and including 2.5 have a class to simulate makefile(),
      httplib.FakeSocket. With the addition of SSL support in Python 2.6, this
      class was deprecated and no longer functions.
      
      This patch adds a new, simpler wrapper class which is used in Python 2.6
      and above only. It's good enough for this use.
      
      There are general problems in these generic wrapper classes--none of
      them handles SSL I/O properly. They break, for example, when the server
      requests a renegotiation. This will need more work.
      
      Signed-off-by: default avatarMichael Hanselmann <hansmi@google.com>
      Reviewed-by: default avatarGuido Trotter <ultrotter@google.com>
      809bc174
    • Guido Trotter's avatar
      Update NEWS for Ganeti 2.1.4 · c1a25b88
      Guido Trotter authored
      
      Signed-off-by: default avatarGuido Trotter <ultrotter@google.com>
      Reviewed-by: default avatarMichael Hanselmann <hansmi@google.com>
      c1a25b88
  14. Jun 14, 2010
    • Iustin Pop's avatar
      Fix a bug in instance startup with custom hvparams · c47478f9
      Iustin Pop authored
      
      Since the introduction of OS-specific hvparams, we shouldn't ever use
      objects.FillDict directly for instances, but instead go via the cluster
      object. Otherwise the os_hvp will be ignored.
      
      Signed-off-by: default avatarIustin Pop <iustin@google.com>
      Reviewed-by: default avatarGuido Trotter <ultrotter@google.com>
      c47478f9
    • Iustin Pop's avatar
      Fix unsafe variant initializer in _TryOSFromDisk · 845da3e8
      Iustin Pop authored
      
      In case an OS has inconsistent declarations, we might get into a case
      where one node reports a valid variants list (with OS API >=15), and
      another node has OS API < 15, in which case its supported_variants gets
      the default value of None. This leads to the same variable having
      inconsistent data types, which leads to subtle bugs later: instead of
      reporting something like "Inconsistent OS API versions", the LU exits
      with a run-time exception. Furthermore, in another datapath, variants is
      initialized to '[]' in case of OS diagnose failures.
      
      The patch changes _TryOSFromDisk to initialize variants to '[]' for
      OS api level below 15, and changes the variants calculation in
      DiagnoseOS to be more readable.
      
      Signed-off-by: default avatarIustin Pop <iustin@google.com>
      Reviewed-by: default avatarGuido Trotter <ultrotter@google.com>
      845da3e8
  15. Jun 13, 2010
  16. Jun 11, 2010
  17. Jun 10, 2010
  18. Jun 04, 2010
    • Guido Trotter's avatar
      _ExecuteKVMRuntime: fix hv parameter fun · 297e6e53
      Guido Trotter authored
      
      When executing the kvm runtime we were currently accessing a mix of the
      parameters as configured currently on the instance and the ones it was
      started with. We were doing it without a precise criteria, but quite by
      chance we got it *almost* right. The only remaining issue was that when
      ganeti was upgraded and some parameters were added, trying to access
      them from the "old" ones caused a keyerror, since they weren't present
      back when the instance was started.
      
      To fix this:
        - We fill the startup-time dict with any new parameter
        - We provide a clear guideline on which version of the parameters to
          access, and about the fact that new parameters must have an
          instance-migration backwards compatible default
      
      Signed-off-by: default avatarGuido Trotter <ultrotter@google.com>
      Reviewed-by: default avatarIustin Pop <iustin@google.com>
      297e6e53
Loading