基于最新RHEL7系统的Packstack自动部署RDO(OpenStack Icehouse)

 

    本篇文章是通过最新发布的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

[root@www yum.repos.d]#yum -y install openstack-packstack
Loaded plugins: langpacks, product-id, subscription-manager
This system is not registered to Red Hat Subscription Management. You can use subscription-manager to register.
Resolving Dependencies
--> Running transaction check
---> Package openstack-packstack.noarch 0:2014.1.1-0.14.dev1068.el7 will be installed
--> Processing Dependency: openstack-packstack-puppet = 
2014.1.1-0.14.dev1068.el7 for package: 
openstack-packstack-2014.1.1-0.14.dev1068.el7.noarch
--> Processing Dependency: python-netaddr for package: openstack-packstack-2014.1.1-0.14.dev1068.el7.noarch
--> Processing Dependency: openstack-puppet-modules for package: openstack-packstack-2014.1.1-0.14.dev1068.el7.noarch
--> Running transaction check
---> Package openstack-packstack-puppet.noarch 0:2014.1.1-0.14.dev1068.el7 will be installed
---> Package openstack-puppet-modules.noarch 0:2014.1-12.el7 will be installed
--> Processing Dependency: rubygem-json for package: openstack-puppet-modules-2014.1-12.el7.noarch
---> Package python-netaddr.noarch 0:0.7.5-7.el7 will be installed
--> Running transaction check
---> Package rubygem-json.x86_64 0:1.7.7-19.el7 will be installed
--> Processing Dependency: ruby(rubygems) >= 2.0.14 for package: rubygem-json-1.7.7-19.el7.x86_64
--> Processing Dependency: ruby(release) for package: rubygem-json-1.7.7-19.el7.x86_64
--> Processing Dependency: libruby.so.2.0()(64bit) for package: rubygem-json-1.7.7-19.el7.x86_64
--> Running transaction check
---> Package ruby-libs.x86_64 0:2.0.0.353-19.el7 will be installed
---> Package rubygems.noarch 0:2.0.14-19.el7 will be installed
--> Processing Dependency: rubygem(io-console) >= 0.4.2 for package: rubygems-2.0.14-19.el7.noarch
--> Processing Dependency: rubygem(psych) >= 2.0.0 for package: rubygems-2.0.14-19.el7.noarch
--> Processing Dependency: rubygem(rdoc) >= 4.0.0 for package: rubygems-2.0.14-19.el7.noarch
--> Processing Dependency: /usr/bin/ruby for package: rubygems-2.0.14-19.el7.noarch
--> Running transaction check
---> Package ruby.x86_64 0:2.0.0.353-19.el7 will be installed
--> Processing Dependency: rubygem(bigdecimal) >= 1.2.0 for package: ruby-2.0.0.353-19.el7.x86_64
---> Package rubygem-io-console.x86_64 0:0.4.2-19.el7 will be installed
---> Package rubygem-psych.x86_64 0:2.0.0-19.el7 will be installed
--> Processing Dependency: libyaml-0.so.2()(64bit) for package: rubygem-psych-2.0.0-19.el7.x86_64
---> Package rubygem-rdoc.noarch 0:4.0.0-19.el7 will be installed
--> Processing Dependency: ruby(irb) = 2.0.0.353 for package: rubygem-rdoc-4.0.0-19.el7.noarch
--> Running transaction check
---> Package libyaml.x86_64 0:0.1.4-6.el7 will be installed
---> Package ruby-irb.noarch 0:2.0.0.353-19.el7 will be installed
---> Package rubygem-bigdecimal.x86_64 0:1.2.0-19.el7 will be installed
--> Finished Dependency Resolution
Dependencies Resolved
==============================================================================================

 Package                      Arch     Version                     Repository            Size
==============================================================================================
Installing:

 openstack-packstack          noarch   2014.1.1-0.14.dev1068.el7   openstack-icehouse   189 k
