Neutron采用Openvswitch通用配置【ocata】
来源:互联网 发布:java jdbc 编辑:程序博客网 时间:2024/06/06 17:14
作者:【吴业亮】云计算开发工程师
博客:http://blog.csdn.net/wylfengyujiancheng
一、Controller配置
1、安装软件
# yum --enablerepo=centos-openstack-ocata,epel -y install openstack-neutron openstack-neutron-ml2
2、修改配置文件/etc/neutron/neutron.conf
[DEFAULT]core_plugin = ml2service_plugins = routerauth_strategy = keystonestate_path = /var/lib/neutrondhcp_agent_notification = Trueallow_overlapping_ips = Truenotify_nova_on_port_status_changes = Truenotify_nova_on_port_data_changes = Truetransport_url = rabbit://openstack:password@172.16.100.10[keystone_authtoken]auth_uri = http://172.16.100.10:5000auth_url = http://172.16.100.10:35357memcached_servers = 172.16.100.10:11211auth_type = passwordproject_domain_name = defaultuser_domain_name = defaultproject_name = serviceusername = neutronpassword = servicepassword[database]connection = mysql+pymysql://neutron:password@172.16.100.10/neutron[nova]auth_url = http://172.16.100.10:35357auth_type = passwordproject_domain_name = defaultuser_domain_name = defaultregion_name = RegionOneproject_name = serviceusername = novapassword = servicepassword[oslo_concurrency]lock_path = $state_path/tmp
3、修改权限
# chmod 640 /etc/neutron/neutron.conf # chgrp neutron /etc/neutron/neutron.conf
4、修改配置文件/etc/neutron/plugins/ml2/ml2_conf.ini
[ml2]type_drivers = flat,vlan,gre,vxlantenant_network_types =mechanism_drivers = openvswitch,l2populationextension_drivers = port_security#注释以下几行enable_security_group = Truefirewall_driver = neutron.agent.linux.iptables_firewall.OVSHybridIptablesFirewallDriverenable_ipset = True
5、修改/etc/nova/nova.conf
[DEFAULT]use_neutron = Truelinuxnet_interface_driver = nova.network.linux_net.LinuxOVSInterfaceDriverfirewall_driver = nova.virt.firewall.NoopFirewallDriver[neutron]url = http://172.16.100.10:9696auth_url = http://172.16.100.10:35357auth_type = passwordproject_domain_name = defaultuser_domain_name = defaultregion_name = RegionOneproject_name = serviceusername = neutronpassword = servicepassword
6、创建链接
# ln -s /etc/neutron/plugins/ml2/ml2_conf.ini /etc/neutron/plugin.ini
7、同步数据库
# su -s /bin/bash neutron -c "neutron-db-manage --config-file /etc/neutron/neutron.conf --config-file /etc/neutron/plugin.ini upgrade head"
8、重启服务
# systemctl start neutron-server # systemctl enable neutron-server # systemctl restart openstack-nova-api
二、网络节点配置
1、安装软件
# yum --enablerepo=centos-openstack-ocata,epel -y install openstack-neutron openstack-neutron-ml2 openstack-neutron-openvswitch
2、修改配置文件/etc/neutron/neutron.conf
[DEFAULT]core_plugin = ml2service_plugins = routerauth_strategy = keystonestate_path = /var/lib/neutronallow_overlapping_ips = Truetransport_url = rabbit://openstack:password@172.16.100.10[keystone_authtoken]auth_uri = http://172.16.100.10:5000auth_url = http://172.16.100.10:35357memcached_servers = 172.16.100.10:11211auth_type = passwordproject_domain_name = defaultuser_domain_name = defaultproject_name = serviceusername = neutronpassword = servicepassword[oslo_concurrency]lock_path = $state_path/lock
2、修改权限
# chmod 640 /etc/neutron/neutron.conf # chgrp neutron /etc/neutron/neutron.conf
3、修改配置文件/etc/neutron/l3_agent.ini
# line 17: addinterface_driver = neutron.agent.linux.interface.OVSInterfaceDriver# line 100: add ( it's OK with no value (set later if need) )external_network_bridge =
4、修改配置文件/etc/neutron/dhcp_agent.ini
# line 17: addinterface_driver = neutron.agent.linux.interface.OVSInterfaceDriver# line 32: uncommentdhcp_driver = neutron.agent.linux.dhcp.Dnsmasq# line 41: uncomment and changeenable_isolated_metadata = True5、修改配置文件/etc/neutron/metadata_agent.ini# line 22: uncomment and specify Nova API servernova_metadata_ip = 172.16.100.10# line 34: uncomment and specify any secret key you likemetadata_proxy_shared_secret = metadata_secret
6、修改配置文件/etc/neutron/plugins/ml2/ml2_conf.ini
[ml2]type_drivers = flat,vlan,gre,vxlantenant_network_types =mechanism_drivers = openvswitch,l2populationextension_drivers = port_security# line 247: uncomment and addenable_security_group = Truefirewall_driver = neutron.agent.linux.iptables_firewall.OVSHybridIptablesFirewallDriver# end line: uncommentenable_ipset = True
7、创建链接
# ln -s /etc/neutron/plugins/ml2/ml2_conf.ini /etc/neutron/plugin.ini
8、重启服务
# systemctl start openvswitch # systemctl enable openvswitch
9、创建网桥
# ovs-vsctl add-br br-int
10、重启服务
# for service in dhcp-agent l3-agent metadata-agent openvswitch-agent; dosystemctl start neutron-$servicesystemctl enable neutron-$servicedone
三、计算节点配置
1、安装软件
# yum --enablerepo=centos-openstack-ocata,epel -y install openstack-neutron openstack-neutron-ml2 openstack-neutron-openvswitch
2、修改配置文件/etc/neutron/neutron.conf
[DEFAULT]core_plugin = ml2service_plugins = routerauth_strategy = keystonestate_path = /var/lib/neutronallow_overlapping_ips = Truetransport_url = rabbit://openstack:password@172.16.100.10[keystone_authtoken]auth_uri = http://172.16.100.10:5000auth_url = http://172.16.100.10:35357memcached_servers = 172.16.100.10:11211auth_type = passwordproject_domain_name = defaultuser_domain_name = defaultproject_name = serviceusername = neutronpassword = servicepassword[oslo_concurrency]lock_path = $state_path/lock
3、修改权限
# chmod 640 /etc/neutron/neutron.conf # chgrp neutron /etc/neutron/neutron.conf
4、修改/etc/neutron/plugins/ml2/ml2_conf.ini
[ml2]type_drivers = flat,vlan,gre,vxlantenant_network_types =mechanism_drivers = openvswitch,l2populationextension_drivers = port_security# line 247: uncomment and addenable_security_group = Truefirewall_driver = neutron.agent.linux.iptables_firewall.OVSHybridIptablesFirewallDriver# end line: uncommentenable_ipset = True
5、修改/etc/nova/nova.conf
[DEFAULT]use_neutron = Truelinuxnet_interface_driver = nova.network.linux_net.LinuxOVSInterfaceDriverfirewall_driver = nova.virt.firewall.NoopFirewallDrivervif_plugging_is_fatal = Truevif_plugging_timeout = 300[neutron]url = http://172.16.100.10:9696auth_url = http://172.16.100.10:35357auth_type = passwordproject_domain_name = defaultuser_domain_name = defaultregion_name = RegionOneproject_name = serviceusername = neutronpassword = servicepasswordservice_metadata_proxy = Truemetadata_proxy_shared_secret = metadata_secret
6、创建软连接
# ln -s /etc/neutron/plugins/ml2/ml2_conf.ini /etc/neutron/plugin.ini
7、启动服务
# systemctl start openvswitch # systemctl enable openvswitch
8、创建网桥
# ovs-vsctl add-br br-int
9、重启服务并设置开机启动
# systemctl restart openstack-nova-compute # systemctl start neutron-openvswitch-agent # systemctl enable neutron-openvswitch-agent
0 0
- Neutron采用Openvswitch通用配置【ocata】
- neutron openvswitch agent
- Neutron印象4:neutron-openvswitch-agent
- neutron-openvswitch-agent crash error!
- Neutron总结-openvswitch+vlan网络
- Neutron总结-openvswitch+vxlan网络
- Neutron OpenvSwitch agent工作原理
- Neutron总结-openvswitch+vlan网络
- Neutron使用openvswitch网络通信的基本原理
- Neutron Architecture & Installation — Openvswitch
- neutron 诊断dhcp和openvswitch问题步骤
- OpenStack neutron-openvswitch-agent 启动分析
- OpenvSwitch Port Mirror in OpenStack Neutron
- openstack网络节点中neutron-openvswitch错误
- OpenStack Ocata 安装(五)安装网络(Neutron)服务
- openvswitch常用配置命令
- OpenVSwitch 配置QOS
- [GRO]Directional network performance issues with Neutron + OpenvSwitch
- 后缀自动机学习笔记
- 【TensorFlow问题】AttributeError:'module' object has no attribute 'mul'
- TCP、UDP、IP 协议分析
- VS 运行网站报:HTTP Error 500.22
- Array.prototype.filter()
- Neutron采用Openvswitch通用配置【ocata】
- 转发一篇写得不错的关于iptables的文章
- galang 学习之grpc+ protobuf(一)
- HashMap和HashSet的区别
- zoj 3953 三区间重合(贪心)
- Tomcat 浏览器 http
- Centos 7 常用命令
- URAL1998-The old Padawan
- 使用IPtables 实现数据转发