openstacksdk 0.9.2 and higher does have one issue "SDKException: Connection failure that may be retried." when using python-openstackclient performing neutron part action
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack SDK |
Fix Released
|
Undecided
|
Zhao Jian |
Bug Description
Today when using python-
##########
REQ: curl -g -i --cacert "/opt/stack/
Starting new HTTPS connection (1): openstack.
/usr/local/
SubjectAltNam
"GET / HTTP/1.1" 200 129
RESP: [200] Content-Type: application/json; charset=UTF-8 Content-Length: 129 Date: Wed, 24 Aug 2016 14:23:15 GMT Connection: close
RESP BODY: {"versions": [{"status": "CURRENT", "id": "v2.0", "links": [{"href": "http://
REQ: curl -g -i --cacert "/opt/stack/
Starting new HTTP connection (1): openstack.
Connection failure that may be retried.
Traceback (most recent call last):
File "/usr/local/
result = cmd.run(
File "/usr/local/
return super(Command, self).run(
File "/usr/local/
self.
File "/usr/local/
**network_
File "/usr/local/
return self._update(
File "/usr/local/
return method(self, expected, actual, *args, **kwargs)
File "/usr/local/
return res.update(
File "/usr/local/
resp = self.update_
File "/usr/local/
resp = session.put(url, endpoint_
File "/usr/local/
return self.request(url, 'PUT', **kwargs)
File "/usr/local/
raise exceptions.
SDKException: Connection failure that may be retried.
clean_up SetQuota: Connection failure that may be retried.
Traceback (most recent call last):
File "/usr/local/
ret_val = super(OpenStack
File "/usr/local/
result = self.run_
File "/usr/local/
ret_value = super(OpenStack
File "/usr/local/
result = cmd.run(
File "/usr/local/
return super(Command, self).run(
File "/usr/local/
self.
File "/usr/local/
**network_
File "/usr/local/
return self._update(
File "/usr/local/
return method(self, expected, actual, *args, **kwargs)
File "/usr/local/
return res.update(
File "/usr/local/
resp = self.update_
File "/usr/local/
resp = session.put(url, endpoint_
File "/usr/local/
return self.request(url, 'PUT', **kwargs)
File "/usr/local/
raise exceptions.
SDKException: Connection failure that may be retried.
##########
My cloud service endpoints are using https scheme, my python-
After doing some investigation, I do think this issue does exist in openstacksdk 0.9.2 and higher, you could reproduce this issue when you configure your could services endpoints in https, especially for neutron service, and when using openstack command to preform neutron service action, you will meet this issue.
This issue is related to this change https:/
I think mostly this change is great, but just one concern for one place about finding the suitable endpoint for service.
Since Keystone service is used to store other services endpoints, I think we could use base endpoint url and combine with version that we got using rest api provided by service.
This issue happen just because when you are getting version from Neutron service, maybe links are not expected what you want, just like this:
##########
root@allinone:
HTTP/1.1 200 OK
Content-Type: application/json; charset=UTF-8
Content-Length: 129
Date: Wed, 24 Aug 2016 15:53:53 GMT
Connection: close
{"versions": [{"status": "CURRENT", "id": "v2.0", "links": [{"href": "http://
##########
This issue seems making a blocker for users who is using openstack client to operate their cloud and whose openstacksdk is 0.9.2 or 0.9.3, and they could not do much thing for neutron part.
Changed in python-openstacksdk: | |
assignee: | nobody → Zhao Jian (jianzj) |
Fix proposed to branch: master /review. openstack. org/359992
Review: https:/