分享

dashboard登录出错

ztg227 发表于 2017-3-6 09:50:57 [显示全部楼层] 回帖奖励 阅读模式 关闭右栏 8 13005
本帖最后由 ztg227 于 2017-3-6 09:52 编辑

在登录时,输入 default  admin admin时,界面提示出错啦,发生意外错误。通过查看/var/log/apache2/error.log文件,最后有报错信息,
[Mon Mar 06 09:43:22.951521 2017] [:error] [pid 4638:tid 140426592548608]     raise exceptions.EndpointNotFound(msg)
[Mon Mar 06 09:43:22.951528 2017] [:error] [pid 4638:tid 140426592548608] EndpointNotFound: public endpoint for identity service not found

请问应该如何解决呢

file:///C:\Users\Administrator\AppData\Roaming\feiq\RichOle\3204013739.bmp

已有(8)人评论

跳转到指定楼层
easthome001 发表于 2017-3-6 09:57:23
keystone service-list看下
endpoint出现问题了

首先理解endpoint,这个问题就好解决了
服务endpoint的三种url是怎么理解的
http://www.aboutyun.com/forum.php?mod=viewthread&tid=16531


openstack【juno】入门 【keystone篇】六::Keystone使用及遇到问题解决办法
http://www.aboutyun.com/forum.php?mod=viewthread&tid=11420


回复

使用道具 举报

ztg227 发表于 2017-3-6 10:04:48
谢谢回复
adminrcroot@controller:~$keystone service-list
/usr/lib/python2.7/dist-packages/keystoneclient/shell.py:64: DeprecationWarning: The keystone CLI is deprecated in favor of python-openstackclient. For a Python library, continue using python-keystoneclient.
  'python-keystoneclient.', DeprecationWarning)
WARNING: unsupported identity-api-version 3, falling back to 2.0
/usr/lib/python2.7/dist-packages/keystoneclient/v2_0/client.py:145: DeprecationWarning: Constructing an instance of the keystoneclient.v2_0.client.Client class without a session is deprecated as of the 1.7.0 release and may be removed in the 2.0.0 release.
  'the 2.0.0 release.', DeprecationWarning)
/usr/lib/python2.7/dist-packages/keystoneclient/v2_0/client.py:147: DeprecationWarning: Using the 'tenant_name' argument is deprecated in version '1.7.0' and will be removed in version '2.0.0', please use the 'project_name' argument instead
  super(Client, self).__init__(**kwargs)
/usr/lib/python2.7/dist-packages/debtcollector/renames.py:45: DeprecationWarning: Using the 'tenant_id' argument is deprecated in version '1.7.0' and will be removed in version '2.0.0', please use the 'project_id' argument instead
  return f(*args, **kwargs)
/usr/lib/python2.7/dist-packages/keystoneclient/httpclient.py:371: DeprecationWarning: Constructing an HTTPClient instance without using a session is deprecated as of the 1.7.0 release and may be removed in the 2.0.0 release.
  'the 2.0.0 release.', DeprecationWarning)
/usr/lib/python2.7/dist-packages/keystoneclient/session.py:140: DeprecationWarning: keystoneclient.session.Session is deprecated as of the 2.1.0 release in favor of keystoneauth1.session.Session. It will be removed in future releases.
  DeprecationWarning)
/usr/lib/python2.7/dist-packages/keystoneclient/auth/identity/base.py:56: DeprecationWarning: keystoneclient auth plugins are deprecated as of the 2.1.0 release in favor of keystoneauth1 plugins. They will be removed in future releases.
  'in future releases.', DeprecationWarning)
Authorization Failed: The resource could not be found. (HTTP 404) (Request-ID: req-6ee03c79-62a5-422f-be33-c2e28fd0e5ff)


回复

使用道具 举报

easthome001 发表于 2017-3-6 13:50:43
ztg227 发表于 2017-3-6 10:04
谢谢回复
adminrcroot@controller:~$keystone service-list
/usr/lib/python2.7/dist-packages/keystonec ...

你的是m版吧,用这个命令看下,确保每个组建的endpoint都存在并且没有问题
openstack endpoint list
回复

使用道具 举报

