Open stack 安装 (packstack方式)

Submitted by Lizhe on Sun, 07/09/2017 - 15:15

如果是学习的话还是推荐手动一步一步按照官方文档来

毕竟你需要知道都装了什么,配置了什么, 过于自动化的东西不利于学习和debug

要下载的东西太多了, 所以先换成阿里云的源

我本地是fedora23

wget -O /etc/yum.repos.d/epel.repo http://mirrors.aliyun.com/repo/fedora.repo 

如果你使用其他版本的linux, 直接查看http://mirrors.aliyun.com/repo 找对应的

然后重新构建一下本地缓存

yum clean all

yum makecache

安装openstack-packstack

yum install -y openstack-packstack

使用packstack安装openstack组件

packstack --allinone

我这里有个插曲是出现了下面的错误

[root@localhost ~]#  packstack --allinone
Welcome to the Packstack setup utility

The installation log file is available at: /var/tmp/packstack/20170709-151909-vI_tnI/openstack-setup.log
Packstack changed given value  to required value /root/.ssh/id_rsa.pub
Parameter CONFIG_CONTROLLER_HOST failed validation: Given host does not listen on port 22: 192.168.1.11

ERROR : Failed handling answer file: Given host does not listen on port 22: 192.168.1.11
Please check log file /var/tmp/packstack/20170709-151909-vI_tnI/openstack-setup.log for more information
 

22端口没有响应, 22明显是sshd服务的端口,检查一下果然连不上

135

启动sshd以后一切正常

136

接下来的等待时间很长, 你可以起来活动一下,只要没报错,挂机就好了

137