Authentication fails for zaqarclient in devstack
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
zaqar |
New
|
Undecided
|
Unassigned |
Bug Description
By default, devstack stores the OS_AUTH_URL as <host>:<port> instead of <host>:<port>/v2
If I change that, authentication works and I'm able to list flavors etc. It seems like for auth_type v2password zaqar should be trying to append /v2/ if it isn't there.
```
[stack@devstack devstack]$ openstack --debug flavor list
START with options: ['--debug', 'flavor', 'list']
options: Namespace(
ud='', debug=True, default_
nsecure=None, interface='', log_file=None, os_baremetal_
='', os_identity_
eues_api_
otocol='', region_name='', scope='', service_
'', user_id='', username='admin', verbose_level=3, verify=None)
defaults: {u'auth_type': 'password', u'compute_
: u'1', 'cacert': None, u'image_
i_version': u'2', u'image_format': u'qcow2', u'object_
e_api_version': u'1', 'cert': None, u'secgroup_source': u'neutron', u'container_
cloud cfg: {'auth_type': 'v2password', u'compute_
u'2', u'image_format': u'qcow2', 'project_
u'1', 'project_name': 'admin', 'verbose_level': 3, 'region_name': '', 'api_timeout': None, u'baremetal_
h': {'username': 'admin', 'tenant_name': 'admin', 'password': '***', 'auth_url': 'http://
version': u'1', u'image_
omain_id': 'default', 'data_processin
, u'secgroup_source': u'neutron', 'debug': True, u'disable_
compute API version 2, cmd group openstack.
network API version 2, cmd group openstack.
image API version 2, cmd group openstack.image.v2
volume API version 1, cmd group openstack.volume.v1
identity API version 2.0, cmd group openstack.
object_store API version 1, cmd group openstack.
messaging API version 1.1, cmd group openstack.
dns API version 2, cmd group openstack.dns.v2
data_processing API version 1.1, cmd group openstack.
baremetal API version 1.6, cmd group openstack.
command: flavor list -> openstackclient
Auth plugin v2password selected
auth_type: v2password
Using auth plugin: v2password
Using parameters {'username': 'admin', 'tenant_name': 'admin', 'password': '***', 'auth_url': 'http://
Get auth_ref
Making authentication request to http://
Starting new HTTP connection (1): 192.168.122.60
"POST /tokens HTTP/1.1" 404 93
Request returned failure status: 404
The resource could not be found. (HTTP 404)
Traceback (most recent call last):
File "/usr/lib/
self.
File "/usr/lib/
self.
File "/usr/lib/
self._auth_ref = self.auth.
File "/usr/lib/
authenticat
File "/usr/lib/
return self.request(url, 'POST', **kwargs)
File "/usr/lib/
resp = super(TimingSes
File "/usr/lib/
return func(*args, **kwargs)
File "/usr/lib/
raise exceptions.
NotFound: The resource could not be found. (HTTP 404)
```