Installing for dependencies:

 libyaml                      x86_64   0.1.4-6.el7                 rhel7                 54 k

 openstack-packstack-puppet   noarch   2014.1.1-0.14.dev1068.el7   openstack-icehouse    33 k

 openstack-puppet-modules     noarch   2014.1-12.el7               openstack-icehouse   1.5 M

 python-netaddr               noarch   0.7.5-7.el7                 rhel7                983 k

 ruby                         x86_64   2.0.0.353-19.el7            rhel7                 66 k

 ruby-irb                     noarch   2.0.0.353-19.el7            rhel7                 87 k

 ruby-libs                    x86_64   2.0.0.353-19.el7            rhel7                2.8 M

 rubygem-bigdecimal           x86_64   1.2.0-19.el7                rhel7                 78 k

 rubygem-io-console           x86_64   0.4.2-19.el7                rhel7                 49 k

 rubygem-json                 x86_64   1.7.7-19.el7                rhel7                 74 k

 rubygem-psych                x86_64   2.0.0-19.el7                rhel7                 76 k

 rubygem-rdoc                 noarch   4.0.0-19.el7                rhel7                317 k

 rubygems                     noarch   2.0.14-19.el7               rhel7                211 k
Transaction Summary
==============================================================================================
Install  1 Package (+13 Dependent packages)
Total download size: 6.4 M
Installed size: 23 M
Downloading packages:
warning: 
/var/cache/yum/x86_64/7Server/openstack-icehouse/packages/openstack-packstack-puppet-2014.1.1-0.14.dev1068.el7.noarch.rpm:
 Header V4 RSA/SHA1 Signature, key ID 0e4fbd28: NOKEY
Public key for openstack-packstack-puppet-2014.1.1-0.14.dev1068.el7.noarch.rpm is not installed
(1/3): openstack-packstack-puppet-2014.1.1-0.14.dev1068.el7.noarch.rpm |  33 kB  00:00:01
(2/3): openstack-packstack-2014.1.1-0.14.dev1068.el7.noarch.rpm        | 189 kB  00:00:02
(3/3): openstack-puppet-modules-2014.1-12.el7.noarch.rpm               | 1.5 MB  00:00:11
----------------------------------------------------------------------------------------------
Total                                                         497 kB/s | 6.4 MB  00:00:13
Retrieving key from file:///etc/pki/rpm-gpg/RPM-GPG-KEY-RDO-Icehouse
Importing GPG key 0x0E4FBD28:

 Userid     : "rdo-icehouse-sign <
[email protected]
>"

 Fingerprint: ae9f 63f5 5530 06eb 11a9 0596 e50b e6ab 0e4f bd28

 Package    : rdo-release-icehouse-3.noarch (@/rdo-release)

 From       : /etc/pki/rpm-gpg/RPM-GPG-KEY-RDO-Icehouse
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
  Installing : ruby-libs-2.0.0.353-19.el7.x86_64                                         1/14
  Installing : python-netaddr-0.7.5-7.el7.noarch                                         2/14
  Installing : openstack-packstack-puppet-2014.1.1-0.14.dev1068.el7.noarch               3/14
  Installing : libyaml-0.1.4-6.el7.x86_64                                                4/14
  Installing : rubygem-bigdecimal-1.2.0-19.el7.x86_64                                    5/14
  Installing : rubygem-io-console-0.4.2-19.el7.x86_64                                    6/14
  Installing : rubygem-json-1.7.7-19.el7.x86_64                                          7/14
  Installing : rubygem-rdoc-4.0.0-19.el7.noarch                                          8/14
  Installing : ruby-irb-2.0.0.353-19.el7.noarch                                          9/14
  Installing : ruby-2.0.0.353-19.el7.x86_64                                             10/14
  Installing : rubygems-2.0.14-19.el7.noarch                                            11/14
  Installing : rubygem-psych-2.0.0-19.el7.x86_64                                        12/14
  Installing : openstack-puppet-modules-2014.1-12.el7.noarch                            13/14
  Installing : openstack-packstack-2014.1.1-0.14.dev1068.el7.noarch                     14/14
  Verifying  : libyaml-0.1.4-6.el7.x86_64                                                1/14
  Verifying  : ruby-libs-2.0.0.353-19.el7.x86_64                                         2/14
  Verifying  : rubygem-bigdecimal-1.2.0-19.el7.x86_64                                    3/14
  Verifying  : rubygem-psych-2.0.0-19.el7.x86_64                                         4/14
  Verifying  : rubygem-io-console-0.4.2-19.el7.x86_64                                    5/14
  Verifying  : rubygem-json-1.7.7-19.el7.x86_64                                          6/14
  Verifying  : rubygem-rdoc-4.0.0-19.el7.noarch                                          7/14
  Verifying  : ruby-2.0.0.353-19.el7.x86_64                                              8/14
  Verifying  : openstack-packstack-2014.1.1-0.14.dev1068.el7.noarch                      9/14
  Verifying  : ruby-irb-2.0.0.353-19.el7.noarch                                         10/14
  Verifying  : openstack-packstack-puppet-2014.1.1-0.14.dev1068.el7.noarch              11/14
  Verifying  : openstack-puppet-modules-2014.1-12.el7.noarch                            12/14
  Verifying  : rubygems-2.0.14-19.el7.noarch                                            13/14
  Verifying  : python-netaddr-0.7.5-7.el7.noarch                                        14/14
