1. 19 Aug, 2010 1 commit
  2. 17 Aug, 2010 2 commits
  3. 10 Aug, 2010 1 commit
  4. 22 Jul, 2010 1 commit
  5. 13 Jul, 2010 2 commits
  6. 07 Jul, 2010 2 commits
  7. 01 Jul, 2010 2 commits
    • Guido Trotter's avatar
      RapiClient: fix multi-authentication in Python 2.6 · 14ff387e
      Guido Trotter authored
      
      
      In Python 2.6 the urllib2.HTTPBasicAuthHandler has a "retried" count for
      failed authentications. The handler fails after 5 of them. To solve this
      we reset the handler's "retried" member variable to 0 after every
      successful request. This is a bit ugly, but makes the client work again
      for more than 5 requests under all versions of Python.
      
      Note that the digest authentication handler has a reset_retry_count()
      method to do this, but the method is not defined for the basic
      authentication handler, so we must reset the variable itself.
      
      This member variable is unused in 2.4 and 2.5, so the change doesn't
      affect the client under older Python versions.
      Signed-off-by: default avatarGuido Trotter <ultrotter@google.com>
      Reviewed-by: default avatarMichael Hanselmann <hansmi@google.com>
      14ff387e
    • Guido Trotter's avatar
      Fix check in gnt-instance modify -t · 1a1296c8
      Guido Trotter authored
      
      
      Currently when changing the instance disks the instance status (which
      must be down) is only checked if the target status is among the mirrored
      ones. This is incorrect: the instance must be down either way, even if
      the desired final status is non-mirrored.
      Signed-off-by: default avatarGuido Trotter <ultrotter@google.com>
      Reviewed-by: default avatarIustin Pop <iustin@google.com>
      1a1296c8
  8. 29 Jun, 2010 1 commit
  9. 22 Jun, 2010 4 commits
  10. 18 Jun, 2010 1 commit
  11. 17 Jun, 2010 1 commit
    • 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
  12. 14 Jun, 2010 2 commits
    • 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
  13. 13 Jun, 2010 1 commit
  14. 11 Jun, 2010 2 commits
  15. 10 Jun, 2010 1 commit
  16. 04 Jun, 2010 4 commits
  17. 01 Jun, 2010 8 commits
  18. 31 May, 2010 3 commits
  19. 27 May, 2010 1 commit