#+SETUPFILE: ~/Dropbox/Doc/Org_Templates/level-1.org
前面 说过, 用 Redhat的 packstack 工具部署 openstack 非常方便, 半年过去了, OpenStack 已经进入 J 版本的开发了, 并且 Icehouse 也已经很成熟了, 新的项目 和模块不断的被大家所接收, 这个系列试图描述在 RDO 上完整的部署一个可用的 openstack.
我的基本环境如下:
- 基本系统: CentOS 7.0
- packstack 版本: rdo-release-icehouse-4
- OpenStack 版本: 2014.1.2(Icehouse)
各个节点的信息如下:
Hostname | IPAddress | Roles |
---|---|---|
rdo-control | 192.168.3.31(mgt nic) | controller node |
rdo-network | 192.168.3.32(mgt nic) 10.0.0.5(tun nic) eth2(external nic) | network node |
rdo-node1 | 192.168.3.33(mgt nic) 10.0.0.6(tun nic) | computer node |
安装基本系统
分别在三台机器上安装 CentOS 7.0 系统, 配置好最快的源, 配置主机和网络信息
# cat /etc/hosts
127.0.0.1 localhost localhost.localdomain localhost4 localhost4.localdomain4
::1 localhost localhost.localdomain localhost6 localhost6.localdomain6
192.168.3.36 rdo-control rdo-control.test.com
192.168.3.37 rdo-network rdo-network.test.com
192.168.3.38 rdo-node1 rdo-node1.test.com
分别修改各个节点的主机名为相应的值:
# emacsclient /etc/hostname
网络设置
禁用 NetworkManager
# systemctl stop NetworkManager.service
# systemctl disable NetworkManager.service
# systemctl enable network.service
# systemctl start network.service
设置网络地址
controller node
# cat /etc/sysconfig/network-scripts/ifcfg-eth0
DEVICE=eth0
HWADDR=00:15:66:00:00:17
IPADDR=192.168.3.31
NETMASK=255.255.252.0
ONBOOT=yes
GATEWAY=192.168.0.1
network node
# cat /etc/sysconfig/network-scripts/ifcfg-eth0
DEVICE=eth0
HWADDR=00:15:66:00:00:18
IPADDR=192.168.3.32
NETMASK=255.255.252.0
ONBOOT=yes
GATEWAY=192.168.0.1
# cat /etc/sysconfig/network-scripts/ifcfg-eth1
DEVICE=eth1
HWADDR=00:15:65:00:00:19
IPADDR=10.0.0.5
NETMASK=255.255.255.0
ONBOOT=yes
compute node
# cat /etc/sysconfig/network-scripts/ifcfg-eth0
DEVICE=eth0
HWADDR=00:15:66:00:00:1A
IPADDR=192.168.3.33
NETMASK=255.255.252.0
ONBOOT=yes
GATEWAY=192.168.0.1
# cat /etc/sysconfig/network-scripts/ifcfg-eth1
DEVICE=eth1
HWADDR=00:15:65:00:00:1B
IPADDR=10.0.0.6
NETMASK=255.255.255.0
ONBOOT=yes
其它使用设置
在 controller 节点上把密钥复制到其它节点上, 方面后续的操作
# ssh-keygen
# ssh-copyid rdo-network
# ssh-copyid rdo-node1