0.環境:
操作系統:CentOS6.5 amd64
目標系統:OpenStack Havana Release + Open vSwitch + GRE
網絡環境:
10.1.101.0/24:負責外網流量
192.168.200.0/24:負責管理流量
192.168.300.0/24:負責隧道流量
計劃部署3臺服務器:
(1)Controller:Nova、Neutron、Keystone、Cinder、Glance、Nagios
hostname: nick-controller
ip-eth0: 10.1.101.192
ip-eth1: 192.168.200.192
ip-eth2: 192.168.300.192
(2)Network:NeutronAgents
hostname: nick-network
ip-eth0: 10.1.101.191
ip-eth1: 192.168.200.191
ip-eth2: 192.168.300.191
(3)Compute:Nova-compute,Neutron-L2-Agent
hostname: nick-compute-1
ip-eth0: 10.1.101.190
ip-eth1: 192.168.200.190
ip-eth2: 192.168.300.190
1.操作系統配置
(1) /etc/hosts:保證所有結點互相能ping通hostname
(2) resolv.conf:保證DNS服務器正常
(3) SELinux: disabled
(4) sshd config: /etc/ssh/sshd_config: Listen 0.0.0.0
(5) EPEL Repo:
# rpm --import https://www.elrepo.org/RPM-GPG-KEY-elrepo.org
# rpm -Uvh http://www.elrepo.org/elrepo-release-6-5.el6.elrepo.noarch.rpm
# rpm -Uvh http://mirrors.hustunique.com/epel/6/x86_64/epel-release-6-8.noarch.rpm
(6) RDO Repo:
# yum install -y http://rdo.fedorapeople.org/openstack-icehouse/rdo-release-icehouse.rpm
(7) 更新操作系統到最新版本
# yum -y update
# reboot
2. RDO安裝(在控制結點上操作)
(1) yum install -y ntp
(2) 安裝packstack
yum install -y python-netaddr python-setuptools git
git clone git://github.com/stackforge/packstack
cd packstack
python setup.py install_puppet_modules
./bin/packstack --gen-answer-file=my_answer.txt
3.編輯配置文件
# 安裝Nagios監控
CONFIG_NAGIOS_INSTALL=y
# 測試Cinder,會mount一個本地文件作爲卷
CONFIG_CINDER_VOLUMES_CREATE=y
# 安裝Compute節點
CONFIG_NOVA_COMPUTE_HOSTS=192.168.200.190
# 開啓GRE隧道(暫時RDO還不支持直接部署VxLAN)
CONFIG_NEUTRON_OVS_TENANT_NETWORK_TYPE=gre
# 配置隧道ID範圍,映射到租戶
CONFIG_NEUTRON_OVS_TUNNEL_RANGES=1:10000
# 配置隧道通訊網卡,一般建議獨佔
CONFIG_NEUTRON_OVS_TUNNEL_IF=eth2
# 配置網絡節點
CONFIG_NEUTRON_DHCP_HOSTS=192.168.200.191
CONFIG_NEUTRON_L3_HOSTS=192.168.200.191
CONFIG_NEUTRON_LBAAS_HOSTS=192.168.200.191
CONFIG_NEUTRON_METADATA_HOSTS=192.168.200.191
4.自動化部署
packstack --answer-file my_answers.txt
5.後續問題處理
(1) Horizon訪問權限
在控制節點上,編輯/etc/openstack-dashboard/local_settings
ALLOWED_HOSTS = [ '*' ]
註明:
1.在dashboard上設置外部網絡的時候,外網子網不能ip池不能包含宿主機ip