Dashboard + Keystone

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Dashboard + Keystone

Roberto Dalas Z. Benavides
Hello everyone,

I'm trying to access the dashboard using the sta Keystone and giving the
error:

[31/Oct/2011 07:06:07] "POST / auth / login /? Next = / dash / HTTP/1.1" 200
1363
[31/Oct/2011 07:17:41] "GET / auth / login /? Next = / dash / HTTP/1.1" 200
1228
DEBUG: novaclient.client: REQ: http://10.168.1.4:5000/v2.0/tokens curl-i-X
POST-H "Content-Type: application / json"-H "User-Agent: python-novaclient "

DEBUG: novaclient.client: BODY REQ: {"auth": {"passwordCredentials": {
"username": "dualtec", "password": "status64"}}}

DEBUG: novaclient.client: RESP: {'status': '400', 'content-length': 24,
'content-ty pe': 'text / plain'} [Errno 111] ECONNREFUSED

When I give the command / etc / init.d / keystone start but it shows that
started falling again.

Does anyone know what can be?

thank you
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstack.org/pipermail/openstack-operators/attachments/20111031/64ffe670/attachment.html>

Reply | Threaded
Open this post in threaded view
|

Fwd: Dashboard + Keystone

Roberto Dalas Z. Benavides
Hello ,

The message is this:

[image: image.png]

---------- Forwarded message ----------
From: Roberto Dalas Z. Benavides <betodalas at gmail.com>
Date: 2011/11/3
Subject: Re: [Openstack-operators] Dashboard + Keystone
To: Michael J Fork <mjfork at us.ibm.com>


Good morning Michael,

Now connect the dashboar, but shows an error on the display panel:


Unable to get usage info: Could not verify this server That You Are
Authorized toaccess the document you requested. Either you supplied the
wrong credentials (eg, bad password), or your browser does not Understand how
to supply the credentialsrequired.

You know what can be?



2011/11/3 Roberto Dalas Z. Benavides <betodalas at gmail.com>

