nova/nova/virt/powervm
esberglu 2386e015ef 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.10/pypowervm/utils/uuid.py#L50-L56
[5] https://github.com/powervm/pypowervm/commit/d55b4c84

Change-Id: I1baef962b4b8074f3f9b9ad5402970edc9a3a776
Related-Bug: #1766692
2018-05-10 09:56:32 -05:00
..
disk PowerVM Driver: SSP emphemeral disk support 2017-05-25 16:21:23 -05:00
tasks Use correct arguments in task inits 2018-02-13 17:05:21 -05:00
__init__.py PowerVM Driver: spawn/delete #1: no-ops 2017-04-10 14:59:40 -05:00
driver.py PowerVM driver: ovs vif 2018-01-16 19:02:25 -06:00
host.py hypervisor_hostname must match get_available_nodes 2017-06-20 16:34:38 -05:00
media.py PowerVM driver: ovs vif 2018-01-16 19:02:25 -06:00
vif.py PowerVM Driver: SEA 2018-01-22 11:18:55 -06:00
vm.py Stringify instance UUID 2018-05-10 09:56:32 -05:00