分享

求助:虚机状态为error

am4126 发表于 2017-4-3 22:03:29 [显示全部楼层] 只看大图 回帖奖励 阅读模式 关闭右栏 22 14556
am4126 发表于 2017-4-4 16:53:40
NEOGX 发表于 2017-4-4 16:17
楼主可以跟官网对比,明显多了,而且endpoint似乎也有问题

          不太明白怎么生成了这么多?endpoint
回复

使用道具 举报

nextuser 发表于 2017-4-4 17:36:00
am4126 发表于 2017-4-4 16:53
不太明白怎么生成了这么多?endpoint

存在两个问题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
DEPRECATED: Use the nova service-* commands from python-novaclient instead or the os-services REST resource. The service subcommand will be removed in the 14.0 release.
Binary           Host                                 Zone             Status     State Updated_At
nova-consoleauth controller                           internal         enabled    :-)   2017-04-04 06:02:06
nova-conductor   controller                           internal         enabled    :-)   2017-04-04 06:02:03
nova-scheduler   controller                           internal         enabled    :-)   2017-04-04 06:02:04
nova-osapi_compute 0.0.0.0                              internal         enabled    XXX   None      
nova-metadata    0.0.0.0                              internal         enabled    XXX   None      
nova-compute     computer                             nova             enabled    :-)   2017-04-04 06:02:04
[root@controller ~]#

上面的hosts都默认本地。

关于endpoint需要先报版本,还有Nova api配置先找到对应的配置。
如果是kilo版应该是在
openstack【Kilo】入门 【nova篇】十二:安装配置nova
http://www.aboutyun.com/forum.php?mod=viewthread&tid=13089

M版是这里
M.jpg

链接
https://docs.openstack.org/mitaka/zh_CN/install-guide-rdo/nova-controller-install.html

其它版本,也是Nova的安装配置。






回复

使用道具 举报

am4126 发表于 2017-4-4 20:32:10
nextuser 发表于 2017-4-4 17:36
存在两个问题1.endpoint是在每个服务都必须添加的。
例如keystone是按照下面方式添加的

      谢谢。。我等下看看
回复

使用道具 举报

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

本版积分规则

关闭

推荐上一条 /2 下一条