OpenStack—解决neutron agent-list没有compute的[linuxbridge]组件
linux-dash
A beautiful web dashboard for Linux
项目地址:https://gitcode.com/gh_mirrors/li/linux-dash
免费下载资源
·
问题描述
查看不到compute节点上的linuxbridge组件状态
然后到compute节点查看neutron-linuxbridge-agent服务的状态
问题排查
状态是正常的 如果你看几次状态 会发现它一直在不断的重启
下是报错信息
systemctl status neutron-linuxbridge-agent.service
● neutron-linuxbridge-agent.service - OpenStack Neutron Linux Bridge Agent
Loaded: loaded (/usr/lib/systemd/system/neutron-linuxbridge-agent.service; enabled; vendor preset: disabled)
Active: failed (Result: start-limit) since Sat 2021-05-29 03:13:49 EDT; 2s ago
Process: 69218 ExecStart=/usr/bin/neutron-linuxbridge-agent --config-file /usr/share/neutron/neutron-dist.conf --config-file /etc/neutron/neutron.conf --config-file /etc/neutron/plugins/ml2/linuxbridge_agent.ini --config-dir /etc/neutron/conf.d/common --config-dir /etc/neutron/conf.d/neutron-linuxbridge-agent --log-file /var/log/neutron/linuxbridge-agent.log (code=killed, signal=TERM)
Process: 69212 ExecStartPre=/usr/bin/neutron-enable-bridge-firewall.sh (code=exited, status=0/SUCCESS)
Main PID: 69218 (code=killed, signal=TERM)
May 29 03:13:50 compute systemd[1]: neutron-linuxbridge-agent.service failed.
May 29 03:13:50 compute systemd[1]: start request repeated too quickly for neutron-linuxbridge-a...vice
May 29 03:13:50 compute systemd[1]: Failed to start OpenStack Neutron Linux Bridge Agent.
May 29 03:13:50 compute systemd[1]: neutron-linuxbridge-agent.service failed.
May 29 03:13:50 compute systemd[1]: start request repeated too quickly for neutron-linuxbridge-a...vice
May 29 03:13:50 compute systemd[1]: Failed to start OpenStack Neutron Linux Bridge Agent.
May 29 03:13:50 compute systemd[1]: neutron-linuxbridge-agent.service failed.
May 29 03:13:50 compute systemd[1]: start request repeated too quickly for neutron-linuxbridge-a...vice
May 29 03:13:50 compute systemd[1]: Failed to start OpenStack Neutron Linux Bridge Agent.
May 29 03:13:50 compute systemd[1]: neutron-linuxbridge-agent.service failed.
journalctl -xe
-- Unit neutron-linuxbridge-agent.service has finished starting up.
--
-- The start-up result is done.
May 29 03:19:49 compute polkitd[23360]: Unregistered Authentication Agent for unix-process:70088:2292458 (system bus name :1.218, object path /org/freedeskto
May 29 03:19:51 compute neutron-linuxbridge-agent[70103]: Traceback (most recent call last):
May 29 03:19:51 compute neutron-linuxbridge-agent[70103]: File "/usr/bin/neutron-linuxbridge-agent", line 10, in <module>
May 29 03:19:51 compute neutron-linuxbridge-agent[70103]: sys.exit(main())
May 29 03:19:51 compute neutron-linuxbridge-agent[70103]: File "/usr/lib/python2.7/site-packages/neutron/cmd/eventlet/plugins/linuxbridge_neutron_agent.py",
May 29 03:19:51 compute neutron-linuxbridge-agent[70103]: agent_main.main()
May 29 03:19:51 compute neutron-linuxbridge-agent[70103]: File "/usr/lib/python2.7/site-packages/neutron/plugins/ml2/drivers/linuxbridge/agent/linuxbridge_ne
May 29 03:19:51 compute neutron-linuxbridge-agent[70103]: common_config.init(sys.argv[1:])
May 29 03:19:51 compute neutron-linuxbridge-agent[70103]: File "/usr/lib/python2.7/site-packages/neutron/common/config.py", line 80, in init
May 29 03:19:51 compute neutron-linuxbridge-agent[70103]: **kwargs)
May 29 03:19:51 compute neutron-linuxbridge-agent[70103]: File "/usr/lib/python2.7/site-packages/oslo_config/cfg.py", line 2580, in __call__
May 29 03:19:51 compute neutron-linuxbridge-agent[70103]: self._namespace._files_permission_denied)
May 29 03:19:51 compute neutron-linuxbridge-agent[70103]: oslo_config.cfg.ConfigFilesPermissionDeniedError: Failed to open some config files: /etc/neutron/ne
May 29 03:19:51 compute systemd[1]: neutron-linuxbridge-agent.service: main process exited, code=exited, status=1/FAILURE
May 29 03:19:51 compute systemd[1]: Unit neutron-linuxbridge-agent.service entered failed state.
May 29 03:19:51 compute systemd[1]: neutron-linuxbridge-agent.service failed.
May 29 03:19:51 compute systemd[1]: neutron-linuxbridge-agent.service holdoff time over, scheduling restart.
May 29 03:19:51 compute systemd[1]: Stopped OpenStack Neutron Linux Bridge Agent.
请把目光移到这一句
oslo_config.cfg.ConfigFilesPermissionDeniedError: Failed to open some config files: /etc/neutron/neutron.conf
#因为权限问题 无法打开一些文件
在网上找的解决方案有如下两种
一、yum install -y openstack-selinux 确保安装了openstack-selinux
二、setenforce 0 禁用selinux
以上两种已经确定在我这里没有问题
问题解决
正当一头雾水的时候,又仔细品了品报错信息,权限问题导致的打不开文件
[root@compute ~]# cd /etc/neutron/
[root@compute neutron]# ll
total 80
-rw-r-----. 1 root root 625 May 29 03:17 neutron.conf
#fuck 怪不得neutron无权限访问 这里竟然是root
[root@compute neutron]# chown root.neutron neutron.conf
[root@compute ~]# systemctl restart neutron-linuxbridge-agent
小的错误和失误 往往是最容易被忽略和遗忘的!切勿粗心大意。
GitHub 加速计划 / li / linux-dash
10.39 K
1.2 K
下载
A beautiful web dashboard for Linux
最近提交(Master分支:2 个月前 )
186a802e
added ecosystem file for PM2 4 年前
5def40a3
Add host customization support for the NodeJS version 4 年前
更多推荐
已为社区贡献2条内容
所有评论(0)