当前位置:Gxlcms > 数据库问题 > Oracle VM + centos7.1+openstack kilo 多结点安装教程---neutron的安装(3)

Oracle VM + centos7.1+openstack kilo 多结点安装教程---neutron的安装(3)

时间:2021-07-01 10:21:17 帮助过:2人阅读

最近在进行openstackkilo版本的安装,发现现有的网络教程非常少,而且多数教程并不能安装成功,故写此教程。openstack的安装较为复杂,本教程并不能保证在不同环境下也能将其安装成功。个人安装教程,也难免出错。同时,安装是在虚拟机环境下,真实安装环境需要进行更改。

 

转载请声明出处:

              作者:张某人ER     

              原文链接:http://blog.csdn.net/xinxing__8185/article/details/51353646

 

 第五部分 neutron的安装 (3)


在计算节点上的安装

 进行配置

  1. vim /etc/sysctl.conf

  1. net.ipv4.conf.all.rp_filter=0
  2. net.ipv4.conf.default.rp_filter=0
  3. net.bridge.bridge-nf-call-iptables=1
  4. net.bridge.bridge-nf-call-ip6tables=1

 执行  

  1. sysctl -p

安装包

  1. yum install openstack-neutron openstack-neutron-ml2 openstack-neutron-openvswitch
  

进行相关配置文件的修改

  1. vim /etc/neutron/neutron.conf

  1. rpc_backend=rabbit 去掉#号
  2. rabbit_host = controller
  3. rabbit_userid=openstack
  4. rabbit_password =openstack
  5. auth_strategy = keystone 去掉#号
  6. 在标签[keystone_authtoken]
  7. 修改以下内容:
  8. auth_uri = http://controller:5000
  9. auth_url = http://controller:35357
  10. auth_plugin = password
  11. project_domain_id = default
  12. user_domain_id = default
  13. project_name = service
  14. username = neutron
  15. password = neutron #替换NEUTRON_PASS
  16. core_plugin = ml2
  17. service_plugins = router
  18. allow_overlapping_ips = True
  19. [default]
  20. verbose = True

  1. vim /etc/neutron/plugins/ml2/ml2_conf.ini

  1. type_drivers = flat,vlan,gre,vxlan
  2. tenant_network_types = gre
  3. mechanism_drivers = openvswitch
  4. tunnel_id_ranges=1:1000
  5. enable_security_group = True
  6. enable_ipset = True
  7. firewall_driver = neutron.agent.linux.iptables_firewall.OVSHybridIptablesFirewallDriver
  8. 添加以下内容(如果没有)
  9. [ovs]
  10. local_ip = INSTANCE_TUNNELS_INTERFACE_IP_ADDRESS
  11. [agent]
  12. tunnel_types = gre

启动

  1. systemctl enable openvswitch.service
  2. systemctl start openvswitch.service

进行相关配置

  1. vim //etc/nova/nova.conf

  1. network_api_class = nova.network.neutronv2.api.API
  2. security_group_api = neutron
  3. linuxnet_interface_driver = nova.network.linux_net.LinuxOVSInterfaceDriver
  4. firewall_driver = nova.virt.firewall.NoopFirewallDriver
  5. 在[neutorn]标签下
  6. url = http://controller:9696
  7. auth_strategy = keystone
  8. admin_auth_url = http://controller:35357/v2.0
  9. admin_tenant_name = service
  10. admin_username = neutron
  11. admin_password = neutron #替换NEUTRON_PASS
  12. auth_strategy=keystone


  1. ln -s /etc/neutron/plugins/ml2/ml2_conf.ini /etc/neutron/plugin.ini
  1. cp /usr/lib/systemd/system/neutron-openvswitch-agent.service /usr/lib/systemd/system/neutron-openvswitch-agent.service.orig
  1. sed -i 's,plugins/openvswitch/ovs_neutron_plugin.ini,plugin.ini,g' /usr/lib/systemd/system/neutron-openvswitch-agent.service

 重新启动

  1. systemctl restart openstack-nova-compute.service
  2. systemctl enable neutron-openvswitch-agent.service
  3. systemctl start neutron-openvswitch-agent.service

----------------------------------------------------------------------------------------------------------------------

在控制节点上(测试)

  1. source admin-openrc.sh
  2. neutorn agent-list

如果正常,就可以创建初始网络了。


此教程完。


注:以后的博客中会对安装过程中遇到的问题进行相关总结。

Oracle VM + centos7.1+openstack kilo 多结点安装教程---neutron的安装(3)

标签:

人气教程排行