CentOS RDO方式快速安装OpenStack

一、了解RDO

RDO是什么?

  RDO是红帽Red Hat Enterprise Linux OpenStack Platform的社区版,类似RHEL和Fedora,RHEV和oVirt这样的关系。 说白了,就是红帽支持一个开源项目,让你帮他踩坑,得到成熟稳定的版本,红帽搞一个企业版赚钱。

  这个就是红帽的商业模式,其实是多方受益的,用户有一个开源免费的软件工具使用,当然前期可能“坑”比较多,但是和红帽一起磨合,共同提高稳定性,比较典型的就是CentOS。红帽发行商业版,赚去服务费,对可靠性、稳定性、服务要更高要求的用户,就可以购买红帽的服务。

RDO准备解决什么问题?

  OpenStack的安装是一个难题,组件众多,非常麻烦。最早支持OS的是Ubuntu,所以在ubuntu上有方便快捷的OpenStack安装脚本。

  OpenStack越来越重要,越来越被大家认可,所以红帽也推出了OpenStack的快捷安装部署项目,这个项目就是RDO。

  RDO项目的原理是整合上游的OpenStack版本,然后根据红帽的系统做裁剪和定制,帮助用户进行选择,对用户来说,就是简单的几步,完成了OpenStack的部署。

  如果手工部署OpenStack,可能需要好几天,使用RDO,就是几个命令,再加一两个小时的等待。当然,牺牲了灵活性,但是对最终用户来说,要的是简单部署,稳定使用。

RDO生产环境能使用吗?

  还没有亲身体验,使用过的朋友可以分享一下。

二、部署

了解了RDO是什么后,下面来四步快速安装OpenStack:

1、[root@localhost Desktop]# yum update -y 
2、[root@localhost Desktop]# yum install -y https://rdoproject.org/repos/rdo-release.rpm 
3、[root@localhost Desktop]# yum install -y openstack-packstack 
4、[root@localhost Desktop]# packstack --allinone 

*注意:

  • 通过这个源安装很慢,在执行第4步的安装过程中如果出现yum下载失败,可尝试重新执行packstack –allinone,如果实在不行,请留意所报错误。
  • 安装完成后,请留意安装组件结果集存储路径。比如:
    You will find full trace in log /var/tmp/packstack/20161226-205335-OMzDf6/manifests/192.168.213.134_controller.pp.log
    Please check log file /var/tmp/packstack/20161226-205335-OMzDf6/openstack-setup.log for more information
    Additional information:
     * A new answerfile was created in: /root/packstack-answers-20161226-205337.txt   ##这已包含OpenStack管理后台的账号和密码
     * Time synchronization installation was skipped. Please note that unsynchronized time on server instances might be problem for some OpenStack components.
     * Warning: NetworkManager is active on 192.168.213.134. OpenStack networking currently does not work on systems that have the Network Manager service enabled.
     * File /root/keystonerc_admin has been created on OpenStack client host 192.168.213.134. To use the command line tools you need to source the file.
     * To access the OpenStack Dashboard browse to http://192.168.213.134/dashboard .
    Please, find your login credentials stored in the keystonerc_admin in your home directory.
     * To use Nagios, browse to http://192.168.213.134/nagios username: nagiosadmin, password: 14d1c97dd2a14c15

    打开该文件可以查看到登录账户和密码:

# User name for the Identity service 'admin' user.  Defaults to
# 'admin'.
CONFIG_KEYSTONE_ADMIN_USERNAME=admin   ##admin就是登录账户名

# Password to use for the Identity service 'admin' user.
CONFIG_KEYSTONE_ADMIN_PW=3630e25f5e5a4c89   ##3630e25f5e5a4c89就是登录密码
  • 安装成功后,就可以通过浏览器访问http://<安装完成显示的ip地址(你的局域网ip)>/dashboard访问OpenStack管理界面了。
http://192.168.213.134  ##本人安装后的访问地址
  • 如果是学习OpenStack,建议通过虚拟机进行安装,虚拟机内存不低于4G(低于4G可能会部署失败),虚拟机网卡可以只配置一个,使用桥接模式和宿主机连接。

 

posted @ 2016-12-26 22:07  Hopkings  阅读(6123)  评论(0编辑  收藏  举报