RDO安装Openstack ICEHOUSE

来源:互联网 发布:js实现购物车 编辑:程序博客网 时间:2024/04/29 03:32

安装准备

基本配置就不详细描述了 ,删除repo 下的默认 yum源
添加 第三方的镜像源(本文用的是USTC的6.6源)

[root@openstack ~] rm /etc.yum.repo.d/* -f
[root@openstack ~] cat /etc/yum.repo.d/ustc.repo

[ustc]name = ustcbaseurl = http://centos.ustc.edu.cn/centos/6.6/os/x86_64/gpgcheck=0enable=1[update]name = updatebaseurl = http://centos.ustc.edu.cn/centos/6.6/updates/x86_64/gpgcheck=0enable=1[extras]name = extrasbaseurl = http://centos.ustc.edu.cn/centos/6.6/extras/x86_64/gpgcheck=0enable=1

下面开始安装

[root@openstack ~] rpm --import /etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-6[root@openstack ~] yum install -y http://rdo.fedorapeople.org/openstack-icehouse/rdo-release-icehouse.rpm[root@openstack ~] yum install openstack-packstack -y[root@openstack ~] yum upgrade[root@openstack ~] init 6

Allinone安装执行

[root@openstack ~] packstack --allinone           

如果是需求多节点 RDO安装
创建应答文件
packstack –gen-answer-file=answer.txt
主要是编辑 answer.txt的应答选项
本文是allinone模式


安装排查

由于RDO对网络要求比较高,同时安装过程比较耗时间,出现错误是在所难免的
在一次安装失败后,重新packstack –allinone出现报错

Error: mysqladmin -u root password ‘ff700e4e03434f85’ returned 1 instead of one of [0]

解决:

[root@openstack ~] mysqladmin -u root  password 'ff700e4e03434f85' 

出现报错后packstack都最好直接指定–answer-file来重装

Error: /Stage[main]/Neutron::Keystone::Auth/Keystone_user[neutron]: Could not evaluate: Execution of ‘/usr/bin/keystone –os-auth-url http://127.0.0.1:35357/v2.0/ token-get’ returned 1: The request you have made requires authentication. (HTTP 401)

解决: 进入mysql.keystone ,删除user,token,endpoint表


Error: Could not find a suitable provider for cron

解决:

[root@openstack ~] yum install cronie -y

Error: Could not start Service[httpd]: Execution of ‘/sbin/service httpd start’ returned 1: Starting httpd: [FAILED]
You will find full trace in log /var/tmp/packstack/20141120-143336-8x7Rtg/manifests/122.49.31.104_horizon.pp.log

解决:

[root@openstack ~] fuser -k -n tcp 80  && service httpd start
0 0
原创粉丝点击