nova-powervm/nova_powervm
Eric Fried d051c80a74 Stringify instance UUID
oslo.versionedobjects merged a patch [1] resulting in the referenced
bug. A second patch [2] was merged that was supposed to fix the issue
If coerce's value arg is a unicode string, then the method will return
unicode [3]. Subsequent checks for isinstance(str) [4] will fail and a
TypeError will be raised trying to handle the uuid as an int in the
else block. This change ensures that the uuid is an instance of str so
that it is handled properly. This problem was fixed in pypowervm 1.1.15
[5] and the minimum version was bumped for master. However, we can't
backport the pypowervm requirements bump to the stable branches so we
have to fix it here.

[1] https://review.openstack.org/#/c/559815/
[2] https://review.openstack.org/#/c/561674/
[3] https://review.openstack.org/#/c/561674/2/oslo_versionedobjects/fields.py@367
[4] https://github.com/powervm/pypowervm/blob/1.1.6/pypowervm/utils/uuid.py#L50-L56
[5] https://github.com/powervm/pypowervm/commit/d55b4c84

Related-Bug: #1766692
Change-Id: Ic3b11b071a055177bbcfb0555e2a391ba419d191
(cherry picked from commit 49330fcf28)
2018-05-11 09:00:30 -05:00
..
conf Remove volume_group_vios_name 2017-06-16 14:22:39 +00:00
hacking hacking: check for deprecated os.open() 2016-02-17 14:43:31 -02:00
locale update translations 2017-10-26 08:11:59 -04:00
tests Persist existing LPAR wrapper attributes in DefaultStandardize on resize 2017-11-07 10:56:36 -06:00
virt Stringify instance UUID 2018-05-11 09:00:30 -05:00
__init__.py Remove content from functionally-empty __init__s 2015-07-20 15:45:13 -05:00
version.py Fix package reference in version code 2016-05-26 13:47:21 +00:00