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.
Reviewed: https:/ /review. openstack. org/415899 /git.openstack. org/cgit/ openstack/ nova/commit/ ?id=539d3512d64 7ffe562091b7fac bc287e75077d92
Committed: https:/
Submitter: Jenkins
Branch: master
commit 539d3512d647ffe 562091b7facbc28 7e75077d92
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 deError. That would break the online data migration for
so we can't cast it to a str in python 2.7 else we'll get a
UnicodeEnco
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: I040db22ecbb9fa be5bbda8a3d9600 cc9f76cb170
Closes-Bug: #1653261