Glance endpoint issue with stripping path
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Shade |
New
|
Undecided
|
Unassigned |
Bug Description
Hi,
I have a Keystone catalog that uses api.somecloud.
Glance endpoint:
$ os catalog show image
+------
| Field | Value |
+------
| endpoints | region1 |
| | admin: https:/
| | region1 |
| | public: https:/
| | region1 |
| | internal: https:/
| | |
| name | Image Service |
| type | image |
+------
Here I'm just in ipython running list_images(). The URL used should be https:/
In [21]: cloud.list_images()
-------
OpenStackCloudH
<ipython-
----> 1 cloud.list_images()
/home/ubuntu/
2135 endpoint = '/images/detail'
2136
-> 2137 response = self._image_
2138
2139 except keystoneauth1.
/home/ubuntu/
302
303 def get(self, url, **kwargs):
--> 304 return self.request(url, 'GET', **kwargs)
305
306 def head(self, url, **kwargs):
/home/ubuntu/
156 return response
157 else:
--> 158 return self._munch_
159
160 def _version_
/home/ubuntu/
112
113 def _munch_
--> 114 exc.raise_
115
116 if not response.content:
/home/ubuntu/
161 raise OpenStackCloudB
162 if msg:
--> 163 raise OpenStackCloudH
OpenStackCloudH
Shade version:
$ pip show shade
Name: shade
Version: 1.23.0
Summary: Simple client library for interacting with OpenStack clouds
Home-page: http://
Author: OpenStack
Author-email: <email address hidden>
License: UNKNOWN
Location: /home/ubuntu/
Requires: requestsexceptions, Babel, dogpile.cache, keystoneauth1, decorator, netifaces, pbr, munch, python-
I'm fully OK with hearing that this kind of endpoint setup is not supported or a bad idea, but if it seems like an OK way to setup a catalog then it appears Shade can't use it. So far this catalog has worked with every other tool I've been using, but it's not an exhaustive list. So far all other endpoints work OK with Shade.
Thanks,
Curtis.
Opened this in storyboard which I believe is the right place for issues for shade? https:/ /storyboard. openstack. org/#!/ story/2001203