nextuser 发表于 2017-4-4 17:36 谢谢。。我等下看看 |
am4126 发表于 2017-4-4 16:53 存在两个问题1.endpoint是在每个服务都必须添加的。 例如keystone是按照下面方式添加的 [mw_shl_code=bash,true]openstack endpoint create --region RegionOne \ identity public http://controller:5000/v3 +--------------+----------------------------------+ | Field | Value | +--------------+----------------------------------+ | enabled | True | | id | 30fff543e7dc4b7d9a0fb13791b78bf4 | | interface | public | | region | RegionOne | | region_id | RegionOne | | service_id | 8c8c0927262a45ad9066cfe70d46892c | | service_name | keystone | | service_type | identity | | url | http://controller:5000/v3 | +--------------+----------------------------------+ $ openstack endpoint create --region RegionOne \ identity internal http://controller:5000/v3 +--------------+----------------------------------+ | Field | Value | +--------------+----------------------------------+ | enabled | True | | id | 57cfa543e7dc4b712c0ab137911bc4fe | | interface | internal | | region | RegionOne | | region_id | RegionOne | | service_id | 6f8de927262ac12f6066cfe70d99ac51 | | service_name | keystone | | service_type | identity | | url | http://controller:5000/v3 | +--------------+----------------------------------+ $ openstack endpoint create --region RegionOne \ identity admin http://controller:35357/v3 +--------------+----------------------------------+ | Field | Value | +--------------+----------------------------------+ | enabled | True | | id | 78c3dfa3e7dc44c98ab1b1379122ecb1 | | interface | admin | | region | RegionOne | | region_id | RegionOne | | service_id | 34ab3d27262ac449cba6cfe704dbc11f | | service_name | keystone | | service_type | identity | | url | http://controller:35357/v3 | +--------------+----------------------------------+[/mw_shl_code] 2.是Nova api配置有问题 [root@controller ~]# nova-manage service list 上面的hosts都默认本地。 关于endpoint需要先报版本,还有Nova api配置先找到对应的配置。 如果是kilo版应该是在 openstack【Kilo】入门 【nova篇】十二:安装配置nova http://www.aboutyun.com/forum.php?mod=viewthread&tid=13089 M版是这里 链接 https://docs.openstack.org/mitaka/zh_CN/install-guide-rdo/nova-controller-install.html 其它版本,也是Nova的安装配置。 |
NEOGX 发表于 2017-4-4 16:17 不太明白怎么生成了这么多?endpoint |
NEOGX 发表于 2017-4-4 16:17 多了什么?? 什么问题。请指教。 谢谢。。以前没玩过openstack 。多多包涵 |
am4126 发表于 2017-4-4 16:02 楼主可以跟官网对比,明显多了,而且endpoint似乎也有问题 |
_DOMAIN_NAME or auth.domain_name [root@controller ~]# . admin-openrc [root@controller ~]# openstack endpoint list +----------------------------------+-----------+--------------+--------------+---------+-----------+----------------------------------------------+ | ID | Region | Service Name | Service Type | Enabled | Interface | URL | +----------------------------------+-----------+--------------+--------------+---------+-----------+----------------------------------------------+ | 12fdcf0ae1b048c98e6c158042033a69 | RegionOne | glance | image | True | internal | http://192.168.11.83:9292 | | 2a6bdb2869324b8ba7e0f1acfbf74bc7 | RegionOne | keystone | identity | True | public | http://192.168.11.83:5000/v3 | | 445bd5482c6546d4876f91fbc9caf4cd | RegionOne | neutron | network | True | internal | http://192.168.11.83:9696 | | 5dd89c00b0144f428a6113149705440a | RegionOne | nova | compute | True | admin | http://192.168.11.83:8774/v2.1/%(tenant_id)s | | 6485e1f6a0e14d098b982ba16c2b1b58 | RegionOne | neutron | network | True | public | http://192.168.11.83:9696 | | 654395a90b7349279dc1624287d820eb | RegionOne | keystone | identity | True | admin | http://controller:35357/v3 | | 6746365cec64424097365ff22a0abcaa | RegionOne | keystone | identity | True | admin | http://192.168.11.83:35357/v3 | | 74686327451c476ca965ed32afc9e47b | RegionOne | glance | image | True | admin | http://192.168.11.83:9292 | | 768a033bca804292b6c1cca01efcb30b | RegionOne | neutron | network | True | admin | http://192.168.11.83:9696 | | 7c4b930e16fa4853898edc3e24514650 | RegionOne | keystone | identity | True | internal | http://192.168.11.83:5000/v3 | | b326362b9ad54918a350c1397b023eac | RegionOne | glance | image | True | internal | http://controller:9292 | | d1cae9c3755f4948abc029edbf356849 | RegionOne | glance | image | True | internal | http://192.168.11.83:1292 | | d9ce38b33002407fbfdf22dd7a7976cc | RegionOne | keystone | identity | True | internal | http://192.168.11.83:5000/v3000/v3 | | dd194b81b3e8450683cd1be2936cbfda | RegionOne | nova | compute | True | public | http://192.168.11.83:8774/v2.1/%(tenant_id)s | | e0f46451cb0f4bc7b05d43577746e02d | RegionOne | glance | image | True | public | http://192.168.11.83:9292 | | fded2a8c42fd40e4b1e9baa32fa01573 | RegionOne | nova | compute | True | internal | http://192.168.11.83:8774/v2.1/%(tenant_id)s | +----------------------------------+-----------+--------------+--------------+---------+-----------+----------------------------------------------+ [root@controller ~]# |
_DOMAIN_NAME or auth.domain_name [root@controller ~]# . admin-openrc [root@controller ~]# openstack endpoint list +----------------------------------+-----------+--------------+--------------+---------+-----------+----------------------------------------------+ | ID | Region | Service Name | Service Type | Enabled | Interface | URL | +----------------------------------+-----------+--------------+--------------+---------+-----------+----------------------------------------------+ | 12fdcf0ae1b048c98e6c158042033a69 | RegionOne | glance | image | True | internal | http://192.168.11.83:9292 | | 2a6bdb2869324b8ba7e0f1acfbf74bc7 | RegionOne | keystone | identity | True | public | http://192.168.11.83:5000/v3 | | 445bd5482c6546d4876f91fbc9caf4cd | RegionOne | neutron | network | True | internal | http://192.168.11.83:9696 | | 5dd89c00b0144f428a6113149705440a | RegionOne | nova | compute | True | admin | http://192.168.11.83:8774/v2.1/%(tenant_id)s | | 6485e1f6a0e14d098b982ba16c2b1b58 | RegionOne | neutron | network | True | public | http://192.168.11.83:9696 | | 654395a90b7349279dc1624287d820eb | RegionOne | keystone | identity | True | admin | http://controller:35357/v3 | | 6746365cec64424097365ff22a0abcaa | RegionOne | keystone | identity | True | admin | http://192.168.11.83:35357/v3 | | 74686327451c476ca965ed32afc9e47b | RegionOne | glance | image | True | admin | http://192.168.11.83:9292 | | 768a033bca804292b6c1cca01efcb30b | RegionOne | neutron | network | True | admin | http://192.168.11.83:9696 | | 7c4b930e16fa4853898edc3e24514650 | RegionOne | keystone | identity | True | internal | http://192.168.11.83:5000/v3 | | b326362b9ad54918a350c1397b023eac | RegionOne | glance | image | True | internal | http://controller:9292 | | d1cae9c3755f4948abc029edbf356849 | RegionOne | glance | image | True | internal | http://192.168.11.83:1292 | | d9ce38b33002407fbfdf22dd7a7976cc | RegionOne | keystone | identity | True | internal | http://192.168.11.83:5000/v3000/v3 | | dd194b81b3e8450683cd1be2936cbfda | RegionOne | nova | compute | True | public | http://192.168.11.83:8774/v2.1/%(tenant_id)s | | e0f46451cb0f4bc7b05d43577746e02d | RegionOne | glance | image | True | public | http://192.168.11.83:9292 | | fded2a8c42fd40e4b1e9baa32fa01573 | RegionOne | nova | compute | True | internal | http://192.168.11.83:8774/v2.1/%(tenant_id)s | +----------------------------------+-----------+--------------+--------------+---------+-----------+----------------------------------------------+ [root@controller ~]# 我看到有介绍,那两个服务绑定在了os-api里。不启动也正常 |
am4126 发表于 2017-4-4 15:35 哪个版本的,看下endpoint旧版本 [mw_shl_code=bash,true]keystone endpoint list [/mw_shl_code] 新版本 [mw_shl_code=bash,true]openstack endpoint list[/mw_shl_code] |
2017-04-04 15:32:16.828 4802 WARNING keystonemiddleware.auth_token [-] Configuring auth_uri to point to the public identity endpoint is required; clients may not be able to authenticate against an admin endpoint 难道又是uri的问题。。 |
我是看官方文档做的。里面没有提怎么启动这两个服务。 难道是教程的问题吗? 官网那个教程,问题多多,url都搞成uri |