commit ae542f685466dc65967c6d74d38d8935685256f5
Author: James Page <email address hidden>
Date: Mon Aug 20 15:22:10 2018 +0100
metadata: use requests for comms with nova api
httplib2 makes use of the ssl module provided by Python; under Python 2,
the ssl module does not support IP addresses as subject alternate names
(SAN's) which although an optional part of the associated RFC, is awkward
to work with in environments where certificate management approaches
rely on use of IP addresses in SAN's.
The requests module is more than happy to deal with this scenario; switch
to requests in preference of httplib2 for metadata proxy calls.
httplib2 is retained as its used elsewhere in the codebase.
Closes-Bug: 1790598
Change-Id: Ife4adf09ddbf7116da2f8596c80aed53fb6790df
(cherry picked from commit 7e0dd2f18d4919964655cfce7a282d1c5c131fc4)
Reviewed: https:/ /review. opendev. org/599541 /git.openstack. org/cgit/ openstack/ neutron/ commit/ ?id=ae542f68546 6dc65967c6d74d3 8d8935685256f5
Committed: https:/
Submitter: Zuul
Branch: stable/queens
commit ae542f685466dc6 5967c6d74d38d89 35685256f5
Author: James Page <email address hidden>
Date: Mon Aug 20 15:22:10 2018 +0100
metadata: use requests for comms with nova api
httplib2 makes use of the ssl module provided by Python; under Python 2,
the ssl module does not support IP addresses as subject alternate names
(SAN's) which although an optional part of the associated RFC, is awkward
to work with in environments where certificate management approaches
rely on use of IP addresses in SAN's.
The requests module is more than happy to deal with this scenario; switch
to requests in preference of httplib2 for metadata proxy calls.
httplib2 is retained as its used elsewhere in the codebase.
Closes-Bug: 1790598 16da2f8596c80ae d53fb6790df 64655cfce7a282d 1c5c131fc4)
Change-Id: Ife4adf09ddbf71
(cherry picked from commit 7e0dd2f18d49199