summaryrefslogtreecommitdiff
path: root/requirements.txt
diff options
context:
space:
mode:
authorEric Fried <openstack@fried.cc>2019-08-16 07:48:50 -0500
committerEric Fried <openstack@fried.cc>2019-08-23 14:14:40 -0500
commit5519a069b0b8300c7ccba437d64123d8f380857c (patch)
tree6043e25d30f2ffa82be7d7e001b148ff695864d7 /requirements.txt
parentaf3433a25585da62e88d1e5bd9d3b1afce2d31fc (diff)
downloadnova-5519a069b0b8300c7ccba437d64123d8f380857c.tar.gz
Allow strict_proxies for sdk Connection
In version 0.35.0, openstacksdk added a strict_proxies kwarg to the Connection constructor [1]. Without it, openstacksdk tries really hard to give us an Adapter, which in the case of the service being down can mean we default to the catalog endpoint without doing any discovery. This should usually work; but may break in cases where the discovery document (at the catalog endpoint) points to different URLs for versioned endpoints. This commit adds a check_service bool kwarg to get_sdk_adapter which, if True, uses strict_proxies to create the Connection, and causing get_sdk_adapter to raise a ServiceUnavailable exception if the service is down. This can be used for services like Ironic, where we're set up to tolerate connect failures on startup. But it should not be used for services like Placement, where we expect getting the adapter to succeed, and are instead tolerant of failures making the actual API calls. [1] https://review.opendev.org/#/c/676837/ This dependency bumps the openstacksdk u-c in the requirements project. Depends-On: https://review.opendev.org/678207 Change-Id: I86e038af8a96e113a754b2fdb3698acd3783c1c8
Diffstat (limited to 'requirements.txt')
-rw-r--r--requirements.txt2
1 files changed, 1 insertions, 1 deletions
diff --git a/requirements.txt b/requirements.txt
index 3a5ae463b3..9cede64653 100644
--- a/requirements.txt
+++ b/requirements.txt
@@ -71,4 +71,4 @@ taskflow>=2.16.0 # Apache-2.0
python-dateutil>=2.5.3 # BSD
zVMCloudConnector>=1.3.0;sys_platform!='win32' # Apache 2.0 License
futurist>=1.8.0 # Apache-2.0
-openstacksdk>=0.34.0 # Apache-2.0
+openstacksdk>=0.35.0 # Apache-2.0