py33: unknown encoding: base64

Bug #1229161 reported by Kui Shi
14
This bug affects 2 people
Affects Status Importance Assigned to Milestone
python-novaclient
Fix Released
Undecided
Kui Shi

Bug Description

2013-09-23 05:54:44.006 | ======================================================================
2013-09-23 05:54:44.006 | FAIL: novaclient.tests.v1_1.test_servers.ServersTest.test_create_server_userdata_unicode
2013-09-23 05:54:44.006 | tags: worker-2
2013-09-23 05:54:44.006 | ----------------------------------------------------------------------
2013-09-23 05:54:44.006 | Empty attachments:
2013-09-23 05:54:44.006 | stderr
2013-09-23 05:54:44.006 | stdout
2013-09-23 05:54:44.007 |
2013-09-23 05:54:44.007 | Traceback (most recent call last):
2013-09-23 05:54:44.007 | File "/home/jenkins/workspace/gate-python-novaclient-python33/novaclient/tests/v1_1/test_servers.py", line 120, in test_create_server_userdata_unicode
2013-09-23 05:54:44.007 | '/tmp/foo.txt': six.StringIO('data'), # a stream
2013-09-23 05:54:44.007 | File "/home/jenkins/workspace/gate-python-novaclient-python33/novaclient/v1_1/servers.py", line 658, in create
2013-09-23 05:54:44.007 | **boot_kwargs)
2013-09-23 05:54:44.007 | File "/home/jenkins/workspace/gate-python-novaclient-python33/novaclient/base.py", line 363, in _boot
2013-09-23 05:54:44.008 | 'contents': data.encode('base64'),
2013-09-23 05:54:44.008 | LookupError: unknown encoding: base64

Kui Shi (skuicloud)
Changed in python-novaclient:
assignee: nobody → Kui Shi (skuicloud)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to python-novaclient (master)

Fix proposed to branch: master
Review: https://review.openstack.org/48224

Kui Shi (skuicloud)
Changed in python-novaclient:
status: New → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to python-novaclient (master)

Reviewed: https://review.openstack.org/48224
Committed: http://github.com/openstack/python-novaclient/commit/8b264fc61d21fe4d0c7405914fb084f898956888
Submitter: Jenkins
Branch: master

commit 8b264fc61d21fe4d0c7405914fb084f898956888
Author: Kui Shi <email address hidden>
Date: Wed Sep 25 06:24:14 2013 +0800

    py33: unknown encoding: base64 Edit

    Python 3 doesn't support str.encode('base64'), we should use the
    module "base64" instead.

    Close-Bug #1229161

    Change-Id: I1432952558f8c5c3cff39761306e91916d80207f

Changed in python-novaclient:
status: In Progress → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.