> Michael,
>
> The keystone folder must be inside the folder dashboard?
>
> thanks
>
> 2011/11/3 Roberto Dalas Z. Benavides <betodalas at gmail.com>
>
> Hello Michael,
>>
>> Fallow:
>> [03/Nov/2011 06:38:38] "GET
>> /static/dashboard/css/Anivers_Regular-webfont.woff H
>>                                                       TTP/1.1" 200 29432
>>  DEBUG:django_openstack.api:auth_api connection created using url "
>> http://10.168.
>>                   1.35:5000/v2.0/"
>> ERROR:django_openstack.auth:Error authenticating: Unauthorized
>> Traceback (most recent call last):
>>   File
>> "/src/openstack-horizon-90f51fc/django-openstack/django_openstack/auth/vi
>>
>> ews.py", line 65, in handle
>>     data['password'])
>>   File
>> "/src/openstack-horizon-90f51fc/django-openstack/django_openstack/api.py"
>>                                                                           ,
>> line 643, in token_create
>>     return Token(auth_api().tokens.create(tenant, username, password))
>>   File
>> "/src/openstack-horizon-90f51fc/openstack-dashboard/.dashboard-venv/src/o
>>
>> penstackx/openstackx/auth/tokens.py", line 55, in create
>>     return self._create('tokens', params, "access")
>>   File
>> "/src/openstack-horizon-90f51fc/openstack-dashboard/.dashboard-venv/src/o
>>
>> penstackx/openstackx/api/base.py", line 40, in _create
>>     resp, body = self.api.connection.post(url, body=body)
>>   File
>> "/src/openstack-horizon-90f51fc/openstack-dashboard/.dashboard-venv/src/o
>>
>> penstackx/openstackx/api/connection.py", line 81, in post
>>     return self._cs_request(url, 'POST', **kwargs)
>>   File
>> "/src/openstack-horizon-90f51fc/openstack-dashboard/.dashboard-venv/src/o
>>
>> penstackx/openstackx/api/connection.py", line 66, in _cs_request
>>     raise ex
>> Unauthorized: Unauthorized (HTTP 401)
>> [03/Nov/2011 06:38:43] "POST /auth/login/?next=/dash/ HTTP/1.1" 200 1373
>> DEBUG:django_openstack.api:auth_api connection created using url "
>> http://10.168.
>>                   1.35:5000/v2.0/"
>> ERROR:django_openstack.auth:Error authenticating: Unauthorized
>> Traceback (most recent call last):
>>   File
>> "/src/openstack-horizon-90f51fc/django-openstack/django_openstack/auth/vi
>>
>> ews.py", line 65, in handle
>>     data['password'])
>>   File
>> "/src/openstack-horizon-90f51fc/django-openstack/django_openstack/api.py"
>>                                                                           ,
>> line 643, in token_create
>>     return Token(auth_api().tokens.create(tenant, username, password))
>>   File
>> "/src/openstack-horizon-90f51fc/openstack-dashboard/.dashboard-venv/src/o
>>
>> penstackx/openstackx/auth/tokens.py", line 55, in create
>>     return self._create('tokens', params, "access")
>>   File
>> "/src/openstack-horizon-90f51fc/openstack-dashboard/.dashboard-venv/src/o
>>
>> penstackx/openstackx/api/base.py", line 40, in _create
>>     resp, body = self.api.connection.post(url, body=body)
>>   File
>> "/src/openstack-horizon-90f51fc/openstack-dashboard/.dashboard-venv/src/o
>>
>> penstackx/openstackx/api/connection.py", line 81, in post
>>     return self._cs_request(url, 'POST', **kwargs)
>>   File
>> "/src/openstack-horizon-90f51fc/openstack-dashboard/.dashboard-venv/src/o
>>
>> penstackx/openstackx/api/connection.py", line 66, in _cs_request
>>     raise ex
>> Unauthorized: Unauthorized (HTTP 401)
>> [03/Nov/2011 06:38:46] "POST /auth/login/?next=/dash/ HTTP/1.1" 200 1373
>>
>>
>>
>>
>> root at OPSTACK-PAINEL:/src/keystone# keystone-manage token list
>> token   user    expiration      tenant
>>
>> -------------------------------------------------------------------------------
>>  999888777666    1       2015-02-05 00:00:00     1
>> root at OPSTACK-PAINEL:/src/keystone# keystone-manage user list
>> id      name    enabled tenant
>>
>> -------------------------------------------------------------------------------
>> 1       admin   1       None
>> root at OPSTACK-PAINEL:/src/keystone# keystone-manage tenant list
>> id      name    enabled
>>
>> -------------------------------------------------------------------------------
>> 1       admin   1
>> root at OPSTACK-PAINEL:/src/keystone# keystone-manage roles list
>> Supported objects: user, tenant, role, service, endpointTemplates, token,
>> endpoint, credentials
>> root at OPSTACK-PAINEL:/src/keystone# keystone-manage role list
>> id      name
>>
>> -------------------------------------------------------------------------------
>> 1       Admin
>> 2       KeystoneServiceAdmin
>>
>>
>> In keystone.log does not show the logs when I try to log only shows
>> errors in the logsof the dashboard
>> Thanks
>>
>> 2011/11/1 Michael J Fork <mjfork at us.ibm.com>
>>
>>> Can you send the stacktrace and logs? Looks like you are missing an
>>> entry in your keystone DB.
>>>
>>> Michael
>>>
>>> -------------------------------------------------
>>> Michael Fork
>>> Cloud Architect, Emerging Solutions
>>> IBM Systems & Technology Group
>>>
>>>
>>>
>>> From:        "Roberto Dalas Z. Benavides" <betodalas at gmail.com>
>>> To:        Michael J Fork/Rochester/IBM at IBMUS
>>> Date:        11/01/2011 10:39 AM
>>> Subject:        Re: [Openstack-operators] Dashboard + Keystone
>>> ------------------------------
>>>
>>>
>>>
>>> I ran this command and showed the error:
>>> 11.01.2011 12:29:55 ERROR [root] 'NoneType' object has no attribute 'id'
>>>
>>> I installed via apt-get keystone, all right?
>>>
>>> thanks
>>>
>>> 2011/11/1 Michael J Fork <*mjfork at us.ibm.com* <mjfork at us.ibm.com>>
>>> Run this
>>>
>>> bin/keystone-manage role grant Admin admin
>>>
>>> It looks like the admin user doesn't have the Admin role without a
>>> tenant.
>>>
>>> Michael
>>>
>>> -------------------------------------------------
>>> Michael Fork
>>> Cloud Architect, Emerging Solutions
>>> IBM Systems & Technology Group
>>>
>>>
>>>
>>> From:        "Roberto Dalas Z. Benavides" <*betodalas at gmail.com*<betodalas at gmail.com>
>>> >
>>> To:        Michael J Fork/Rochester/IBM at IBMUS
>>> Date:        11/01/2011 10:09 AM
>>> Subject:        Re: [Openstack-operators] Dashboard + Keystone
>>>  ------------------------------
>>>
>>>
>>>
>>> Yes,
>>>
>>> fallow:
>>>
>>> /etc/keystone# sqlite3 keystone.db
>>> SQLite version 3.7.7 2011-06-23 19:49:22
>>> Enter ".help" for instructions
>>> Enter SQL statements terminated with a ";"
>>> sqlite> select * from user_roles;
>>> 1|1|1|
>>> 2|1|2|
>>> 3|1|3|1
>>> sqlite> sqlite> select * from roles;
>>> Error: near "sqlite": syntax error
>>> sqlite> select * from roles;
>>> 1|KeystoneAdmin||
>>> 2|KeystoneServiceAdmin||
>>> 3|Admin||
>>> sqlite> select * from tenants;
>>> 1|admin||1
>>> sqlite>
>>>
>>>
>>> thanks
>>>
>>> 2011/11/1 Michael J Fork <*mjfork at us.ibm.com* <mjfork at us.ibm.com>>
>>> Just to confirm, you are trying to login in as admin with a password of
>>> secrete?
>>>
>>> Show me the following commands: *
>>>
>>> sqlite> select * from user_roles;*
>>> id|user_id|role_id|tenant_id
>>> 1|1|1|
>>> 2|1|1|1 *
>>>
>>> sqlite> select * from roles;*
>>> id|name|desc|service_id
>>> 1|Admin|| *
>>>
>>> sqlite> select * from tenants;*
>>> id|name|desc|enabled
>>> 1|admin||1
>>>
>>> Michael
>>>
>>> -------------------------------------------------
>>> Michael Fork
>>> Cloud Architect, Emerging Solutions
>>> IBM Systems & Technology Group
>>>
>>>
>>>
>>> From:        "Roberto Dalas Z. Benavides" <*betodalas at gmail.com*<betodalas at gmail.com>
>>> >
>>> To:        Michael J Fork/Rochester/IBM at IBMUS
>>> Date:        11/01/2011 09:55 AM
>>> Subject:        Re: [Openstack-operators] Dashboard + Keystone
>>>  ------------------------------
>>>
>>>
>>>
>>> Fallow ,my dashboard configuration:
>>>
>>> import os
>>>
>>> DEBUG = True
>>> TEMPLATE_DEBUG = DEBUG
>>> PROD = False
>>> USE_SSL = False
>>>
>>> LOCAL_PATH = os.path.dirname(os.path.abspath(__file__))
>>> DATABASES = {
>>>     'default': {
>>>         'ENGINE': 'django.db.backends.sqlite3',
>>>         'NAME': os.path.join(LOCAL_PATH, 'dashboard_openstack.sqlite3'),
>>>     },
>>> }
>>>
>>> CACHE_BACKEND = 'dummy://'
>>>
>>>
>>> # Send email to the console by default
>>> EMAIL_BACKEND = 'django.core.mail.backends.console.EmailBackend'
>>> # Or send them to /dev/null
>>> #EMAIL_BACKEND = 'django.core.mail.backends.dummy.EmailBackend'
>>>
>>> # django-mailer uses a different settings attribute
>>> MAILER_EMAIL_BACKEND = EMAIL_BACKEND
>>>
>>> # Configure these for your outgoing email host
>>> # EMAIL_HOST = '*smtp.my-company.com* <http://smtp.my-company.com/>'
>>> # EMAIL_PORT = 25
>>> # EMAIL_HOST_USER = 'djangomail'
>>> # EMAIL_HOST_PASSWORD = 'top-secret!'
>>>
>>> OPENSTACK_ADMIN_TOKEN = "999888777666"
>>> OPENSTACK_KEYSTONE_URL = "*http://10.168.1.35:5000/v2.0/*<http://10.168.1.35:5000/v2.0/>
>>> "
>>> # FIXME: this is only needed until keystone fixes its GET /tenants call
>>> # so that it doesn't return everything for admins
>>> OPENSTACK_KEYSTONE_ADMIN_URL = "*http://10.168.1.35:35357/v2.0*<http://10.168.1.35:35357/v2.0>
>>> "
>>> OPENSTACK_KEYSTONE_DEFAULT_ROLE = "KeystoneAdmin"
>>>
>>> # NOTE(tres): Available services should come from the service
>>> #             catalog in Keystone.
>>> SWIFT_ENABLED = False
>>>
>>> # Configure quantum connection details for networking
>>> QUANTUM_ENABLED = True
>>> "/src/openstack-horizon-90f51fc/openstack-dashboard/local/local_settings.py"
>>> 92L, 2771C
>>>
>>> thanks
>>>
>>> 2011/11/1 Roberto Dalas Z. Benavides <*betodalas at gmail.com*<betodalas at gmail.com>>
>>>
>>> Hello MIchael
>>>
>>> The result:
>>>
>>> /etc/keystone# sqlite3 keystone.db
>>> SQLite version 3.7.7 2011-06-23 19:49:22
>>> Enter ".help" for instructions
>>> Enter SQL statements terminated with a ";"
>>>
>>> sqlite> select * from users;
>>>
>>> 1|admin|secrete||1|
>>> sqlite>
>>>
>>>
>>>
>>> 2011/11/1 Michael J Fork <*mjfork at us.ibm.com* <mjfork at us.ibm.com>>
>>> Run "sqlite3 <path to keystone.db>" and then
>>>
>>> .mode column
>>> .headers on
>>> select * from users;
>>>
>>> does it look like this (note blank tenant):
>>>
>>>
>>>
>>> Michael
>>>
>>> -------------------------------------------------
>>> Michael Fork
>>> Cloud Architect, Emerging Solutions
>>> IBM Systems & Technology Group
>>>
>>>
>>>
>>> From:        "Roberto Dalas Z. Benavides" <*betodalas at gmail.com*<betodalas at gmail.com>
>>> >
>>> To:        Michael J Fork/Rochester/IBM at IBMUS
>>> Date:        11/01/2011 09:27 AM
>>> Subject:        Re: [Openstack-operators] Dashboard + Keystone
>>>  ------------------------------
>>>
>>>
>>>
>>> Hello Michael,
>>>
>>> I did it, but still giving error is the following:
>>>
>>> DEBUG:django_openstack.api:auth_api connection created using url "*
>>> http://10.168* <http://10.168/>.
>>> 1.35:5000/v2.0/"
>>> ERROR:django_openstack.auth:Error authenticating: Unauthorized
>>> Traceback (most recent call last):
>>>   File
>>> "/src/openstack-horizon-90f51fc/django-openstack/django_openstack/auth/vi
>>> ews.py", line 65, in handle
>>>     data['password'])
>>>   File
>>> "/src/openstack-horizon-90f51fc/django-openstack/django_openstack/api.py"
>>> , line 643, in token_create
>>>     return Token(auth_api().tokens.create(tenant, username, password))
>>>   File
>>> "/src/openstack-horizon-90f51fc/openstack-dashboard/.dashboard-venv/src/o
>>> penstackx/openstackx/auth/tokens.py", line 55, in create
>>>     return self._create('tokens', params, "access")
>>>   File
>>> "/src/openstack-horizon-90f51fc/openstack-dashboard/.dashboard-venv/src/o
>>> penstackx/openstackx/api/base.py", line 40, in _create
>>>     resp, body = self.api.connection.post(url, body=body)
>>>   File
>>> "/src/openstack-horizon-90f51fc/openstack-dashboard/.dashboard-venv/src/o
>>> penstackx/openstackx/api/connection.py", line 81, in post
>>>     return self._cs_request(url, 'POST', **kwargs)
>>>   File
>>> "/src/openstack-horizon-90f51fc/openstack-dashboard/.dashboard-venv/src/o
>>> penstackx/openstackx/api/connection.py", line 66, in _cs_request
>>>     raise ex
>>> Unauthorized: Unauthorized (HTTP 401)
>>> [01/Nov/2011 11:23:56] "POST /auth/login/?next=/dash/ HTTP/1.1" 200 1373
>>>
>>> and keystone.log:
>>>
>>> 2011-11-01 11:22:02  WARNING [eventlet.wsgi.server] 127.0.0.1 - -
>>> [01/Nov/2011
>>> 1
>>> 1:22:02] "POST /v2.0/tokens HTTP/1.1" 401 193 0.002366
>>> 2011-11-01 11:22:02  WARNING [eventlet.wsgi.server] 127.0.0.1 - -
>>> [01/Nov/2011
>>> 1
>>> 1:22:02] "POST /v2.0/tokens HTTP/1.1" 401 193 0.002366
>>> 2011-11-01 11:23:56  WARNING [eventlet.wsgi.server] 10.168.1.35 - -
>>> [01/Nov/2011
>>> 11:23:56] "POST /v2.0/tokens HTTP/1.1" 401 193 0.002244
>>> 2011-11-01 11:23:56  WARNING [eventlet.wsgi.server] 10.168.1.35 - -
>>> [01/Nov/2011
>>> 11:23:56] "POST /v2.0/tokens HTTP/1.1" 401 193 0.00224
>>>
>>>
>>>
>>> thanks
>>>
>>> 2011/11/1 Michael J Fork <*mjfork at us.ibm.com* <mjfork at us.ibm.com>>
>>> I would verify the username and password are correct.  Additionally,
>>> here are the steps I take to setup keystone:
>>>
>>> bin/keystone-manage service add swift object-store "Swift-compatible
>>> Service"
>>> bin/keystone-manage service add nova compute "OpenStack Compute Service"
>>> bin/keystone-manage service add nova_compat compute "OpenStack Compute
>>> Service"
>>> bin/keystone-manage service add glance image "OpenStack Image Service"
>>> bin/keystone-manage service add identity identity "OpenStack Identity
>>> Service"
>>>
>>> bin/keystone-manage endpointTemplates add Region1 nova_compat *
>>> http://192.168.1.74:8774/v1.0/* <http://192.168.1.74:8774/v1.0/> *
>>> http://192.168.1.74:8774/v1.0* <http://192.168.1.74:8774/v1.0> *
>>> http://192.168.1.74:8774/v1.0* <http://192.168.1.74:8774/v1.0> 1 1
>>> bin/keystone-manage endpointTemplates add Region1 nova *
>>> <a href="http://192.168.1.74:8774/v1.1/%tenant_id%*">http://192.168.1.74:8774/v1.1/%tenant_id%* *
>>> <a href="http://192.168.1.74:8774/v1.1/%tenant_id%*">http://192.168.1.74:8774/v1.1/%tenant_id%* *
>>> <a href="http://192.168.1.74:8774/v1.1/%tenant_id%*">http://192.168.1.74:8774/v1.1/%tenant_id%* 1 1
>>> bin/keystone-manage endpointTemplates add Region1 glance *
>>> <a href="http://192.168.1.87:9292/v1.1/%tenant_id%*">http://192.168.1.87:9292/v1.1/%tenant_id%* *
>>> <a href="http://192.168.1.87:9292/v1.1/%tenant_id%*">http://192.168.1.87:9292/v1.1/%tenant_id%* *
>>> <a href="http://192.168.1.87:9292/v1.1/%tenant_id%*">http://192.168.1.87:9292/v1.1/%tenant_id%* 1 1
>>> bin/keystone-manage endpointTemplates add Region1 identity *
>>> http://192.168.1.84:5000/v2.0* <http://192.168.1.84:5000/v2.0> *
>>> http://192.168.1.84:35357/v2.0* <http://192.168.1.84:35357/v2.0> *
>>> http://192.168.1.84:5000/v2.0* <http://192.168.1.84:5000/v2.0> 1 1
>>>
>>> bin/keystone-manage user add admin admin
>>> bin/keystone-manage tenant add admin
>>> bin/keystone-manage role add Admin
>>> bin/keystone-manage role grant Admin admin
>>> bin/keystone-manage role grant Admin admin admin
>>>
>>> bin/keystone-manage endpoint add admin
>>>
>>> bin/keystone-manage role add KeystoneServiceAdmin
>>>
>>> bin/keystone-manage token add 999888777666 admin admin 2015-02-05T00:00
>>>
>>> If, after running these commands, you cannot login as user/password
>>> admin/admin, send me your keystone.log.
>>>
>>> Michael
>>>
>>> -------------------------------------------------
>>> Michael Fork
>>> Cloud Architect, Emerging Solutions
>>> IBM Systems & Technology Group
>>>
>>>
>>>
>>> From:        "Roberto Dalas Z. Benavides" <*betodalas at gmail.com*<betodalas at gmail.com>
>>> >
>>> To:        Michael J Fork/Rochester/IBM at IBMUS
>>> Date:        10/31/2011 01:08 PM
>>> Subject:        Re: [Openstack-operators] Dashboard + Keystone
>>>  ------------------------------
>>>
>>>
>>>
>>> Error:
>>>
>>> 31/Oct/2011 15:04:04] "POST /auth/login/?next=/dash/ HTTP/1.1" 200 1303
>>> DEBUG:django_openstack.api:auth_api connection created using url "*
>>> http://localho* <http://localho/>
>>> st:5000/v2.0/"
>>> ERROR:django_openstack.auth:Error authenticating: Unauthorized
>>> Traceback (most recent call last):
>>>   File
>>> "/src/openstack-horizon-90f51fc/django-openstack/django_openstack/auth/vi
>>> ews.py", line 65, in handle
>>>     data['password'])
>>>   File
>>> "/src/openstack-horizon-90f51fc/django-openstack/django_openstack/api.py"
>>> , line 643, in token_create
>>>     return Token(auth_api().tokens.create(tenant, username, password))
>>>   File
>>> "/src/openstack-horizon-90f51fc/openstack-dashboard/.dashboard-venv/src/o
>>> penstackx/openstackx/auth/tokens.py", line 55, in create
>>>     return self._create('tokens', params, "access")
>>>   File
>>> "/src/openstack-horizon-90f51fc/openstack-dashboard/.dashboard-venv/src/o
>>> penstackx/openstackx/api/base.py", line 40, in _create
>>>     resp, body = self.api.connection.post(url, body=body)
>>>   File
>>> "/src/openstack-horizon-90f51fc/openstack-dashboard/.dashboard-venv/src/o
>>> penstackx/openstackx/api/connection.py", line 81, in post
>>>     return self._cs_request(url, 'POST', **kwargs)
>>>   File
>>> "/src/openstack-horizon-90f51fc/openstack-dashboard/.dashboard-venv/src/o
>>> penstackx/openstackx/api/connection.py", line 66, in _cs_request
>>>     raise ex
>>> Unauthorized: Unauthorized (HTTP 401)
>>> [31/Oct/2011 15:04:07] "POST /auth/login/?next=/dash/ HTTP/1.1" 200 1372
>>>
>>> Thanks
>>>
>>> 2011/10/31 Roberto Dalas Z. Benavides <*betodalas at gmail.com*<betodalas at gmail.com>>
>>>
>>> Fallow results:
>>>
>>> passlib.registry: INFO     registered crypt handler 'sha512_crypt':
>>> <class 'passlib.handlers.sha2_crypt.sha512_crypt'>
>>> sqlalchemy.engine.base.Engine.0x...5a10: INFO     PRAGMA
>>> table_info("services")
>>> sqlalchemy.engine.base.Engine.0x...5a10: INFO     ()
>>> sqlalchemy.engine.base.Engine.0x...5a10: INFO     PRAGMA
>>> table_info("tokens")
>>> sqlalchemy.engine.base.Engine.0x...5a10: INFO     ()
>>> sqlalchemy.engine.base.Engine.0x...5a10: INFO     PRAGMA
>>> table_info("tenants")
>>> sqlalchemy.engine.base.Engine.0x...5a10: INFO     ()
>>> sqlalchemy.engine.base.Engine.0x...5a10: INFO     PRAGMA
>>> table_info("endpoint_templates")
>>> sqlalchemy.engine.base.Engine.0x...5a10: INFO     ()
>>> sqlalchemy.engine.base.Engine.0x...5a10: INFO     PRAGMA
>>> table_info("users")
>>> sqlalchemy.engine.base.Engine.0x...5a10: INFO     ()
>>> sqlalchemy.engine.base.Engine.0x...5a10: INFO     PRAGMA
>>> table_info("roles")
>>> sqlalchemy.engine.base.Engine.0x...5a10: INFO     ()
>>> sqlalchemy.engine.base.Engine.0x...5a10: INFO     PRAGMA
>>> table_info("user_roles")
>>> sqlalchemy.engine.base.Engine.0x...5a10: INFO     ()
>>> sqlalchemy.engine.base.Engine.0x...5a10: INFO     PRAGMA
>>> table_info("endpoints")
>>> sqlalchemy.engine.base.Engine.0x...5a10: INFO     ()
>>> sqlalchemy.engine.base.Engine.0x...5a10: INFO     PRAGMA
>>> table_info("credentials")
>>> sqlalchemy.engine.base.Engine.0x...5a10: INFO     ()
>>> sqlalchemy.engine.base.Engine.0x...5a10: INFO     SELECT *tokens.id*<http://tokens.id/>AS tokens_id, tokens.user_id AS tokens_user_id, tokens.tenant_id AS
>>> tokens_tenant_id, tokens.expires AS tokens_expires
>>> FROM tokens
>>> sqlalchemy.engine.base.Engine.0x...5a10: INFO     ()
>>> token   user    expiration      tenant
>>>
>>> -------------------------------------------------------------------------------
>>> 999888777666    1       *2015-02-05 00* <2015-02-05%2000>:00:00     1
>>> 999888777666555 1       *2015-02-05 00* <2015-02-05%2000>:00:00     1
>>> 999888777666444 3       *2015-02-05 00* <2015-02-05%2000>:00:00     4
>>>
>>>
>>> Thanks
>>>
>>>
>>> 2011/10/31 Michael J Fork <*mjfork at us.ibm.com* <mjfork at us.ibm.com>>
>>> I see the error has changed to UNAUTHORIZED, perhaps while verifying the
>>> token (don't have handy access to the source to verify).  I would double
>>> check the token that Dashboard is using is valid within Keystone
>>> ("keystone-manage token list" I believe).
>>>
>>> Michael
>>>
>>> -------------------------------------------------
>>> Michael Fork
>>> Cloud Architect, Emerging Solutions
>>> IBM Systems & Technology Group
>>>
>>>
>>>
>>> From:        "Roberto Dalas Z. Benavides" <*betodalas at gmail.com*<betodalas at gmail.com>
>>> >
>>> To:        Michael J Fork/Rochester/IBM at IBMUS
>>> Date:        10/31/2011 07:08 AM
>>> Subject:        Re: [Openstack-operators] Dashboard + Keystone
>>>  ------------------------------
>>>
>>>
>>>
>>>
>>>  Hello Michael,
>>>
>>> The external ip is listening, telnet also works. Following is the log of
>>> the dashboard:
>>>
>>> DEBUG:novaclient.client:RESP:{'date': 'Mon, 31 Oct 2011 11:05:07 GMT',
>>> 'status':
>>> '401', 'content-length': '60', 'content-type': 'application/json;
>>> charset=UTF-8
>>> '} {"unauthorized": {"message": "Unauthorized", "code": "401"}}
>>>
>>> ERROR:django_openstack.forms:Nonspecific error while handling form
>>> Traceback (most recent call last):
>>>   File "/src/horizon/django-openstack/django_openstack/forms.py", line
>>> 177, in
>>> m
>>> aybe_handle
>>>     return form, form.handle(request, data)
>>>   File "/src/horizon/django-openstack/django_openstack/auth/views.py",
>>> line
>>> 66,
>>> in handle
>>>     data['password'])
>>>   File "/src/horizon/django-openstack/django_openstack/api.py", line
>>> 680, in
>>> tok
>>> en_create
>>>     c.authenticate()
>>>   File
>>> "/src/horizon/openstack-dashboard/.dashboard-venv/src/python-novaclient/n
>>> ovaclient/client.py", line 210, in authenticate
>>>     auth_url = self._v2_auth(auth_url)
>>>   File
>>> "/src/horizon/openstack-dashboard/.dashboard-venv/src/python-novaclient/n
>>> ovaclient/client.py", line 262, in _v2_auth
>>>     resp, body = self.request(token_url, "POST", body=body)
>>>   File
>>> "/src/horizon/openstack-dashboard/.dashboard-venv/src/python-novaclient/n
>>> ovaclient/client.py", line 101, in request
>>>     raise exceptions.from_response(resp, body)
>>> Unauthorized: Unauthorized (HTTP 401)
>>> [31/Oct/2011 09:05:07] "POST /auth/login/?next=/dash/ HTTP/1.1" 200 1370
>>>
>>>
>>>
>>> 2011/10/31 Michael J Fork <*mjfork at us.ibm.com* <mjfork at us.ibm.com>>
>>> Couple of thoughts:
>>>
>>> 1) Turn on the verbose/debug logging for Keystone and Dashboard
>>> 1) run "netstat -tnap" on the Keystone server and make sure that the
>>> keystone process is listening on an external IP (or 0.0.0.0), if it is not,
>>> adjust the config file, restart, and try again.
>>> 2) Make sure you can telnet from the dashboard machine to the IP/Port
>>> that Keystone is running on
>>> 3) Check the contents of keystone.log to see if dashboard is talking to
>>> it.
>>>
>>> If none of this works, pass along the dashboard.log/keystone.log and I
>>> can take a look.
>>>
>>> Thanks.
>>>
>>> Michael
>>>
>>> -------------------------------------------------
>>> Michael Fork
>>> Cloud Architect, Emerging Solutions
>>> IBM Systems & Technology Group
>>>
>>>
>>>
>>> From:        "Roberto Dalas Z. Benavides" <*betodalas at gmail.com*<betodalas at gmail.com>
>>> >
>>> To:        *openstack-operators at lists.openstack.org*<openstack-operators at lists.openstack.org>
>>> Date:        10/31/2011 05:46 AM
>>> Subject:        [Openstack-operators] Dashboard + Keystone
>>> Sent by:        *openstack-operators-bounces at lists.openstack.org*<openstack-operators-bounces at lists.openstack.org>
>>>  ------------------------------
>>>
>>>
>>>
>>>
>>> Hello everyone,
>>>
>>> I'm trying to access the dashboard using the sta Keystone and giving the
>>> error:
>>>
>>> [31/Oct/2011 07:06:07] "POST / auth / login /? Next = / dash / HTTP/1.1"
>>> 200 1363
>>> [31/Oct/2011 07:17:41] "GET / auth / login /? Next = / dash / HTTP/1.1"
>>> 200 1228
>>> DEBUG: novaclient.client: REQ: *http://10.168.1.4:5000/v2.0/tokens*<http://10.168.1.4:5000/v2.0/tokens>
>>> curl-i-X POST-H "Content-Type: application / json"-H "User-Agent:
>>> python-novaclient "
>>>
>>>
>>> DEBUG: novaclient.client: BODY REQ: {"auth": {"passwordCredentials":
>>> {"username": "dualtec", "password": "status64"}}}
>>>
>>> DEBUG: novaclient.client: RESP: {'status': '400', 'content-length': 24,
>>> 'content-ty pe': 'text / plain'} [Errno 111] ECONNREFUSED
>>>
>>> When I give the command / etc / init.d / keystone start but it shows
>>> that started falling again.
>>>
>>> Does anyone know what can be?
>>>
>>> thank you _______________________________________________
>>> Openstack-operators mailing list*
>>> **Openstack-operators at lists.openstack.org*<Openstack-operators at lists.openstack.org>
>>> *
>>> **
>>> http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-operators*<http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-operators>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstack.org/pipermail/openstack-operators/attachments/20111103/de21515c/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: image/gif
Size: 3822 bytes
Desc: not available
URL: <http://lists.openstack.org/pipermail/openstack-operators/attachments/20111103/de21515c/attachment-0001.gif>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image.png
Type: image/png
Size: 99608 bytes
Desc: not available
URL: <http://lists.openstack.org/pipermail/openstack-operators/attachments/20111103/de21515c/attachment-0001.png>