操作系统: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) /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
(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
# 安装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
packstack --answer-file my_answers.txt
(1) Horizon访问权限
在控制节点上,编辑/etc/openstack-dashboard/local_settings
ALLOWED_HOSTS = [ '*' ]
注明:
1.在dashboard上设置外部网络的时候,外网子网不能ip池不能包含宿主机ip