OpenStack安装第二天――RDO quick start


OpenStack安装第二天――RDO quick start


   参照RDO官方安装文档,http://openstack.redhat.com/Quickstart

   安装到第3步:


packstack――allinone


   时报错


wKioL1NUxN7STNeLAAcA3oYWO4E954.jpg


   解决方案:http://eduard.linux.edu/install-openstack-rdo-redhat-6-5-dependecies-issues/


   用到命令


sudo rhn-channel --add --channel=rhel-x86_64-server-optional-6


   报错,需要RHN账户。


   尝试替换yum源为Centos源


   删除RHEL6.4自带的yum,命令如下:  


rpm -aq | grep yum | xargs rpm -e --nodeps


   下载CentOS 6的yum,命令如下:


wget http://mirrors.163.com/centos/6/os/x86_64/Packages/python-iniparse-0.3.1-2.1.el6.noarch.rpm
wget http://mirrors.163.com/centos/6/os/x86_64/Packages/yum-3.2.29-40.el6.centos.noarch.rpm
wget http://mirrors.163.com/centos/6/os/x86_64/Packages/yum-plugin-fastestmirror-1.1.30-14.el6.noarch.rpm
wget http://mirrors.163.com/centos/6/os/x86_64/Packages/yum-metadata-parser-1.1.2-16.el6.x86_64.rpm

   安装yum


rpm -ivh  python-iniparse-0.3.1-2.1.el6.noarch.rpm
rpm -ivh  yum-metadata-parser-1.1.2-16.el6.x86_64.rpm
rpm -ivh  yum-3.2.29-40.el6.centos.noarch.rpm yum-plugin-fastestmirror-1.1.30-14.el6.noarch.rpm


   配置repo文件,新建CentOS-Base.repo文件,内容为


[base]
name=CentOS-6 - Base
repo=os
baseurl=http://ftp.sjtu.edu.cn/centos/6/os/$basearch/
gpgcheck=1
gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-CentOS-6
#released updates
[update]
name=CentOS-6 - Updates
baseurl=http://ftp.sjtu.edu.cn/centos/6/updates/$basearch/
gpgcheck=1
gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-CentOS-6
#packages used/produced in the build but not released
#[addons]
#name=CentOS-6 - Addons
#baseurl=http://ftp.sjtu.edu.cn/centos/6/addons/$basearch
#gpgcheck=1
#gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-CentOS-6
#additional packages that may be useful
[extras]
name=CentOS-6 - Extras
baseurl=http://ftp.sjtu.edu.cn/centos/6/extras/$basearch/
gpgcheck=1
gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-CentOS-6
#additional packages that extend functionality of existing package
[centosplus]
name=CentOS-6 - Plus
baseurl=http://ftp.sjtu.edu.cn/centos/6/centosplus/$basearch/
gpgcheck=1
enabled=1
gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-CentOS-6
#contrib - packages by Centos Users
[contrib]
name=CentOS-6 - Contrib
baseurl=http://ftp.sjtu.edu.cn/centos/6/contrib/$basearch/
gpgcheck=1
enabled=0
gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-CentOS-6



   清除yum缓存


yum clean all
yum list


   yum源替换完成之后更新:


yum -y update
yum -y upgrade


   然后再次安装第3步


packstack――allinone


   安装成功。中间有的地方比较慢,耐心等待。


wKioL1NU19vClhbSAAXwKNIt8wg323.jpg



你可能感兴趣的:(openstack,yum,RDO,RHN)