修改/etc/neutron/neutron.conf,要重启啥服务

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了修改/etc/neutron/neutron.conf,要重启啥服务相关的知识,希望对你有一定的参考价值。

参考技术A [root@computer1 ~]# systemctl status neutron-linuxbridge-agent.service -l● 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: exit-code) since Thu 2016-01-21 10:12:17 CST; 5min ago Process: 12639 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=exited, status=1/FAILURE) Main PID: 12639 (code=exited, status=1/FAILURE) Jan 21 10:12:17 computer1 neutron-linuxbridge-agent[12639]: File "/usr/lib/python2.7/site-packages/neutron/plugins/ml2/drivers/linuxbridge/agent/linuxbridge_neutron_agent.py", line 1128, in mainJan 21 10:12:17 computer1 neutron-linuxbridge-agent[12639]: common_config.init(sys.argv[1:])Jan 21 10:12:17 computer1 neutron-linuxbridge-agent[12639]: File "/usr/lib/python2.7/site-packages/neutron/common/config.py", line 196, in initJan 21 10:12:17 computer1 neutron-linuxbridge-agent[12639]: **kwargs)Jan 21 10:12:17 computer1 neutron-linuxbridge-agent[12639]: File "/usr/lib/python2.7/site-packages/oslo_config/cfg.py", line 1890, in __call__Jan 21 10:12:17 computer1 neutron-linuxbridge-agent[12639]: self._namespace._files_permission_denied)Jan 21 10:12:17 computer1 neutron-linuxbridge-agent[12639]: oslo_config.cfg.ConfigFilesPermissionDeniedError: Failed to open some config files: /etc/neutron/plugins/ml2/linuxbridge_agent.iniJan 21 10:12:17 computer1 systemd[1]: neutron-linuxbridge-agent.service: main process exited, code=exited, status=1/FAILUREJan 21 10:12:17 computer1 systemd[1]: Unit neutron-linuxbridge-agent.service entered failed state.Jan 21 10:12:17 computer1 systemd[1]: neutron-linuxbridge-agent.service failed.

openstack安装-计算节点-neutron服务安装

一、安装nettron相关服务

yum install openstack-neutron-linuxbridge ebtables ipset -y

二、快速配置配置

 修改红色部分为计算节点的网卡名以及IP地址

openstack-config --set /etc/neutron/neutron.conf  DEFAULT transport_url  rabbit://openstack:[email protected]
openstack-config --set /etc/neutron/neutron.conf  DEFAULT auth_strategy keystone
openstack-config --set /etc/neutron/neutron.conf  keystone_authtoken  www_authenticate_uri http://192.168.70.10:5000
openstack-config --set /etc/neutron/neutron.conf  keystone_authtoken  auth_url  http://192.168.70.10:5000
openstack-config --set /etc/neutron/neutron.conf  keystone_authtoken  memcached_servers 192.168.70.10:11211
openstack-config --set /etc/neutron/neutron.conf  keystone_authtoken  auth_type  password
openstack-config --set /etc/neutron/neutron.conf  keystone_authtoken  project_domain_name default
openstack-config --set /etc/neutron/neutron.conf  keystone_authtoken  user_domain_name default
openstack-config --set /etc/neutron/neutron.conf  keystone_authtoken  project_name  service
openstack-config --set /etc/neutron/neutron.conf  keystone_authtoken username neutron
openstack-config --set /etc/neutron/neutron.conf  keystone_authtoken password neutron
openstack-config --set /etc/neutron/neutron.conf  oslo_concurrency password neutron
openstack-config --set /etc/neutron/neutron.conf  oslo_concurrency  lock_path /var/lib/neutron/tmp
openstack-config --set /etc/neutron/plugins/ml2/linuxbridge_agent.ini  linux_bridge physical_interface_mappings   provider:enp3s0
openstack-config --set /etc/neutron/plugins/ml2/linuxbridge_agent.ini vxlan  enable_vxlan  true
openstack-config --set /etc/neutron/plugins/ml2/linuxbridge_agent.ini vxlan  local_ip  192.168.70.14
openstack-config --set /etc/neutron/plugins/ml2/linuxbridge_agent.ini vxlan  l2_population  true
openstack-config --set /etc/neutron/plugins/ml2/linuxbridge_agent.ini  securitygroup  enable_security_group  true
openstack-config --set /etc/neutron/plugins/ml2/linuxbridge_agent.ini  securitygroup  firewall_driver  neutron.agent.linux.iptables_firewall.IptablesFirewallDriver
openstack-config --set  /etc/nova/nova.conf  neutron url  http://192.168.70.10:9696
openstack-config --set  /etc/nova/nova.conf  neutron  auth_url http://192.168.70.10:5000
openstack-config --set  /etc/nova/nova.conf  neutron auth_type password
openstack-config --set  /etc/nova/nova.conf  neutron project_domain_name  default
openstack-config --set  /etc/nova/nova.conf  neutron user_domain_name  default
openstack-config --set  /etc/nova/nova.conf  neutron region_name  RegionOne
openstack-config --set  /etc/nova/nova.conf  neutron project_name service
openstack-config --set  /etc/nova/nova.conf  neutron username neutron
openstack-config --set  /etc/nova/nova.conf  neutron password neutron

 

三、重启服务

systemctl restart openstack-nova-compute.service

启动Linux网桥代理并将其配置为在系统引导时启动

systemctl enable neutron-linuxbridge-agent.service
systemctl start neutron-linuxbridge-agent.service

 

以上是关于修改/etc/neutron/neutron.conf,要重启啥服务的主要内容,如果未能解决你的问题,请参考以下文章

Linux中/etc/named.conf配置文件如何设置

请教如何修改Linux的/etc/fstab使U盘自己挂载?

修改/etc/profile或者$HOME/.profile文件后如何立即生效?

如何让/etc/security/user做的修改马上生效

如何使/etc/profile文件修改后立即生效

如何使/etc/profile文件修改后立即生效