q-agt.service服务启动失败,失败日志如下:
[root@node01 ~]# systemctl status devstack@q-agt [email protected] - Devstack [email protected] Loaded: loaded (/etc/systemd/system/[email protected]; enabled; vendor preset: disabled) Active: failed (Result: exit-code) since Thu 2018-07-26 05:35:13 EDT; 3min 19s ago Process: 4140 ExecStart=/usr/bin/neutron-openvswitch-agent --config-file /etc/neutron/neutron.conf --config-file /etc/neutron/plugins/ml2/ml2_conf.ini (code=exited, status=1/FAILURE) Main PID: 4140 (code=exited, status=1/FAILURE) Jul 26 05:35:13 node01 neutron-openvswitch-agent[4140]: ERROR neutron File "/usr/lib/python2.7/site-packages/eventlet/greent... main Jul 26 05:35:13 node01 neutron-openvswitch-agent[4140]: ERROR neutron result = function(*args, **kwargs) Jul 26 05:35:13 node01 neutron-openvswitch-agent[4140]: ERROR neutron File "/usr/lib/python2.7/site-packages/ryu/lib/hub.py"...aunch Jul 26 05:35:13 node01 neutron-openvswitch-agent[4140]: ERROR neutron raise e Jul 26 05:35:13 node01 neutron-openvswitch-agent[4140]: ERROR neutron Exception: Could not retrieve schema from tcp:127.0.0.1:...fused Jul 26 05:35:13 node01 neutron-openvswitch-agent[4140]: ERROR neutron Jul 26 05:35:13 node01 neutron-openvswitch-agent[4140]: INFO oslo_rootwrap.client [-] Stopping rootwrap daemon process with pid=4156 Jul 26 05:35:13 node01 systemd[1]: [email protected]: main process exited, code=exited, status=1/FAILURE Jul 26 05:35:13 node01 systemd[1]: Unit [email protected] entered failed state. Jul 26 05:35:13 node01 systemd[1]: [email protected] failed. Hint: Some lines were ellipsized, use -l to show in full. /var/log/openvswitch/ovsdb-server.log 2018-07-26T09:58:21.171Z|00081|socket_util|ERR|6640:127.0.0.1: bind: Permission denied 2018-07-26T09:58:21.171Z|00082|socket_util|ERR|6640:127.0.0.1: bind: Permission denied 2018-07-26T09:58:23.210Z|00083|socket_util|ERR|6640:127.0.0.1: bind: Permission denied 2018-07-26T09:58:25.714Z|00084|socket_util|ERR|6640:127.0.0.1: bind: Permission denied 2018-07-26T09:58:27.944Z|00085|socket_util|ERR|6640:127.0.0.1: bind: Permission denied 2018-07-26T09:58:27.946Z|00086|socket_util|ERR|6640:127.0.0.1: bind: Permission denied 2018-07-26T09:58:27.947Z|00087|socket_util|ERR|6640:127.0.0.1: bind: Permission denied 2018-07-26T09:58:27.948Z|00088|socket_util|ERR|6640:127.0.0.1: bind: Permission denied 2018-07-26T09:58:27.948Z|00089|socket_util|ERR|6640:127.0.0.1: bind: Permission denied 2018-07-26T09:58:28.214Z|00090|socket_util|ERR|6640:127.0.0.1: bind: Permission denied 2018-07-26T09:58:29.243Z|00091|socket_util|ERR|6640:127.0.0.1: bind: Permission denied 2018-07-26T09:58:29.245Z|00092|socket_util|ERR|6640:127.0.0.1: bind: Permission denied 2018-07-26T09:58:29.246Z|00093|socket_util|ERR|6640:127.0.0.1: bind: Permission denied 2018-07-26T09:58:29.246Z|00094|socket_util|ERR|6640:127.0.0.1: bind: Permission denied 2018-07-26T09:58:29.247Z|00095|socket_util|ERR|6640:127.0.0.1: bind: Permission denied 2018-07-26T09:58:30.715Z|00096|socket_util|ERR|6640:127.0.0.1: bind: Permission denied 2018-07-26T09:58:33.217Z|00097|socket_util|ERR|6640:127.0.0.1: bind: Permission denied 2018-07-26T09:58:35.719Z|00098|socket_util|ERR|6640:127.0.0.1: bind: Permission denied journalctl -f --unit [email protected] Jul 26 05:35:13 node01 neutron-openvswitch-agent[4140]: Removing descriptor: 12 Jul 26 05:35:13 node01 neutron-openvswitch-agent[4140]: CRITICAL neutron [-] Unhandled error: Exception: Could not retrieve schema from tcp:127.0.0.1:6640: Connection refused Jul 26 05:35:13 node01 neutron-openvswitch-agent[4140]: ERROR neutron Traceback (most recent call last): Jul 26 05:35:13 node01 neutron-openvswitch-agent[4140]: ERROR neutron File "/usr/bin/neutron-openvswitch-agent", line 10, in <module> Jul 26 05:35:13 node01 neutron-openvswitch-agent[4140]: ERROR neutron sys.exit(main()) Jul 26 05:35:13 node01 neutron-openvswitch-agent[4140]: ERROR neutron File "/opt/stack/neutron/neutron/cmd/eventlet/plugins/ovs_neutron_agent.py", line 20, in main Jul 26 05:35:13 node01 neutron-openvswitch-agent[4140]: ERROR neutron agent_main.main() Jul 26 05:35:13 node01 neutron-openvswitch-agent[4140]: ERROR neutron File "/opt/stack/neutron/neutron/plugins/ml2/drivers/openvswitch/agent/main.py", line 47, in main Jul 26 05:35:13 node01 neutron-openvswitch-agent[4140]: ERROR neutron mod.main() Jul 26 05:35:13 node01 neutron-openvswitch-agent[4140]: ERROR neutron File "/opt/stack/neutron/neutron/plugins/ml2/drivers/openvswitch/agent/openflow/native/main.py", line 35, in main Jul 26 05:35:13 node01 neutron-openvswitch-agent[4140]: ERROR neutron 'neutron.plugins.ml2.drivers.openvswitch.agent.' Jul 26 05:35:13 node01 neutron-openvswitch-agent[4140]: ERROR neutron File "/usr/lib/python2.7/site-packages/ryu/base/app_manager.py", line 375, in run_apps Jul 26 05:35:13 node01 neutron-openvswitch-agent[4140]: ERROR neutron hub.joinall(services) Jul 26 05:35:13 node01 neutron-openvswitch-agent[4140]: ERROR neutron File "/usr/lib/python2.7/site-packages/ryu/lib/hub.py", line 102, in joinall Jul 26 05:35:13 node01 neutron-openvswitch-agent[4140]: ERROR neutron t.wait() Jul 26 05:35:13 node01 neutron-openvswitch-agent[4140]: ERROR neutron File "/usr/lib/python2.7/site-packages/eventlet/greenthread.py", line 175, in wait Jul 26 05:35:13 node01 neutron-openvswitch-agent[4140]: ERROR neutron return self._exit_event.wait() Jul 26 05:35:13 node01 neutron-openvswitch-agent[4140]: ERROR neutron File "/usr/lib/python2.7/site-packages/eventlet/event.py", line 125, in wait Jul 26 05:35:13 node01 neutron-openvswitch-agent[4140]: ERROR neutron current.throw(*self._exc) Jul 26 05:35:13 node01 neutron-openvswitch-agent[4140]: ERROR neutron File "/usr/lib/python2.7/site-packages/eventlet/greenthread.py", line 214, in main Jul 26 05:35:13 node01 neutron-openvswitch-agent[4140]: ERROR neutron result = function(*args, **kwargs) Jul 26 05:35:13 node01 neutron-openvswitch-agent[4140]: ERROR neutron File "/usr/lib/python2.7/site-packages/ryu/lib/hub.py", line 64, in _launch Jul 26 05:35:13 node01 neutron-openvswitch-agent[4140]: ERROR neutron raise e Jul 26 05:35:13 node01 neutron-openvswitch-agent[4140]: ERROR neutron Exception: Could not retrieve schema from tcp:127.0.0.1:6640: Connection refused Jul 26 05:35:13 node01 neutron-openvswitch-agent[4140]: ERROR neutron Jul 26 05:35:13 node01 neutron-openvswitch-agent[4140]: INFO oslo_rootwrap.client [-] Stopping rootwrap daemon process with pid=4156 Jul 26 05:35:13 node01 systemd[1]: [email protected]: main process exited, code=exited, status=1/FAILURE Jul 26 05:35:13 node01 systemd[1]: Unit [email protected] entered failed state. Jul 26 05:35:13 node01 systemd[1]: [email protected] faied
解决办法:
1.编辑vim /etc/selinux/config配置文件
2.修改 SELINUX=enforcing为SELINUX=disabled
3.关闭selinux防火墙 setenforce 0
4.重启 q-agt:systemctl restart [email protected]