Libcloud
  1. Libcloud
  2. LIBCLOUD-204

IBM_SCE driver auth issue under Python 3

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Minor Minor
    • Resolution: Fixed
    • Affects Version/s: 0.10.1
    • Fix Version/s: 0.11.0
    • Component/s: Core
    • Labels:
      None
    • Environment:

      Python 3.2.3

      Description

      Confirmed working under python2.7. Under Python3 base64 auth not working, "from libcloud.utils.py3 import b" seems to be affecting the result. See attachment for session log (sanitised user/pass).

      Debug curl string looks suspicious:
      -H 'Authorization: Basic b'"'"'dXNlcm5hbWU6cGFzc3dvcmQ='"'"''

      1. test.py
        0.2 kB
        Hutson Betts
      2. possible.patch
        0.6 kB
        Hutson Betts
      3. LIBCLOUD-204.log
        2 kB
        Sengor Kusturica

        Activity

        Hide
        Tomaz Muraus added a comment -

        Thanks for the report and patch. Hutson Betts' patch is a right fix for this problem and I've merged it into trunk.

        Show
        Tomaz Muraus added a comment - Thanks for the report and patch. Hutson Betts' patch is a right fix for this problem and I've merged it into trunk.
        Hide
        Hutson Betts added a comment -

        Contained within possible.patch is a possible solution to the issue effecting the IBM compute driver. That patch is applicable to all other compute drivers.

        Test.py is a test file based on the log files published by Sengor.

        Show
        Hutson Betts added a comment - Contained within possible.patch is a possible solution to the issue effecting the IBM compute driver. That patch is applicable to all other compute drivers. Test.py is a test file based on the log files published by Sengor.

          People

          • Assignee:
            Unassigned
            Reporter:
            Sengor Kusturica
          • Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Time Tracking

              Estimated:
              Original Estimate - 1h
              1h
              Remaining:
              Remaining Estimate - 1h
              1h
              Logged:
              Time Spent - Not Specified
              Not Specified

                Development