[Openstack-operators] [Magnum] Keystone error while creating a baymodel

Hongbin Lu hongbin.lu at huawei.com
Tue Jun 21 21:28:39 UTC 2016


Hi Abhishek,

I have no idea ant need further information. Could you provide the following information?
* How you installed Magnum (install from source or package, manually or using any tool, etc.)?
* Which version of Magnum you installed (master, Mitaka, etc.)?
* Could you paste your Magnum config files (under /etc/magnum/, you might want to remove passwords and other confidential information)?
* Could you type "sudo pip freeze" and paste the output here?

Ping me in IRC if you want.

Best regards,
Hongbin

> -----Original Message-----
> From: Abhishek Chanda [mailto:abhishek.lists at gmail.com]
> Sent: June-21-16 5:05 PM
> To: openstack-operators at lists.openstack.org
> Subject: [Openstack-operators] [Magnum] Keystone error while creating a
> baymodel
> 
> 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
> 
> _______________________________________________
> OpenStack-operators mailing list
> OpenStack-operators at lists.openstack.org
> http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-operators



More information about the OpenStack-operators mailing list