[Openstack-operators] [Magnum] Keystone error while creating a baymodel
Abhishek Chanda
abhishek.lists at gmail.com
Tue Jun 21 21:05:05 UTC 2016
Hi all,
I am trying to run Magnum on 3 management nodes. I get the following
error in api logs while trying to create a baymodel
Traceback (most recent call last):
File "/usr/lib/python2.7/site-packages/wsmeext/pecan.py", line 84,
in callfunction
result = f(self, *args, **kwargs)
File "<string>", line 2, in post
File "/usr/lib/python2.7/site-packages/magnum/api/validation.py",
line 96, in wrapper
return func(*args, **kwargs)
File "<string>", line 2, in post
File "/usr/lib/python2.7/site-packages/magnum/api/validation.py",
line 131, in wrapper
return func(*args, **kwargs)
File "/usr/lib/python2.7/site-packages/magnum/api/controllers/v1/baymodel.py",
line 315, in post
attr_validator.validate_os_resources(context, baymodel_dict)
File "/usr/lib/python2.7/site-packages/magnum/api/attr_validator.py",
line 91, in validate_os_resources
validate_method(cli, baymodel[attr])
File "/usr/lib/python2.7/site-packages/magnum/api/attr_validator.py",
line 66, in validate_external_network
networks = cli.neutron().list_networks()
File "/usr/lib/python2.7/site-packages/magnum/common/exception.py",
line 170, in wrapped
return func(*args, **kw)
File "/usr/lib/python2.7/site-packages/magnum/common/clients.py",
line 254, in neutron
region_name=region_name)
File "/usr/lib/python2.7/site-packages/magnum/common/clients.py",
line 135, in url_for
return self.keystone().client.service_catalog.url_for(**kwargs)
File "/usr/lib/python2.7/site-packages/magnum/common/keystone.py",
line 78, in client
self._client = self._get_ks_client()
File "/usr/lib/python2.7/site-packages/magnum/common/keystone.py",
line 144, in _get_ks_client
return kc_v3.Client(**kwargs)
File "/usr/lib/python2.7/site-packages/keystoneclient/v3/client.py",
line 190, in __init__
super(Client, self).__init__(**kwargs)
File "/usr/lib/python2.7/site-packages/debtcollector/renames.py",
line 45, in wrapper
return f(*args, **kwargs)
File "/usr/lib/python2.7/site-packages/debtcollector/renames.py",
line 45, in wrapper
return f(*args, **kwargs)
File "/usr/lib/python2.7/site-packages/positional/__init__.py", line
94, in inner
return func(*args, **kwargs)
File "/usr/lib/python2.7/site-packages/keystoneclient/httpclient.py",
line 299, in __init__
self.auth_token_from_user = self.auth_ref.auth_token
File "/usr/lib/python2.7/site-packages/keystoneclient/access.py",
line 141, in auth_token
return self['auth_token']
KeyError: 'auth_token'
I noticed that the kwargs being passed to Client, has a key called
token but not auth_token. Interestingly, when I change that to
auth_token, it still does not work. What am I missing here?
Thanks
More information about the OpenStack-operators
mailing list