CentOS 6.4 Openstack Havana 多节点安装(OVS+GRE)swfit+cinder LVM

controller eth0:10.50.9.200/24 eth1:192.168.1.200/24 控制节点,网络节点,存储节点,计算节点 
compute-1   eth0:10.50.9.201/24 eth1:192.168.1.200/24 计算节点 
虚拟机使用的Floating IP:10.50.9.224-10.50.9.244


所有结点都要设置网卡,源,update
Eth0


# cat /etc/sysconfig/network-scripts/ifcfg-eth0
DEVICE=eth0
ONBOOT=yes
TYPE=Ethernet
BOOTPROTO=static
IPADDR=10.50.9.200
NETMASK=255.255.255.0


Eth1


# cat /etc/sysconfig/network-scripts/ifcfg-eth1
DEVICE=eth1
ONBOOT=yes
TYPE=Ethernet
BOOTPROTO=static
IPADDR=192.168.1.200
NETMASK=255.255.255.0


设置gateway 10.50.9.254
vi /etc/sysconfig/network

GETEWAY=10.50.9.254


设置nameserve 10.50.9.254
vi /etc/resolv.conf


设置源
yum install -y wget
cd /etc/yum.repos.d/
wget http://mirrors.163.com/.help/CentOS6-Base-163.repo

yum list


(我有两个LV,sda3 for cinder,sda2 for swift)
这主要是为了给cinder-volumes单独一个分区,提高性能。

umount /dev/sda3
pvcreate /dev/sda3
vgcreate cinder-volumes /dev/sda3

修改/etc/fstab 去掉cinder-volumes的开机挂载,不然会导致你无法重启

sed -i '/cinder-volumes/s/^/#/' /etc/fstab



for compute-1 host only:

yum -y update

init 6

所有结点设置好后,下面是controller要做的事,其他结点是什么都不用做了,但要保持开机状态。(切记)
其他结点只要ip没错,然后在下面运行时会提示输入各结点的root的密码,其原理是通过ssh来进行远程操作,

LVM设置(可选)

yum install -y http://rdo.fedorapeople.org/openstack/openstack-havana/rdo-release-havana.rpm

yum install -y openstack-packstack

yum -y update


#########################更新,所以需要重启机器.


安装Packstack


packstack --gen-answer-file=multi-node-H-gre-yan.txt


修改配置文件

CONFIG_SWIFT_INSTALL=y

CONFIG_HEAT_INSTALL=y

CONFIG_NTP_SERVERS=0.cn.pool.ntp.org,1.asia.pool.ntp.org

CONFIG_NAGIOS_INSTALL=y

CONFIG_MYSQL_PW=r

CONFIG_KEYSTONE_ADMIN_PW=r

CONFIG_CINDER_VOLUMES_CREATE=n

CONFIG_CINDER_VOLUMES_SIZE=90G

CONFIG_CINDER_GLUSTER_MOUNTS=10.50.9.200:/cinder-volumes,10.50.9.201:/cinder-volumes

CONFIG_NOVA_COMPUTE_HOSTS=10.50.9.200,10.50.9.201
CONFIG_NEUTRON_OVS_TENANT_NETWORK_TYPE=gre
CONFIG_NEUTRON_OVS_TUNNEL_RANGES=1:1000

CONFIG_NEUTRON_OVS_TUNNEL_IF=eth1

CONFIG_SWIFT_STORAGE_HOSTS=10.50.9.200/sda2,10.50.9.201/sda2

CONFIG_SWIFT_STORAGE_ZONES=2

CONFIG_SWIFT_STORAGE_REPLICAS=2


CONFIG_NAGIOS_PW=admin



packstack --answer-file=multi-node-H-gre-yan.txt


按提示输入其他结点的密码


ubuntu cloud image:http://cloud-images.ubuntu.com/precise/current/precise-server-cloudimg-amd64-disk1.img

你可能感兴趣的:(CentOS 6.4 Openstack Havana 多节点安装(OVS+GRE)swfit+cinder LVM)