标签:ocata placement
1、故障现象:Ocata配置完nova服务后,发现computer节点居然没有起来:
[root@linux-node1 nova]# systemctl status openstack-nova-compute.service ● openstack-nova-compute.service - OpenStack Nova Compute Server Loaded: loaded (/usr/lib/systemd/system/openstack-nova-compute.service; enabled; vendor preset: disabled) Active: activating (start) since Fri 2017-03-10 08:53:58 CST; 6s ago Main PID: 14063 (nova-compute) CGroup: /system.slice/openstack-nova-compute.service └─14063 /usr/bin/python2 /usr/bin/nova-compute Mar 10 08:53:58 linux-node1.wanwan.com systemd[1]: Starting OpenStack Nova Compute Server... [root@linux-node1 ~]# tail -10 /var/log/nova/nova-compute.log 2017-03-10 08:55:25.156 14177 ERROR oslo_service.service [-] Error starting thread. 2017-03-10 08:55:25.156 14177 ERROR oslo_service.service Traceback (most recent call last): 2017-03-10 08:55:25.156 14177 ERROR oslo_service.service File "/usr/lib/python2.7/site-packages/oslo_service/service.py", line 722, in run_service 2017-03-10 08:55:25.156 14177 ERROR oslo_service.service service.start() 2017-03-10 08:55:25.156 14177 ERROR oslo_service.service File "/usr/lib/python2.7/site-packages/nova/service.py", line 144, in start 2017-03-10 08:55:25.156 14177 ERROR oslo_service.service self.manager.init_host() 2017-03-10 08:55:25.156 14177 ERROR oslo_service.service File "/usr/lib/python2.7/site-packages/nova/compute/manager.py", line 1136, in init_host 2017-03-10 08:55:25.156 14177 ERROR oslo_service.service raise exception.PlacementNotConfigured() 2017-03-10 08:55:25.156 14177 ERROR oslo_service.service PlacementNotConfigured: This compute is not configured to talk to the placement service. Configure the [placement] section of nova.conf and restart the service. 2017-03-10 08:55:25.156 14177 ERROR oslo_service.service2、处理过程
由于openstack ocata的版本发布时间还不太长,通过查资料发现这是一个bug,查看官方安装手册,,没有对应解决方法
在控制节点上:
[root@linux-node1 ~]# yum -y install openstack-nova-placement-api [root@linux-node1 ~]# openstack user create --domain default --password-prompt placement User Password:#输入密码placement Repeat User Password:#输入密码placement [root@linux-node1 ~]# openstack role add --project service --user placement admin [root@linux-node1 ~]# openstack service create --name placement --description "OpenStack Placement" placement +-------------+----------------------------------+ | Field | Value | +-------------+----------------------------------+ | description | OpenStack Placement | | enabled | True | | id | febbc831f12c4f03aa8f4fd59f6b6ffc | | name | placement | | type | placement | +-------------+----------------------------------+ +---------------------+----------------------------------+ | Field | Value | +---------------------+----------------------------------+ | domain_id | default | | enabled | True | | id | 661b3c937fd040bf9fcf59a0e0985596 | | name | placement | | options | {} | | password_expires_at | None | +---------------------+----------------------------------+ [root@linux-node1 ~]# openstack endpoint create --region RegionOne placement admin :8778 +--------------+----------------------------------+ | Field | Value | +--------------+----------------------------------+ | enabled | True | | id | 780d9d238aa24f7a81f197f0d86a0560 | | interface | admin | | region | RegionOne | | region_id | RegionOne | | service_id | febbc831f12c4f03aa8f4fd59f6b6ffc | | service_name | placement | | service_type | placement | | url | :8778 | +--------------+----------------------------------+ [root@linux-node1 ~]# openstack endpoint create --region RegionOne placement internal :8778 +--------------+----------------------------------+ | Field | Value | +--------------+----------------------------------+ | enabled | True | | id | 43cf8f9ac6a94f4e9f4815d4830eda01 | | interface | internal | | region | RegionOne | | region_id | RegionOne | | service_id | febbc831f12c4f03aa8f4fd59f6b6ffc | | service_name | placement | | service_type | placement | | url | :8778 | +--------------+----------------------------------+