Installed:
  openstack-packstack.noarch 0:2014.1.1-0.14.dev1068.el7
Dependency Installed:
  libyaml.x86_64 0:0.1.4-6.el7
  openstack-packstack-puppet.noarch 0:2014.1.1-0.14.dev1068.el7
  openstack-puppet-modules.noarch 0:2014.1-12.el7
  python-netaddr.noarch 0:0.7.5-7.el7
  ruby.x86_64 0:2.0.0.353-19.el7
  ruby-irb.noarch 0:2.0.0.353-19.el7
  ruby-libs.x86_64 0:2.0.0.353-19.el7
  rubygem-bigdecimal.x86_64 0:1.2.0-19.el7
  rubygem-io-console.x86_64 0:0.4.2-19.el7
  rubygem-json.x86_64 0:1.7.7-19.el7
  rubygem-psych.x86_64 0:2.0.0-19.el7
  rubygem-rdoc.noarch 0:4.0.0-19.el7
  rubygems.noarch 0:2.0.14-19.el7
Complete!


4.生成自动化部署配置文件

[root@www yum.repos.d]#packstack --gen-answer-file=answer.conf


5.answer.conf 文件细节
过滤空行及注释行内容, 这里就不一一说明每个参数的含义了,基本通过查看配置参数的关键都可以明白其含义, 也可参考我此篇文章 中的localrc 的描述 http://lj119.blog.51cto.com/605062/1427870 

