summaryrefslogtreecommitdiff
path: root/nova/virt/block_device.py
diff options
context:
space:
mode:
authorEric Fried <efried@us.ibm.com>2018-03-28 15:45:26 -0500
committerEric Fried <efried@us.ibm.com>2018-03-29 21:55:40 +0000
commit307382f58d38778b480d2d030e427759a44c204b (patch)
tree0334e39205668494ad0608a89ce1c2176395099e /nova/virt/block_device.py
parent37b61e1279f70f3e41be3fbbbe8e850d98c024b3 (diff)
downloadnova-17.0.2.tar.gz
Use ksa session for cinder microversion check17.0.2
[1] added a method to validate availability of a desired version of the cinder API. This method called into cinderclient.client.get_highest_client_server_version to (unsurprisingly) discover the highest available version to compare against. However, that routine uses a raw requests.get to access the version document from the server. This breaks when the endpoint URL is using HTTPS, because nothing sets up the cert info for that call. With this change, we work around the issue by duplicating the logic from get_highest_client_server_version, but doing the version discovery via the same keystoneauth1 session that's configured for use with the client itself, thus inheriting any SSL configuration as appropriate. [1] https://review.openstack.org/#/c/469579/ Change-Id: I4de355195281009a5979710d7f14ae8ea11d10e0 Closes-Bug: #1752152 (cherry picked from commit 20eaaee2334957eb8739ecca524a1c4aa9f246e9)
Diffstat (limited to 'nova/virt/block_device.py')
0 files changed, 0 insertions, 0 deletions