Comment 10 for bug 1653261

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

Reviewed: https://review.openstack.org/415899
Committed: https://git.openstack.org/cgit/openstack/nova/commit/?id=539d3512d647ffe562091b7facbc287e75077d92
Submitter: Jenkins
Branch: master

commit 539d3512d647ffe562091b7facbc287e75077d92
Author: Matt Riedemann <email address hidden>
Date: Fri Dec 30 12:56:20 2016 -0500

    Handle unicode when dealing with duplicate aggregate errors during migration

    The AggregateNameExists message can be translated and have unicode in it
    so we can't cast it to a str in python 2.7 else we'll get a
    UnicodeEncodeError. That would break the online data migration for
    aggregates along with any other online data migrations that run after
    that one which impacts upgrades.

    This uses six.text_type rather than str for logging the error and adds
    a test to recreate the bug and show that it's fixed.

    Change-Id: I040db22ecbb9fabe5bbda8a3d9600cc9f76cb170
    Closes-Bug: #1653261