问题导读
1、你是如何安装制作本地YUM及安装最新RHEL7-Epel的?
2、怎样设置RDO存储库和应答文件?
3、部署中遇到问题如何解决?
本篇文章是通过最新发布的Red Hat Enterpise Linux 7 系统部署OpenStack,集成到RHEL系统的OpenStack 简称为RDO。此篇是通过制作应答文件answer.conf自动化部署OpenStack Icehouse 版本。 由于采用RHEL7系统在部署中或多或少碰到不少报错的问题,这里只列出我的几张截图,在部署中还是需要根据实际情况来决定,多看下报错及日志文件;例如:解决包的依赖,服务不能没有启动起来,数据库密码设置未成功等;希望本篇可以给部署RDO的同学带来一定的帮助。关于RHEL7安装,同学可以参见早期的最新RHEL7安装体验:http://lj119.blog.51cto.com/605062/1384229 好了,详情见正文吧!
1.制作本地YUM及安装最新RHEL7-Epel
[root@www yum.repos.d]# mount -o loop RHEL-7.0-20140305.0-Server-x86_64-dvd1.iso /mnt/
[root@www yum.repos.d]# cat rhel7.repo
[rhel7]
name=rhel7
baseurl=file:///mnt
enable=1
gpgcheck=0
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-release
skip_if_unavailable = 1
keepcache = 0
[root@www yum.repos.d]# wget http://ftp.sjtu.edu.cn/fedora/ep ... se-7-0.2.noarch.rpm
[root@www yum.repos.d]# rpm -ivh epel-release-7-0.2.noarch.rpm
[root@www yum.repos.d]# yum clean all
[root@www yum.repos.d]# yum makecache 复制代码
2.设置RDO存储库
[root@www yum.repos.d]#yum install -y
http://rdo.fedorapeople.org/rdo-release.rpm
[root@www yum.repos.d]# cat rdo-release.repo
[openstack-icehouse]
name=OpenStack Icehouse Repository
baseurl=http://repos.fedorapeople.org/repos/openstack/openstack-icehouse/epel-7/
enabled=1
skip_if_unavailable=0
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-RDO-Icehouse
priority=98 复制代码
3.安装packstack
复制代码
4.生成自动化部署配置文件
[root@www yum.repos.d]#packstack --gen-answer-file=answer.conf 复制代码
5.answer.conf 文件细节
过滤空行及注释行内容, 这里就不一一说明每个参数的含义了,基本通过查看配置参数的关键都可以明白其含义。
复制代码
6.Openstack 自动化安装
[root@www ~]# packstack --answer-file=./answer.conf
Welcome to Installer setup utility
Installing:
Clean Up [ DONE ]
Setting up ssh keys [ DONE ]
Discovering hosts' details [ DONE ]
Adding pre install manifest entries [ DONE ]
Adding MySQL manifest entries [ DONE ]
Adding AMQP manifest entries [ DONE ]
Adding Keystone manifest entries [ DONE ]
Adding Glance Keystone manifest entries [ DONE ]
Adding Glance manifest entries [ DONE ]
Adding Nova API manifest entries [ DONE ]
Adding Nova Keystone manifest entries [ DONE ]
Adding Nova Cert manifest entries [ DONE ]
Adding Nova Conductor manifest entries [ DONE ]
Creating ssh keys for Nova migration [ DONE ]
Gathering ssh host keys for Nova migration [ DONE ]
Adding Nova Compute manifest entries [ DONE ]
Adding Nova Scheduler manifest entries [ DONE ]
Adding Nova VNC Proxy manifest entries [ DONE ]
Adding Nova Common manifest entries [ DONE ]
Adding Openstack Network-related Nova manifest entries[ DONE ]
Adding Neutron API manifest entries [ DONE ]
Adding Neutron Keystone manifest entries [ DONE ]
Adding Neutron L3 manifest entries [ DONE ]
Adding Neutron L2 Agent manifest entries [ DONE ]
Adding Neutron DHCP Agent manifest entries [ DONE ]
Adding Neutron LBaaS Agent manifest entries [ DONE ]
Adding Neutron Metadata Agent manifest entries [ DONE ]
Adding OpenStack Client manifest entries [ DONE ]
Adding Horizon manifest entries [ DONE ]
Adding Provisioning manifest entries [ DONE ]
Adding Nagios server manifest entries [ DONE ]
Adding Nagios host manifest entries [ DONE ]
Adding post install manifest entries [ DONE ]
Preparing servers [ DONE ]
Installing Dependencies [ DONE ]
Copying Puppet modules and manifests [ DONE ]
Applying 192.168.0.101_prescript.pp
192.168.0.101_prescript.pp: [ DONE ]
Applying 192.168.0.101_mysql.pp
Applying 192.168.0.101_amqp.pp
192.168.0.101_mysql.pp: [ DONE ]
192.168.0.101_amqp.pp: [ DONE ]
Applying 192.168.0.101_keystone.pp
Applying 192.168.0.101_glance.pp
192.168.0.101_keystone.pp: [ DONE ]
192.168.0.101_glance.pp: [ DONE ]
Applying 192.168.0.101_api_nova.pp
192.168.0.101_api_nova.pp: [ DONE ]
Applying 192.168.0.101_nova.pp
192.168.0.101_nova.pp: [ DONE ]
Applying 192.168.0.101_neutron.pp
192.168.0.101_neutron.pp: [ DONE ]
Applying 192.168.0.101_osclient.pp
Applying 192.168.0.101_horizon.pp
Applying 192.168.0.101_provision.pp
Applying 192.168.0.101_nagios.pp
Applying 192.168.0.101_nagios_nrpe.pp
192.168.0.101_osclient.pp: [ DONE ]
192.168.0.101_horizon.pp: [ DONE ]
192.168.0.101_provision.pp: [ DONE ]
192.168.0.101_nagios_nrpe.pp: [ DONE ]
192.168.0.101_nagios.pp: [ DONE ]
Applying 192.168.0.101_postscript.pp
192.168.0.101_postscript.pp: [ DONE ]
Applying Puppet manifests [ DONE ]
Finalizing [ DONE ]
**** Installation completed successfully ******
Additional information:
* Time synchronization installation was skipped. Please note that
unsynchronized time on server instances might be problem for some
OpenStack components.
* File /root/keystonerc_admin has been created on OpenStack client host
192.168.0.101. To use the command line tools you need to source the
file.
* To access the OpenStack Dashboard browse to
http://192.168.0.101/dashboard
.
Please, find your login credentials stored in the keystonerc_admin in your home directory.
* To use Nagios, browse to
http://192.168.0.101/nagios
username : nagiosadmin, password : redhat
* The installation log file is available at: /var/tmp/packstack/20140621-123917-jx4O_i/openstack-setup.log
* The generated manifests are available at: /var/tmp/packstack/20140621-123917-jx4O_i/manifests 复制代码
7. Dashboard登录
8.Nagios 管理界面
9.部署中遇到的问题与解决方法:
1)关闭selinux 设置
2)参考以下截图与解决方法
3)获取依赖包地址:http://rpmfind.net/linux/rpm2htm ... h+...&system=&arch=
重置了mysql 数据库密码:
[root@www ~]# mysqladmin -u root password 复制代码
解决方法:
[root@www ~]# /usr/sbin/rabbitmq-server restart
[root@www ~]# chkconfig rabbitmq-server on
[root@www ~]# packstack --answer-file=./answer.conf 复制代码
解决方法:
[root@www ~]#wget ftp://rpmfind.net/linux/fedora/l ... 3-1.fc21.noarch.rpm
[root@www ~]#wget ftp://rpmfind.net/linux/fedora/l ... 6-3.fc21.noarch.rpm
[root@www ~]#wget ftp://rpmfind.net/linux/fedora/l ... 8-1.fc21.x86_64.rpm
[root@www ~]#wget ftp://rpmfind.net/linux/fedora/l ... 1-2.fc21.x86_64.rpm
[root@www ~]#rpm -ivh python-libguestfs-1.27.18-1.fc21.x86_64.rpm --nodeps
[root@www
~]#rpm -ivh python-jinja2-2.7.3-1.fc21.noarch.rpm python-pygments-1.6-3.fc21.noarch.rpm python-pygments-1.6-3.fc21.noarch.rpm 复制代码
本文转载自:http://lj119.blog.51cto.com/605062/1429404