关于neutron.service启动不成功

neutron.service启动不成功一般有三种错误可能

前两种是启动时,长时间卡主无反应,第三种为启动失败报错

1.neutron.service配置文件中core_plugin = xxx 的设置错误,错误和没有写都会导致启动时卡主

第一种日志无明显报错


2.neutron.service配置文件中[oslo_messaging_rabbit]下rabbit_password=xxx的密码设置错误,此项错误会导致启动时卡主

第二种报错AMQP5672


3.如果你没有设置网络服务初始化脚本的超链接将导致neutron.service启动失败

[root@controller ~]# systemctl restart neutron-server.service   
Job for neutron-server.service failed because the control process exited with error code. See "systemctl status neutron-server.service" and "journalctl -xe" for details.

设置后启动成功

[root@controller ~]# ln -s /etc/neutron/plugins/ml2/ml2_conf.ini /etc/neutron/plugin.ini
[root@controller ~]# systemctl restart neutron-server.service 

——————————————————————————————————————————————————————————————————

注意:不只是neutron.service写错了会导致失败

如果neutron-linuxbridge-agent.service配置文件中[ml2]配置下tenant_network_types = vxlan写错了也会导致neutron.service启动失败。

有一个神奇的现象就是,上述那个写错了,neutron-linuxbridge-agent.service启动居然是成功,反而是neutron.service的报错.....这就很气

[root@controller ~]# systemctl restart neutron-server.service
Job for neutron-server.service failed because the control process exited with error code. See "systemctl status neutron-server.service" and "journalctl -xe" for details.
[root@controller ~]# systemctl restart neutron-linuxbridge-agent.service
需要特别注意,写错了neutron-linuxbridge-agent.service的配置居然导致neutron.service是启动失败,错了的反而启动正常

—————————————————————————————————————————————————————————

有一种没有报错的情况需要注意[keystone_authtoken]下密码错误,这是会启动成功的,但是在neutron agent-list中会报错

503 Service Unavailable

The server is currently unavailable. Please try again at a later time.

   
Neutron server returns request_ids: ['req-2c1666fe-e70f-45e2-b5fd-98e154050f74']

503的报错大多是keystone认证问题


你可能感兴趣的:(OpenStack错误整理)