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

Posted heruiguo

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了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

 

以上是关于openstack安装-计算节点-neutron服务安装的主要内容,如果未能解决你的问题,请参考以下文章

##6.2 Neutron计算节点--openstack

##6.2 Neutron计算节点-- openstack pike

八:OPENSTACK Queens部署neutron服务到计算节点

openstack-neutron安装与配置

Openstack 实战讲解之-----08-计算节点neutron配置

openstack controller ha测试环境搭建记录——配置neutron(计算节点)