標籤:
聲明:最近在進行openstack的kilo版本的安裝,發現現有的網路教程非常少,而且多數教程並不能安裝成功,故寫此教程。openstack的安裝較為複雜,本教程並不能保證在不同環境下也能將其安裝成功。個人安裝教程,也難免出錯。同時,安裝是在虛擬機器環境下,真實安裝環境需要變更。
轉載請聲明出處:
張某人ER
原文連結:http://blog.csdn.net/xinxing__8185/article/details/51353646
第五部分 neutron的安裝 (3)
在計算節點上的安裝
進行配置
vim /etc/sysctl.conf
net.ipv4.conf.all.rp_filter=0net.ipv4.conf.default.rp_filter=0net.bridge.bridge-nf-call-iptables=1net.bridge.bridge-nf-call-ip6tables=1
執行
sysctl -p
安裝包
yum install openstack-neutron openstack-neutron-ml2 openstack-neutron-openvswitch
進行相關設定檔的修改
vim /etc/neutron/neutron.conf
rpc_backend=rabbit 去掉#號rabbit_host = controllerrabbit_userid=openstackrabbit_password =openstack auth_strategy = keystone 去掉#號在標籤[keystone_authtoken]修改以下內容:auth_uri = http://controller:5000auth_url = http://controller:35357auth_plugin = passwordproject_domain_id = defaultuser_domain_id = defaultproject_name = serviceusername = neutronpassword = neutron #替換NEUTRON_PASScore_plugin = ml2service_plugins = routerallow_overlapping_ips = True[default]verbose = True
vim /etc/neutron/plugins/ml2/ml2_conf.ini
type_drivers = flat,vlan,gre,vxlantenant_network_types = gremechanism_drivers = openvswitchtunnel_id_ranges=1:1000 enable_security_group = Trueenable_ipset = Truefirewall_driver = neutron.agent.linux.iptables_firewall.OVSHybridIptablesFirewallDriver添加以下內容(如果沒有) [ovs]local_ip = INSTANCE_TUNNELS_INTERFACE_IP_ADDRESS [agent]tunnel_types = gre
啟動
systemctl enable openvswitch.servicesystemctl start openvswitch.service
進行相關配置
vim //etc/nova/nova.conf
network_api_class = nova.network.neutronv2.api.APIsecurity_group_api = neutronlinuxnet_interface_driver = nova.network.linux_net.LinuxOVSInterfaceDriverfirewall_driver = nova.virt.firewall.NoopFirewallDriver 在[neutorn]標籤下url = http://controller:9696auth_strategy = keystoneadmin_auth_url = http://controller:35357/v2.0admin_tenant_name = serviceadmin_username = neutronadmin_password = neutron #替換NEUTRON_PASS auth_strategy=keystone
ln -s /etc/neutron/plugins/ml2/ml2_conf.ini /etc/neutron/plugin.ini
cp /usr/lib/systemd/system/neutron-openvswitch-agent.service /usr/lib/systemd/system/neutron-openvswitch-agent.service.orig
sed -i 's,plugins/openvswitch/ovs_neutron_plugin.ini,plugin.ini,g' /usr/lib/systemd/system/neutron-openvswitch-agent.service
重新啟動
systemctl restart openstack-nova-compute.servicesystemctl enable neutron-openvswitch-agent.servicesystemctl start neutron-openvswitch-agent.service
----------------------------------------------------------------------------------------------------------------------
在控制節點上(測試)
source admin-openrc.shneutorn agent-list
如果正常,就可以建立初始網路了。
此教程完。
註:以後的部落格中會對安裝過程中遇到的問題進行相關總結。
Oracle VM + centos7.1+openstack kilo 多結點安裝教程---neutron的安裝(3)