[root@www ~]# cat answer.conf
[general]
CONFIG_SSH_KEY=/root/.ssh/id_rsa.pub
CONFIG_MYSQL_INSTALL=y
CONFIG_GLANCE_INSTALL=y
CONFIG_CINDER_INSTALL=n
CONFIG_NOVA_INSTALL=y
CONFIG_NEUTRON_INSTALL=y
CONFIG_HORIZON_INSTALL=y
CONFIG_SWIFT_INSTALL=n
CONFIG_CEILOMETER_INSTALL=n
CONFIG_HEAT_INSTALL=n
CONFIG_CLIENT_INSTALL=y
CONFIG_NTP_SERVERS=
CONFIG_NAGIOS_INSTALL=y
EXCLUDE_SERVERS=
CONFIG_DEBUG_MODE=n
CONFIG_VMWARE_BACKEND=n
CONFIG_VCENTER_HOST=
CONFIG_VCENTER_USER=
CONFIG_VCENTER_PASSWORD=
CONFIG_VCENTER_CLUSTER_NAME=
CONFIG_MYSQL_HOST=192.168.0.101
CONFIG_MYSQL_USER=root
CONFIG_MYSQL_PW=redhat
CONFIG_AMQP_SERVER=rabbitmq
CONFIG_AMQP_HOST=192.168.0.101
CONFIG_AMQP_ENABLE_SSL=n
CONFIG_AMQP_ENABLE_AUTH=n
CONFIG_AMQP_NSS_CERTDB_PW=redhat
CONFIG_AMQP_SSL_PORT=5671
CONFIG_AMQP_SSL_CERT_FILE=/etc/pki/tls/certs/amqp_selfcert.pem
CONFIG_AMQP_SSL_KEY_FILE=/etc/pki/tls/private/amqp_selfkey.pem
CONFIG_AMQP_SSL_SELF_SIGNED=y
CONFIG_AMQP_AUTH_USER=amqp_user
CONFIG_AMQP_AUTH_PASSWORD=redhat
CONFIG_KEYSTONE_HOST=192.168.0.101
CONFIG_KEYSTONE_DB_PW=redhat
CONFIG_KEYSTONE_ADMIN_TOKEN=redhat
CONFIG_KEYSTONE_ADMIN_PW=redhat
CONFIG_KEYSTONE_DEMO_PW=redhat
CONFIG_KEYSTONE_TOKEN_FORMAT=PKI
CONFIG_GLANCE_HOST=192.168.0.101
CONFIG_GLANCE_DB_PW=redhat
CONFIG_GLANCE_KS_PW=redhat
#CONFIG_CINDER_HOST=192.168.0.101
#CONFIG_CINDER_DB_PW=57649f6be2914adf
#CONFIG_CINDER_KS_PW=471cc98ab0944d5b
#CONFIG_CINDER_BACKEND=lvm
#CONFIG_CINDER_VOLUMES_CREATE=y
#CONFIG_CINDER_VOLUMES_SIZE=20G
CONFIG_CINDER_GLUSTER_MOUNTS=
CONFIG_CINDER_NFS_MOUNTS=
CONFIG_NOVA_API_HOST=192.168.0.101
CONFIG_NOVA_CERT_HOST=192.168.0.101
CONFIG_NOVA_VNCPROXY_HOST=192.168.0.101
CONFIG_NOVA_COMPUTE_HOSTS=192.168.0.101
CONFIG_NOVA_CONDUCTOR_HOST=192.168.0.101
CONFIG_NOVA_DB_PW=redhat
CONFIG_NOVA_KS_PW=redhat
CONFIG_NOVA_SCHED_HOST=192.168.0.101
CONFIG_NOVA_SCHED_CPU_ALLOC_RATIO=16.0
CONFIG_NOVA_SCHED_RAM_ALLOC_RATIO=1.5
CONFIG_NOVA_COMPUTE_PRIVIF=eth1
CONFIG_NOVA_NETWORK_HOSTS=192.168.0.101
CONFIG_NOVA_NETWORK_MANAGER=nova.network.manager.FlatDHCPManager
CONFIG_NOVA_NETWORK_PUBIF=eth0
CONFIG_NOVA_NETWORK_PRIVIF=eth1
CONFIG_NOVA_NETWORK_FIXEDRANGE=192.168.32.0/22
CONFIG_NOVA_NETWORK_FLOATRANGE=10.3.4.0/22
CONFIG_NOVA_NETWORK_DEFAULTFLOATINGPOOL=nova
CONFIG_NOVA_NETWORK_AUTOASSIGNFLOATINGIP=n
CONFIG_NOVA_NETWORK_VLAN_START=100
CONFIG_NOVA_NETWORK_NUMBER=1
CONFIG_NOVA_NETWORK_SIZE=255
CONFIG_NEUTRON_SERVER_HOST=192.168.0.101
CONFIG_NEUTRON_KS_PW=redhat
CONFIG_NEUTRON_DB_PW=redhat
CONFIG_NEUTRON_L3_HOSTS=192.168.0.101
CONFIG_NEUTRON_L3_EXT_BRIDGE=br-ex
CONFIG_NEUTRON_DHCP_HOSTS=192.168.0.101
CONFIG_NEUTRON_LBAAS_HOSTS=
CONFIG_NEUTRON_L2_PLUGIN=openvswitch
CONFIG_NEUTRON_METADATA_HOSTS=192.168.0.101
CONFIG_NEUTRON_METADATA_PW=redhat
CONFIG_NEUTRON_ML2_TYPE_DRIVERS=local
CONFIG_NEUTRON_ML2_TENANT_NETWORK_TYPES=local
CONFIG_NEUTRON_ML2_MECHANISM_DRIVERS=openvswitch
CONFIG_NEUTRON_ML2_FLAT_NETWORKS=*
CONFIG_NEUTRON_ML2_VLAN_RANGES=
CONFIG_NEUTRON_ML2_TUNNEL_ID_RANGES=
CONFIG_NEUTRON_ML2_VXLAN_GROUP=
CONFIG_NEUTRON_ML2_VNI_RANGES=
CONFIG_NEUTRON_L2_AGENT=openvswitch
CONFIG_NEUTRON_LB_TENANT_NETWORK_TYPE=local
CONFIG_NEUTRON_LB_VLAN_RANGES=
CONFIG_NEUTRON_LB_INTERFACE_MAPPINGS=
CONFIG_NEUTRON_OVS_TENANT_NETWORK_TYPE=local
CONFIG_NEUTRON_OVS_VLAN_RANGES=
CONFIG_NEUTRON_OVS_BRIDGE_MAPPINGS=
CONFIG_NEUTRON_OVS_BRIDGE_IFACES=
CONFIG_NEUTRON_OVS_TUNNEL_RANGES=
CONFIG_NEUTRON_OVS_TUNNEL_IF=
CONFIG_NEUTRON_OVS_VXLAN_UDP_PORT=4789
CONFIG_OSCLIENT_HOST=192.168.0.101
CONFIG_HORIZON_HOST=192.168.0.101
CONFIG_HORIZON_SSL=n
CONFIG_SSL_CERT=
CONFIG_SSL_KEY=
CONFIG_SWIFT_PROXY_HOSTS=192.168.0.101
CONFIG_SWIFT_KS_PW=b6e1cf34dc514df8
CONFIG_SWIFT_STORAGE_HOSTS=192.168.0.101
CONFIG_SWIFT_STORAGE_ZONES=1
CONFIG_SWIFT_STORAGE_REPLICAS=1
CONFIG_SWIFT_STORAGE_FSTYPE=ext4
CONFIG_SWIFT_HASH=bd57d2e0aeed47ef
CONFIG_SWIFT_STORAGE_SIZE=2G
CONFIG_PROVISION_DEMO=y
CONFIG_PROVISION_TEMPEST=n
CONFIG_PROVISION_DEMO_FLOATRANGE=172.24.4.224/28
CONFIG_PROVISION_TEMPEST_REPO_URI=https://github.com/openstack/tempest.git
CONFIG_PROVISION_TEMPEST_REPO_REVISION=master
CONFIG_PROVISION_ALL_IN_ONE_OVS_BRIDGE=n
CONFIG_HEAT_HOST=192.168.0.101
CONFIG_HEAT_DB_PW=redhat
CONFIG_HEAT_AUTH_ENC_KEY=redhat
CONFIG_HEAT_KS_PW=redhat
CONFIG_HEAT_CLOUDWATCH_INSTALL=n
CONFIG_HEAT_CFN_INSTALL=n
CONFIG_HEAT_CLOUDWATCH_HOST=192.168.0.101
CONFIG_HEAT_CFN_HOST=192.168.0.101
#CONFIG_CEILOMETER_HOST=192.168.0.101
#CONFIG_CEILOMETER_SECRET=0c5bce3e2f0540da
#CONFIG_CEILOMETER_KS_PW=cd40ba8d5cb74c92
CONFIG_MONGODB_HOST=192.168.0.101
CONFIG_NAGIOS_HOST=192.168.0.101
CONFIG_NAGIOS_PW=redhat
CONFIG_USE_EPEL=y
CONFIG_REPO=
CONFIG_RH_USER=
CONFIG_RH_PW=
CONFIG_RH_BETA_REPO=n
CONFIG_SATELLITE_URL=
CONFIG_SATELLITE_USER=
CONFIG_SATELLITE_PW=
CONFIG_SATELLITE_AKEY=
CONFIG_SATELLITE_CACERT=
CONFIG_SATELLITE_PROFILE=
CONFIG_SATELLITE_FLAGS=
CONFIG_SATELLITE_PROXY=
CONFIG_SATELLITE_PROXY_USER=
CONFIG_SATELLITE_PROXY_PW=


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登录
wKiom1OlmvLiEtDKAAGCzHcVMew690.jpg

wKioL1OlmufDEkiYAANheSu6w8M536.jpg


wKiom1Olm0ChXk9rAAKkv6LPjMk030.jpg


8.Nagios 管理界面

wKioL1OlmyfiGeBEAAUBoiXKUbA040.jpg

9.部署中遇到的问题与解决方法:
1)关闭selinux 设置
2)参考以下截图与解决方法
3)获取依赖包地址:http://rpmfind.net/linux/rpm2htm ... h+...&system=&arch=
error03.png

重置了mysql 数据库密码:

[root@www ~]# mysqladmin -u root password

error04.png
解决方法:

[root@www ~]# /usr/sbin/rabbitmq-server restart
[root@www ~]# chkconfig rabbitmq-server on
[root@www ~]# packstack --answer-file=./answer.conf

error-05.jpg
解决方法:

[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



你可能感兴趣的:(openstack,packstack,RDO,icehouse,rhel7)