openstack team mailing list archive
-
openstack team
-
Mailing list archive
-
Message #17043
Re: keystone install / user-role-list error
Dolph,
Thank you very much. It was a simple typo in one of my endpoint urls.
-Asher
On Sat, Sep 29, 2012 at 3:04 AM, Dolph Mathews <dolph.mathews@xxxxxxxxx>wrote:
> As you're definitely not the first person to run into this problem, I've
> opened a bug so that we can improve the error feedback in this scenario:
>
> https://bugs.launchpad.net/keystone/+bug/1058494
>
> -Dolph
>
>
>
> On Sat, Sep 29, 2012 at 1:51 AM, Dolph Mathews <dolph.mathews@xxxxxxxxx>wrote:
>
>> It looks like at least one of your endpoints isn't being parsed correctly.
>>
>> List your endpoints:
>>
>> keystone --token <mytoken> --endpoint http://192.168.1.11:35357/v2.0
>> endpoint-list
>>
>> ... and make sure they all appear as expected (at least one public URL is
>> wrong, according to the stack trace). Feel free to paste your endpoint list
>> back on the mailing list if you have any trouble.
>>
>> -Dolph
>>
>>
>> On Sat, Sep 29, 2012 at 12:06 AM, Asher Newcomer <ashernew@xxxxxxxxx>wrote:
>>
>>> Hi,
>>>
>>> I'm sure I've made a simple error, but I'm momentarily stuck trying to
>>> work through a Folsom install on a fresh Ubuntu 12.04 box. I've stepped
>>> through the process for installing the identity service described here:
>>> doc<http://docs.openstack.org/trunk/openstack-compute/install/apt/content/ch_installing-openstack-identity-service.html>
>>> .
>>>
>>> Everything seemed smooth until the end, when I tried to validate the
>>> install with the curl command provided:
>>>
>>> curl -d '{"auth": {"tenantName": "myTenant",
>>> "passwordCredentials":{"username": "adminUser", "password":
>>> "myPassword"}}}' -H "Content-type: application/json"
>>> http://192.168.1.11:35357/v2.0/tokens | python -mjson.tool
>>>
>>> Which gave a error 500: tenant, and a corresponding entry in
>>> keystone.log of:
>>>
>>> (root): 2012-09-28 23:45:50,651 ERROR u'tenant'
>>> Traceback (most recent call last):
>>> File "/usr/lib/python2.7/dist-packages/keystone/common/wsgi.py", line
>>> 204, in __call__
>>> result = method(context, **params)
>>> File "/usr/lib/python2.7/dist-packages/keystone/service.py", line 336,
>>> in authenticate
>>> metadata=metadata_ref)
>>> File "/usr/lib/python2.7/dist-packages/keystone/catalog/core.py", line
>>> 78, in get_catalog
>>> return self.driver.get_catalog(user_id, tenant_id, metadata)
>>> File
>>> "/usr/lib/python2.7/dist-packages/keystone/catalog/backends/sql.py", line
>>> 162, in get_catalog
>>> catalog[region][srv_type]['publicURL'] = public_url % d
>>> KeyError: u'tenant'
>>>
>>> So I decided to poke around a bit and tried:
>>>
>>> keystone --token <mytoken> --endpoint http://192.168.1.11:35357/v2.0user-role-list
>>>
>>> and get
>>>
>>> 'Client' object has no attribute 'auth_tenant_id'
>>>
>>> Any idea what I've done wrong?
>>>
>>> Thanks in advance.
>>>
>>> _______________________________________________
>>> Mailing list: https://launchpad.net/~openstack
>>> Post to : openstack@xxxxxxxxxxxxxxxxxxx
>>> Unsubscribe : https://launchpad.net/~openstack
>>> More help : https://help.launchpad.net/ListHelp
>>>
>>>
>>
>
References