← Back to team overview

savanna-all team mailing list archive

Re: get_auth_token's host

 

Cool. That works perfectly!

Senhua

On Apr 1, 2013, at 11:18 AM, Sergey Lukjanov <slukjanov@xxxxxxxxxxxx> wrote:

> It looks like your vitualenv is outdated - the "jsonschema" dependency is missing. Just install it by running .venv/bin/pip install jsonschema command from the project's root.
> 
> Sincerely yours,
> Sergey Lukjanov
> Software Engineer
> Mirantis Inc.
> GTalk: me@xxxxxxxxxxx
> Skype: lukjanovsv
> 
> On Apr 1, 2013, at 22:14, "Senhua Huang (senhuang)" <senhuang@xxxxxxxxx> wrote:
> 
>> pulled the patch, and ran the $tools/get_auth_token without the --config-file option.
>> 
>> ubuntu@ubuntu:~/Developer/savanna$ tools/get_auth_token
>> Traceback (most recent call last):
>> File "tools/get_auth_token.py", line 25, in <module>
>>   CONF.import_opt('os_admin_username', 'savanna.main')
>> File "/home/ubuntu/Developer/savanna/.venv/local/lib/python2.7/site-packages/oslo/config/cfg.py", line 1336, in import_opt
>>   __import__(module_str)
>> File "/home/ubuntu/Developer/savanna/savanna/main.py", line 23, in <module>
>>   from savanna.api import v02 as api_v02
>> File "/home/ubuntu/Developer/savanna/savanna/api/v02.py", line 19, in <module>
>>   import savanna.service.validation as v
>> File "/home/ubuntu/Developer/savanna/savanna/service/validation.py", line 18, in <module>
>>   import jsonschema
>> ImportError: No module named jsonschema
>> 
>> 
>> Do i need to update my virtual environment as step 3.5--3.8?
>> 
>> Thanks,
>> Senhua
>> 
>> On Apr 1, 2013, at 11:05 AM, Sergey Lukjanov <slukjanov@xxxxxxxxxxxx>
>> wrote:
>> 
>>> Patch is in the master now. Just pull it and you can omit config-file and etc/savanna/savanna.conf will be used by default.
>>> 
>>> Sincerely yours,
>>> Sergey Lukjanov
>>> Software Engineer
>>> Mirantis Inc.
>>> GTalk: me@xxxxxxxxxxx
>>> Skype: lukjanovsv
>>> 
>>> On Apr 1, 2013, at 20:37, "Senhua Huang (senhuang)" <senhuang@xxxxxxxxx> wrote:
>>> 
>>>> Hi Sergey,
>>>> 
>>>> That works.  Thanks!
>>>> 
>>>> Senhua
>>>> 
>>>> 
>>>> On Apr 1, 2013, at 9:30 AM, Sergey Lukjanov <slukjanov@xxxxxxxxxxxx>
>>>> wrote:
>>>> 
>>>>> Hello Senhua,
>>>>> 
>>>>> currently, you should add config-file option to specify configuration path:
>>>>> 
>>>>> tools/get_auth_token --config-file etc/savanna/savanna.conf
>>>>> 
>>>>> I'll implement default config usage for get_auth_token command by default asap.
>>>>> 
>>>>> Sincerely yours,
>>>>> Sergey Lukjanov
>>>>> Software Engineer
>>>>> Mirantis Inc.
>>>>> GTalk: me@xxxxxxxxxxx
>>>>> Skype: lukjanovsv
>>>>> 
>>>>> On Apr 1, 2013, at 20:18, "Senhua Huang (senhuang)" <senhuang@xxxxxxxxx> wrote:
>>>>> 
>>>>>> Hello!
>>>>>> 
>>>>>> I tried to run the get_auth_token script and got the following error. It seems that the script used a fixed value called "openstack." I have edited my ./etc/savanna/savanna.conf so that os_auth_host points to localhost on which my devstack is running.
>>>>>> 
>>>>>> Any hints?
>>>>>> 
>>>>>> Thanks,
>>>>>> Senhua
>>>>>> 
>>>>>> -------------- Error Message ---------------------
>>>>>> ubuntu@ubuntu:~/Developer/savanna$ tools/get_auth_token 
>>>>>> User: admin
>>>>>> Password: nova
>>>>>> Tenant: admin
>>>>>> Auth URL: http://openstack:35357/v2.0/
>>>>>> Traceback (most recent call last):
>>>>>> File "tools/get_auth_token.py", line 55, in <module>
>>>>>> main()
>>>>>> File "tools/get_auth_token.py", line 44, in main
>>>>>> auth_url=auth_url
>>>>>> File "/home/ubuntu/Developer/savanna/.venv/local/lib/python2.7/site-packages/keystoneclient/v2_0/client.py", line 134, in __init__
>>>>>> self.authenticate()
>>>>>> File "/home/ubuntu/Developer/savanna/.venv/local/lib/python2.7/site-packages/keystoneclient/client.py", line 205, in authenticate
>>>>>> token)
>>>>>> File "/home/ubuntu/Developer/savanna/.venv/local/lib/python2.7/site-packages/keystoneclient/v2_0/client.py", line 180, in get_raw_token_from_identity_service
>>>>>> "%s" % e)
>>>>>> keystoneclient.exceptions.AuthorizationFailure: Authorization Failed: HTTPConnectionPool(host='openstack', port=35357): Max retries exceeded with url: /v2.0/tokens (Caused by <class 'socket.error'>: [Errno 111] ECONNREFUSED)
>>>>>> 
>>>>>> 
>>>>>> -- 
>>>>>> Mailing list: https://launchpad.net/~savanna-all
>>>>>> Post to     : savanna-all@xxxxxxxxxxxxxxxxxxx
>>>>>> Unsubscribe : https://launchpad.net/~savanna-all
>>>>>> More help   : https://help.launchpad.net/ListHelp
>>>>> 
>>>> 
>>> 
>> 
> 



References