ztg227 发表于 2017-3-7 11:07:21
对的,是m版,执行命令后如下所示,请问如何排查
rootrc@root@controller:~$openstack endpoint list
+----------------------------------+-----------+--------------+--------------+---------+-----------+-------------------------------------------+
| ID                               | Region    | Service Name | Service Type | Enabled | Interface | URL                                       |
+----------------------------------+-----------+--------------+--------------+---------+-----------+-------------------------------------------+
| 08a8e57392064244a786bc32d299a799 | RegionOne | nova         | compute      | True    | public    | http://controller:8774/v2.1/%(tenant_id)s |
| 16d208b81f754491b4c982ce209ac9b4 | RegionOne | neutron      | network      | True    | internal  | http://controller:9696                    |
| 4cc8c95b1218438da73808e9e026e7be | RegionOne | nova         | compute      | True    | admin     | http://controller:8774/v2.1/%(tenant_id)s |
| 5c966fd1356145f799a35b1f4ccbe8c4 | RegionOne | neutron      | network      | True    | public    | http://controller:9696                    |
| 5d997f9ce36f4a40833e6063943d4d88 | RegionOne | nova         | compute      | True    | internal  | http://controller:8774/v2.1/%(tenant_id)s |
| 6907798555974f508a72908d1bd91f01 | RegionOne | glance       | image        | True    | admin     | http://controller:9292                    |
| 69994af56ca44299914028553b0b5230 | RegionOne | glance       | image        | True    | internal  | http://controller:9292                    |
| 8fc310d749334cba98e520ceef01a739 | RegionOne | glance       | image        | True    | public    | http://controller:9292                    |
| c26dc38b0f084ddc96e680f776a02176 | RegionOne | keystone     | identity     | True    | admin     | http://controller:35357/v3                |
| e53468f402f140e197fa8533cbb753f9 | RegionOne | neutron      | network      | True    | admin     | http://controller:9696                    |
| ffc6110aeea24514aed7502a9439d0b3 | RegionOne | keystone     | identity     | True    | internal  | http://controller:5000/v3                 |
+----------------------------------+-----------+--------------+--------------+---------+-----------+-------------------------------------------+
回复

使用道具 举报

ztg227 发表于 2017-3-7 11:08:10
是的,M版,执行命令后如下所示,请教如何排查
rootrc@root@controller:~$openstack endpoint list
+----------------------------------+-----------+--------------+--------------+---------+-----------+-------------------------------------------+
| ID                               | Region    | Service Name | Service Type | Enabled | Interface | URL                                       |
+----------------------------------+-----------+--------------+--------------+---------+-----------+-------------------------------------------+
| 08a8e57392064244a786bc32d299a799 | RegionOne | nova         | compute      | True    | public    | http://controller:8774/v2.1/%(tenant_id)s |
| 16d208b81f754491b4c982ce209ac9b4 | RegionOne | neutron      | network      | True    | internal  | http://controller:9696                    |
| 4cc8c95b1218438da73808e9e026e7be | RegionOne | nova         | compute      | True    | admin     | http://controller:8774/v2.1/%(tenant_id)s |
| 5c966fd1356145f799a35b1f4ccbe8c4 | RegionOne | neutron      | network      | True    | public    | http://controller:9696                    |
| 5d997f9ce36f4a40833e6063943d4d88 | RegionOne | nova         | compute      | True    | internal  | http://controller:8774/v2.1/%(tenant_id)s |
| 6907798555974f508a72908d1bd91f01 | RegionOne | glance       | image        | True    | admin     | http://controller:9292                    |
| 69994af56ca44299914028553b0b5230 | RegionOne | glance       | image        | True    | internal  | http://controller:9292                    |
| 8fc310d749334cba98e520ceef01a739 | RegionOne | glance       | image        | True    | public    | http://controller:9292                    |
| c26dc38b0f084ddc96e680f776a02176 | RegionOne | keystone     | identity     | True    | admin     | http://controller:35357/v3                |
| e53468f402f140e197fa8533cbb753f9 | RegionOne | neutron      | network      | True    | admin     | http://controller:9696                    |
| ffc6110aeea24514aed7502a9439d0b3 | RegionOne | keystone     | identity     | True    | internal  | http://controller:5000/v3                 |
+----------------------------------+-----------+--------------+--------------+---------+-----------+-------------------------------------------+


回复

使用道具 举报

qcbb001 发表于 2017-3-7 17:21:48
ztg227 发表于 2017-3-7 11:08
是的,M版,执行命令后如下所示,请教如何排查
rootrc@root@controller:~$openstack endpoint list
+---- ...

keystone 缺少piblic endpoint【会造成外部访问出错,正如楼主登陆失败】
回复

使用道具 举报

ztg227 发表于 2017-3-8 07:50:58
感谢回复,请问应该如何增加这个public 的endpoint呢?

回复

使用道具 举报

ztg227 发表于 2017-3-8 08:06:16
我通过openstack endpoint create…………。  添加一个public 的 endpoint后,可以成功在DashBoard访问了。非常感谢……。
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

关闭

推荐上一条 /2 下一条