[Openstack] Dashboard Error

ZHOU TAO A tao.a.zhou at alcatel-lucent.com
Thu Aug 7 00:43:21 UTC 2014


run 'nova --debug list' and check the output.
did you restart keystone and nova-api after you updated the endpoints?

On 08/06/2014 08:30 PM, Sujeet Mulmi wrote:
> output for nova list
>
> [root at controller ~]# nova list
> ERROR: Unauthorized (HTTP 401)
>
>
>
> [DEFAULT]
> # RabbitMQ server's hostname or IP
> vnc_enabled=true
> novncproxy_host=0.0.0.0
> novncproxy_port=6080
> novncproxy_base_url=http://192.168.137.101:6080/vnc_auto.html
> vncserver_listen=192.168.137.101
> vncserver_proxyclient_address=192.168.137.101
> rabbit_host=192.168.137.101
> rabbit_port=5672
> # RabbitMQ server's User for auth
> rabbit_userid=guest
> # RabbitMQ server's password of the User above
> rabbit_password=xxxx
> rpc_backend = rabbit
> notification_driver=nova.openstack.common.notifier.rpc_notifier
> # define own IP
> my_ip=192.168.137.101
> # add it if not need IPv6
> use_ipv6=false
> state_path=/var/lib/nova
> enabled_apis=ec2,osapi_compute,metadata
> osapi_compute_listen=0.0.0.0
> osapi_compute_listen_port=8774
> rootwrap_config=/etc/nova/rootwrap.conf
> api_paste_config=api-paste.ini
> auth_strategy=keystone
> # Glance server's hostname or IP
> glance_host=192.168.137.101
> glance_port=9292
> glance_protocol=http
> lock_path=/var/lib/nova/tmp
> log_dir=/var/log/nova
> # Memcached server's hostname or IP
> memcached_servers=192.168.137.101:11211 <http://192.168.137.101:11211>
> scheduler_driver=nova.scheduler.filter_scheduler.FilterScheduler
>
> [database]
> # connection info for MariaDB ( the "password" is the one you inputed 
> with "openstack-db" command )
> connection=mysql://nova:xxxx@192.168.137.101/nova 
> <http://nova:xxxx@192.168.137.101/nova>
> [keystone_authtoken]
> # Keystone server's hostname or IP
> auth_host=192.168.137.101
> auth_port=35357
> auth_protocol=http
> auth_version=v2.0
> admin_user=nova
> admin_password=xxxxx
> admin_tenant_name=service
> signing_dir=/var/lib/nova/keystone-signing
> identity_uri=http://192.168.137.101:5000/v2.0
> auth_uri=http://192.168.137.101:5000/v2.0
>
>
>
>
>
> On Wed, Aug 6, 2014 at 11:35 AM, ZHOU TAO A 
> <tao.a.zhou at alcatel-lucent.com <mailto:tao.a.zhou at alcatel-lucent.com>> 
> wrote:
>
>     What about 'nova list'.
>     Can you share your nova.conf?
>
>
>     On 08/06/2014 09:54 AM, Sujeet Mulmi wrote:
>>     Last modification was made in dashboard local_settings.Please
>>     check the attached file.
>>
>>
>>     Sujeet
>>
>>
>>     On Wed, Aug 6, 2014 at 6:32 AM, ZHOU TAO A
>>     <tao.a.zhou at alcatel-lucent.com
>>     <mailto:tao.a.zhou at alcatel-lucent.com>> wrote:
>>
>>
>>         What file does the output reside?
>>         Does your keystone work?
>>         What's your configuration files look like?
>>         And what exactly have you done before your had this error?
>>
>>         Tao
>>
>>
>>         On 08/05/2014 03:41 PM, Sujeet Mulmi wrote:
>>>         Hi Zhou,
>>>
>>>            with controller IP, following output results:
>>>
>>>         [Tue Aug 05 07:25:45 2014] [error]
>>>         INFO:urllib3.connectionpool:Starting new HTTP connection
>>>         (1): 192.168.137.101
>>>         [Tue Aug 05 07:25:45 2014] [error]
>>>         DEBUG:urllib3.connectionpool:"POST /v2.0/tokens HTTP/1.1"
>>>         200 1349
>>>         [Tue Aug 05 07:25:45 2014] [error]
>>>         INFO:urllib3.connectionpool:Starting new HTTP connection
>>>         (1): 192.168.137.101
>>>         [Tue Aug 05 07:25:45 2014] [error]
>>>         DEBUG:urllib3.connectionpool:"GET /v2.0/tenants HTTP/1.1"
>>>         200 143
>>>         [Tue Aug 05 07:25:45 2014] [error]
>>>         INFO:urllib3.connectionpool:Starting new HTTP connection
>>>         (1): 192.168.137.101
>>>         [Tue Aug 05 07:25:45 2014] [error]
>>>         DEBUG:urllib3.connectionpool:"POST /v2.0/tokens HTTP/1.1"
>>>         200 3967
>>>         [Tue Aug 05 07:25:45 2014] [error] Login successful for user
>>>         "admin".
>>>         [Tue Aug 05 07:25:46 2014] [error]
>>>         [Tue Aug 05 07:25:46 2014] [error] REQ: curl -i
>>>         'http://192.168.137.101:8774/v2/121eae2f2f664dc49265ad11229022c3/extensions'
>>>         -X GET -H "X-Auth-Project-Id:
>>>         121eae2f2f664dc49265ad11229022c3" -H "User-Agent:
>>>         python-novaclient" -H "Accept: application/json" -H
>>>         "X-Auth-Token: 2b44d3ef0b882019cad7e470cc5cc213"
>>>         [Tue Aug 05 07:25:46 2014] [error]
>>>         [Tue Aug 05 07:25:46 2014] [error]
>>>         INFO:urllib3.connectionpool:Starting new HTTP connection
>>>         (1): 192.168.137.101
>>>         [Tue Aug 05 07:25:46 2014] [error]
>>>         DEBUG:urllib3.connectionpool:"GET
>>>         /v2/121eae2f2f664dc49265ad11229022c3/extensions HTTP/1.1" 401 23
>>>         [Tue Aug 05 07:25:46 2014] [error] RESP: [401] {'date':
>>>         'Tue, 05 Aug 2014 07:25:46 GMT', 'content-length': '23',
>>>         'content-type': 'text/plain', 'www-authenticate': "Keystone
>>>         uri='http://192.168.168.101:5000/v2.0'"}
>>>         [Tue Aug 05 07:25:46 2014] [error] RESP BODY: Authentication
>>>         required
>>>         [Tue Aug 05 07:25:46 2014] [error]
>>>         [Tue Aug 05 07:25:46 2014] [error]
>>>         [Tue Aug 05 07:25:46 2014] [error] REQ: curl -i
>>>         'http://192.168.137.101:8774/v2/121eae2f2f664dc49265ad11229022c3'
>>>         -X GET -H "X-Auth-Project-Id:
>>>         121eae2f2f664dc49265ad11229022c3" -H "X-Auth-Key:
>>>         2b44d3ef0b882019cad7e470cc5cc213" -H "Accept:
>>>         application/json" -H "X-Auth-User: admin" -H "User-Agent:
>>>         python-novaclient"
>>>         [Tue Aug 05 07:25:46 2014] [error]
>>>         [Tue Aug 05 07:25:46 2014] [error]
>>>         INFO:urllib3.connectionpool:Starting new HTTP connection
>>>         (1): 192.168.137.101
>>>         [Tue Aug 05 07:25:46 2014] [error]
>>>         DEBUG:urllib3.connectionpool:"GET
>>>         /v2/121eae2f2f664dc49265ad11229022c3 HTTP/1.1" 401 23
>>>         [Tue Aug 05 07:25:46 2014] [error] RESP: [401] {'date':
>>>         'Tue, 05 Aug 2014 07:25:46 GMT', 'content-length': '23',
>>>         'content-type': 'text/plain', 'www-authenticate': "Keystone
>>>         uri='http://192.168.168.101:5000/v2.0'"}
>>>         [Tue Aug 05 07:25:46 2014] [error] RESP BODY: Authentication
>>>         required
>>>         [Tue Aug 05 07:25:46 2014] [error]
>>>         [Tue Aug 05 07:25:46 2014] [error] Internal Server Error:
>>>         /dashboard/admin/
>>>         [Tue Aug 05 07:25:46 2014] [error] Traceback (most recent
>>>         call last):
>>>         [Tue Aug 05 07:25:46 2014] [error]   File
>>>         "/usr/lib/python2.6/site-packages/django/core/handlers/base.py",
>>>         line 109, in get_response
>>>         [Tue Aug 05 07:25:46 2014] [error]     response =
>>>         callback(request, *callback_args, **callback_kwargs)
>>>         [Tue Aug 05 07:25:46 2014] [error]   File
>>>         "/usr/lib/python2.6/site-packages/horizon/decorators.py",
>>>         line 38, in dec
>>>         [Tue Aug 05 07:25:46 2014] [error]     return
>>>         view_func(request, *args, **kwargs)
>>>         [Tue Aug 05 07:25:46 2014] [error]   File
>>>         "/usr/lib/python2.6/site-packages/horizon/decorators.py",
>>>         line 86, in dec
>>>         [Tue Aug 05 07:25:46 2014] [error]     return
>>>         view_func(request, *args, **kwargs)
>>>         [Tue Aug 05 07:25:46 2014] [error]   File
>>>         "/usr/lib/python2.6/site-packages/horizon/decorators.py",
>>>         line 54, in dec
>>>         [Tue Aug 05 07:25:46 2014] [error]     return
>>>         view_func(request, *args, **kwargs)
>>>         [Tue Aug 05 07:25:46 2014] [error]   File
>>>         "/usr/lib/python2.6/site-packages/horizon/decorators.py",
>>>         line 38, in dec
>>>         [Tue Aug 05 07:25:46 2014] [error]     return
>>>         view_func(request, *args, **kwargs)
>>>         [Tue Aug 05 07:25:46 2014] [error]   File
>>>         "/usr/lib/python2.6/site-packages/horizon/decorators.py",
>>>         line 86, in dec
>>>         [Tue Aug 05 07:25:46 2014] [error]     return
>>>         view_func(request, *args, **kwargs)
>>>         [Tue Aug 05 07:25:46 2014] [error]   File
>>>         "/usr/lib/python2.6/site-packages/django/views/generic/base.py",
>>>         line 48, in view
>>>         [Tue Aug 05 07:25:46 2014] [error]     return
>>>         self.dispatch(request, *args, **kwargs)
>>>         [Tue Aug 05 07:25:46 2014] [error]   File
>>>         "/usr/lib/python2.6/site-packages/django/views/generic/base.py",
>>>         line 69, in dispatch
>>>         [Tue Aug 05 07:25:46 2014] [error]     return
>>>         handler(request, *args, **kwargs)
>>>         [Tue Aug 05 07:25:46 2014] [error]   File
>>>         "/usr/lib/python2.6/site-packages/horizon/tables/views.py",
>>>         line 154, in get
>>>         [Tue Aug 05 07:25:46 2014] [error]     handled =
>>>         self.construct_tables()
>>>         [Tue Aug 05 07:25:46 2014] [error]   File
>>>         "/usr/lib/python2.6/site-packages/horizon/tables/views.py",
>>>         line 145, in construct_tables
>>>         [Tue Aug 05 07:25:46 2014] [error]     handled =
>>>         self.handle_table(table)
>>>         [Tue Aug 05 07:25:46 2014] [error]   File
>>>         "/usr/lib/python2.6/site-packages/horizon/tables/views.py",
>>>         line 118, in handle_table
>>>         [Tue Aug 05 07:25:46 2014] [error]     data =
>>>         self._get_data_dict()
>>>         [Tue Aug 05 07:25:46 2014] [error]   File
>>>         "/usr/lib/python2.6/site-packages/horizon/tables/views.py",
>>>         line 181, in _get_data_dict
>>>         [Tue Aug 05 07:25:46 2014] [error]     self._data =
>>>         {self.table_class._meta.name <http://meta.name>:
>>>         self.get_data()}
>>>         [Tue Aug 05 07:25:46 2014] [error]   File
>>>         "/usr/share/openstack-dashboard/openstack_dashboard/wsgi/../../openstack_dashboard/dashboards/admin/overview/views.py",
>>>         line 60, in get_data
>>>         [Tue Aug 05 07:25:46 2014] [error]     data =
>>>         super(GlobalOverview, self).get_data()
>>>         [Tue Aug 05 07:25:46 2014] [error]   File
>>>         "/usr/share/openstack-dashboard/openstack_dashboard/wsgi/../../openstack_dashboard/usage/views.py",
>>>         line 43, in get_data
>>>         [Tue Aug 05 07:25:46 2014] [error]
>>>         self.usage.summarize(*self.usage.get_date_range())
>>>         [Tue Aug 05 07:25:46 2014] [error]   File
>>>         "/usr/share/openstack-dashboard/openstack_dashboard/wsgi/../../openstack_dashboard/usage/base.py",
>>>         line 200, in summarize
>>>         [Tue Aug 05 07:25:46 2014] [error]     if not
>>>         api.nova.extension_supported('SimpleTenantUsage', self.request):
>>>         [Tue Aug 05 07:25:46 2014] [error]   File
>>>         "/usr/lib/python2.6/site-packages/horizon/utils/memoized.py", line
>>>         90, in wrapped
>>>         [Tue Aug 05 07:25:46 2014] [error]     value = cache[key] =
>>>         func(*args, **kwargs)
>>>         [Tue Aug 05 07:25:46 2014] [error]   File
>>>         "/usr/share/openstack-dashboard/openstack_dashboard/wsgi/../../openstack_dashboard/api/nova.py",
>>>         line 752, in extension_supported
>>>         [Tue Aug 05 07:25:46 2014] [error]     extensions =
>>>         list_extensions(request)
>>>         [Tue Aug 05 07:25:46 2014] [error]   File
>>>         "/usr/lib/python2.6/site-packages/horizon/utils/memoized.py", line
>>>         90, in wrapped
>>>         [Tue Aug 05 07:25:46 2014] [error]     value = cache[key] =
>>>         func(*args, **kwargs)
>>>         [Tue Aug 05 07:25:46 2014] [error]   File
>>>         "/usr/share/openstack-dashboard/openstack_dashboard/wsgi/../../openstack_dashboard/api/nova.py",
>>>         line 743, in list_extensions
>>>         [Tue Aug 05 07:25:46 2014] [error]     return
>>>         nova_list_extensions.ListExtManager(novaclient(request)).show_all()
>>>         [Tue Aug 05 07:25:46 2014] [error]   File
>>>         "/usr/lib/python2.6/site-packages/novaclient/v1_1/contrib/list_extensions.py",
>>>         line 37, in show_all
>>>         [Tue Aug 05 07:25:46 2014] [error]     return
>>>         self._list("/extensions", 'extensions')
>>>         [Tue Aug 05 07:25:46 2014] [error]   File
>>>         "/usr/lib/python2.6/site-packages/novaclient/base.py", line
>>>         64, in _list
>>>         [Tue Aug 05 07:25:46 2014] [error]     _resp, body =
>>>         self.api.client.get(url)
>>>         [Tue Aug 05 07:25:46 2014] [error]   File
>>>         "/usr/lib/python2.6/site-packages/novaclient/client.py",
>>>         line 309, in get
>>>         [Tue Aug 05 07:25:46 2014] [error]     return
>>>         self._cs_request(url, 'GET', **kwargs)
>>>         [Tue Aug 05 07:25:46 2014] [error]   File
>>>         "/usr/lib/python2.6/site-packages/novaclient/client.py",
>>>         line 301, in _cs_request
>>>         [Tue Aug 05 07:25:46 2014] [error]     raise e
>>>         [Tue Aug 05 07:25:46 2014] [error] Unauthorized:
>>>         Unauthorized (HTTP 401)
>>>
>>>
>>>         On Tue, Aug 5, 2014 at 11:33 AM, ZHOU TAO A
>>>         <tao.a.zhou at alcatel-lucent.com
>>>         <mailto:tao.a.zhou at alcatel-lucent.com>> wrote:
>>>
>>>             You have the wrong endpoints:
>>>
>>>
>>>             | 791fecb5eb414f2ebf4ebb0700e8f847 | regionOne |
>>>             http://192.168.137.102:8774/v2/%(tenant_id)s
>>>             <http://192.168.137.102:8774/v2/%%28tenant_id%29s> |
>>>             http://192.168.137.102:8774/v2/%(tenant_id)s
>>>             <http://192.168.137.102:8774/v2/%%28tenant_id%29s> |
>>>             http://192.168.137.102:8774/v2/%(tenant_id)s
>>>             <http://192.168.137.102:8774/v2/%%28tenant_id%29s> |
>>>
>>>             The ip address should be the controller's IP.
>>>
>>>
>>>             On 08/05/2014 11:28 AM, Sujeet Mulmi wrote:
>>>>             Hi,
>>>>
>>>>                I am trying to bring Dashboard up and ended with
>>>>             following error:
>>>>
>>>>             [Tue Aug 05 02:16:42 2014] [error]
>>>>             INFO:urllib3.connectionpool:Starting new HTTP
>>>>             connection (1): 192.168.137.101
>>>>             [Tue Aug 05 02:16:42 2014] [error]
>>>>             DEBUG:urllib3.connectionpool:"POST /v2.0/tokens
>>>>             HTTP/1.1" 200 1349
>>>>             [Tue Aug 05 02:16:42 2014] [error]
>>>>             INFO:urllib3.connectionpool:Starting new HTTP
>>>>             connection (1): 192.168.137.101
>>>>             [Tue Aug 05 02:16:42 2014] [error]
>>>>             DEBUG:urllib3.connectionpool:"GET /v2.0/tenants
>>>>             HTTP/1.1" 200 143
>>>>             [Tue Aug 05 02:16:42 2014] [error]
>>>>             INFO:urllib3.connectionpool:Starting new HTTP
>>>>             connection (1): 192.168.137.101
>>>>             [Tue Aug 05 02:16:42 2014] [error]
>>>>             DEBUG:urllib3.connectionpool:"POST /v2.0/tokens
>>>>             HTTP/1.1" 200 3967
>>>>             [Tue Aug 05 02:16:42 2014] [error] Login successful for
>>>>             user "admin".
>>>>             [Tue Aug 05 02:16:42 2014] [error]
>>>>             [Tue Aug 05 02:16:42 2014] [error] REQ: curl -i
>>>>             'http://192.168.137.102:8774/v2/121eae2f2f664dc49265ad11229022c3/extensions'
>>>>             -X GET -H "X-Auth-Project-Id:
>>>>             121eae2f2f664dc49265ad11229022c3" -H "User-Agent:
>>>>             python-novaclient" -H "Accept: application/json" -H
>>>>             "X-Auth-Token: 352f4915d730d862e28c8ef02a85b029"
>>>>             [Tue Aug 05 02:16:42 2014] [error]
>>>>             [Tue Aug 05 02:16:42 2014] [error]
>>>>             INFO:urllib3.connectionpool:Starting new HTTP
>>>>             connection (1): 192.168.137.102
>>>>
>>>>
>>>>
>>>>             endpoint is as follows:
>>>>             [root at controller ~]# keystone endpoint-list
>>>>             +----------------------------------+-----------+----------------------------------------------+----------------------------------------------+----------------------------------------------+----------------------------------+
>>>>             |  id  |   region  |  publicurl           | internalurl
>>>>                        | adminurl         |    service_id        |
>>>>             +----------------------------------+-----------+----------------------------------------------+----------------------------------------------+----------------------------------------------+----------------------------------+
>>>>             | 791fecb5eb414f2ebf4ebb0700e8f847 | regionOne |
>>>>             http://192.168.137.102:8774/v2/%(tenant_id)s
>>>>             <http://192.168.137.102:8774/v2/%%28tenant_id%29s> |
>>>>             http://192.168.137.102:8774/v2/%(tenant_id)s
>>>>             <http://192.168.137.102:8774/v2/%%28tenant_id%29s> |
>>>>             http://192.168.137.102:8774/v2/%(tenant_id)s
>>>>             <http://192.168.137.102:8774/v2/%%28tenant_id%29s> |
>>>>             60a3a48fdd2d4cbdaedc2209579b5f7d |
>>>>             | a12049abee334215bea3308a6e01a43d | regionOne |
>>>>             http://192.168.137.101:9292          |
>>>>             http://192.168.137.101:9292          |
>>>>             http://192.168.137.101:9292          |
>>>>             79f631a6530746458944d8606eeb9289 |
>>>>             | f9a297aa9cd54f9d8442b703832a9734 | regionOne |
>>>>             http://192.168.137.101:5000/v2.0       |
>>>>             http://192.168.137.101:5000/v2.0       |
>>>>             http://192.168.137.101:35357/v2.0       |
>>>>             f124253db62f4c56ac324ec77552dbf1 |
>>>>             +----------------------------------+-----------+----------------------------------------------+----------------------------------------------+----------------------------------------------+----------------------------------+
>>>>
>>>>             where 192.168.137.102 = compute node.
>>>>             192.168.137.101 = controller node.
>>>>
>>>>               could anyone suggest how to resovle the issue.
>>>>
>>>>             Regards,
>>>>             Sujeet
>>>>
>>>>
>>>>             _______________________________________________
>>>>             Mailing list:http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack
>>>>             Post to     :openstack at lists.openstack.org  <mailto:openstack at lists.openstack.org>
>>>>             Unsubscribe :http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack
>>>
>>>
>>>             _______________________________________________
>>>             Mailing list:
>>>             http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack
>>>             Post to     : openstack at lists.openstack.org
>>>             <mailto:openstack at lists.openstack.org>
>>>             Unsubscribe :
>>>             http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack
>>>
>>>
>>
>>
>
>

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstack.org/pipermail/openstack/attachments/20140807/3f985cf1/attachment.html>


More information about the Openstack mailing list