commit 9f1f9a8b6fadbba2eb6733e0f13b727f14a52a3f
Author: Joe Cropper <email address hidden>
Date: Wed Aug 20 21:18:17 2014 -0500
Handle non-ascii characters in spawn exception msg
If a compute driver's spawn function returns an exception whose text
has any non-ascii characters (e.g., for globalization), the compute
manager's "reschedule logic" doesn't handle it properly as it runs
the text through the str() function, which causes UnicodeEncodeError
exceptions.
This simply sends the exception text through six.text_type so as to
no longer blow up and proceed with rescheduling as intended.
Reviewed: https:/ /review. openstack. org/115846 /git.openstack. org/cgit/ openstack/ nova/commit/ ?id=9f1f9a8b6fa dbba2eb6733e0f1 3b727f14a52a3f
Committed: https:/
Submitter: Jenkins
Branch: master
commit 9f1f9a8b6fadbba 2eb6733e0f13b72 7f14a52a3f
Author: Joe Cropper <email address hidden>
Date: Wed Aug 20 21:18:17 2014 -0500
Handle non-ascii characters in spawn exception msg
If a compute driver's spawn function returns an exception whose text
has any non-ascii characters (e.g., for globalization), the compute
manager's "reschedule logic" doesn't handle it properly as it runs
the text through the str() function, which causes UnicodeEncodeError
exceptions.
This simply sends the exception text through six.text_type so as to
no longer blow up and proceed with rescheduling as intended.
Closes-Bug: #1359427
Change-Id: I3fef783feffbe9 9c6971543c881e3 fce2b60693b