Tempest fails with unversioned identity url in catalog
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
tempest |
Fix Released
|
Undecided
|
Jamie Lennox |
Bug Description
When i create a keystone entry in the catalog without a /v2.0 I get the following error from tempest verify-config:
2016-02-29 08:38:34.229 | Traceback (most recent call last):
2016-02-29 08:38:34.230 | File "/opt/stack/
2016-02-29 08:38:34.230 | return main(parsed_args)
2016-02-29 08:38:34.230 | File "/opt/stack/
2016-02-29 08:38:34.230 | os = clients.
2016-02-29 08:38:34.230 | File "/opt/stack/
2016-02-29 08:38:34.230 | return self.get_
2016-02-29 08:38:34.230 | File "/opt/stack/
2016-02-29 08:38:34.230 | credentials = self._create_
2016-02-29 08:38:34.230 | File "/opt/stack/
2016-02-29 08:38:34.230 | name=project_name, description=
2016-02-29 08:38:34.230 | File "/opt/stack/
2016-02-29 08:38:34.230 | name=name, description=
2016-02-29 08:38:34.230 | File "/opt/stack/
2016-02-29 08:38:34.230 | resp, body = self.post(
2016-02-29 08:38:34.230 | File "/opt/stack/
2016-02-29 08:38:34.230 | return self.request(
2016-02-29 08:38:34.230 | File "/opt/stack/
2016-02-29 08:38:34.230 | headers=headers, body=body)
2016-02-29 08:38:34.230 | File "/opt/stack/
2016-02-29 08:38:34.230 | req_url, method, headers=
2016-02-29 08:38:34.230 | File "/opt/stack/
2016-02-29 08:38:34.230 | headers=headers, body=body)
2016-02-29 08:38:34.230 | File "/opt/stack/
2016-02-29 08:38:34.230 | return super(ClosingHttp, self).request(
2016-02-29 08:38:34.230 | File "/opt/stack/
2016-02-29 08:38:34.230 | (scheme, authority, request_uri, defrag_uri) = urlnorm(uri)
2016-02-29 08:38:34.230 | File "/opt/stack/
2016-02-29 08:38:34.230 | raise RelativeURIErro
2016-02-29 08:38:34.231 | RelativeURIError: Only absolute URIs are allowed. uri = /v2.0h/
This is because the way that tempest is handling path substitution it attempts to find the existing version number in the URL and then string replace it onto the old string. When there is no version this search pattern is '' and it inserts a /v2.0 everywhere.
Fix proposed to branch: master /review. openstack. org/287532
Review: https:/