Comment 11 for bug 1502583

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to nova (stable/liberty)

Reviewed: https://review.openstack.org/246792
Committed: https://git.openstack.org/cgit/openstack/nova/commit/?id=0134d88b750c304fa893ed4778806e56ec410857
Submitter: Jenkins
Branch: stable/liberty

commit 0134d88b750c304fa893ed4778806e56ec410857
Author: Adelina Tuvenie <email address hidden>
Date: Tue Oct 20 14:20:52 2015 -0700

    Fixes Python 3 str issue in ConfigDrive creation

    ConfigDrive creation fails on Python 3 when writing metadata to file
    due to the fact that in Python 3 only bytes can be written to a file.

    This patch fixes this issue by replacing jsonutils.dumps with
    jsonutils.dump_as_bytes and thus ensuring that all data that is to
    be written is bytes and not str.

    Change-Id: Ie84f8badb185295fe019d80f8036aeb941709342
    Closes-Bug: #1502583
    (cherry picked from commit f395f457976fe7e5b91aa6c0910f790efe9be221)