分享

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

问题导读
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
  1. [root@www yum.repos.d]# mount -o loop RHEL-7.0-20140305.0-Server-x86_64-dvd1.iso /mnt/
  2. [root@www yum.repos.d]# cat rhel7.repo
  3. [rhel7]
  4. name=rhel7
  5. baseurl=file:///mnt
  6. enable=1
  7. gpgcheck=0
  8. gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-release
  9. skip_if_unavailable = 1
  10. keepcache = 0
  11. [root@www yum.repos.d]# wget http://ftp.sjtu.edu.cn/fedora/ep ... se-7-0.2.noarch.rpm
  12. [root@www yum.repos.d]# rpm -ivh epel-release-7-0.2.noarch.rpm
  13. [root@www yum.repos.d]# yum clean all
  14. [root@www yum.repos.d]# yum makecache
复制代码


2.设置RDO存储库
  1. [root@www yum.repos.d]#yum install -y
  2. http://rdo.fedorapeople.org/rdo-release.rpm
  3. [root@www yum.repos.d]# cat rdo-release.repo
  4. [openstack-icehouse]
  5. name=OpenStack Icehouse Repository
  6. baseurl=http://repos.fedorapeople.org/repos/openstack/openstack-icehouse/epel-7/
  7. enabled=1
  8. skip_if_unavailable=0
  9. gpgcheck=1
  10. gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-RDO-Icehouse
  11. priority=98
复制代码



3.安装packstack
  1. [root@www yum.repos.d]#yum -y install openstack-packstack
  2. Loaded plugins: langpacks, product-id, subscription-manager
  3. This system is not registered to Red Hat Subscription Management. You can use subscription-manager to register.
  4. Resolving Dependencies
  5. --> Running transaction check
  6. ---> Package openstack-packstack.noarch 0:2014.1.1-0.14.dev1068.el7 will be installed
  7. --> Processing Dependency: openstack-packstack-puppet =
  8. 2014.1.1-0.14.dev1068.el7 for package:
  9. openstack-packstack-2014.1.1-0.14.dev1068.el7.noarch
  10. --> Processing Dependency: python-netaddr for package: openstack-packstack-2014.1.1-0.14.dev1068.el7.noarch
  11. --> Processing Dependency: openstack-puppet-modules for package: openstack-packstack-2014.1.1-0.14.dev1068.el7.noarch
  12. --> Running transaction check
  13. ---> Package openstack-packstack-puppet.noarch 0:2014.1.1-0.14.dev1068.el7 will be installed
  14. ---> Package openstack-puppet-modules.noarch 0:2014.1-12.el7 will be installed
  15. --> Processing Dependency: rubygem-json for package: openstack-puppet-modules-2014.1-12.el7.noarch
  16. ---> Package python-netaddr.noarch 0:0.7.5-7.el7 will be installed
  17. --> Running transaction check
  18. ---> Package rubygem-json.x86_64 0:1.7.7-19.el7 will be installed
  19. --> Processing Dependency: ruby(rubygems) >= 2.0.14 for package: rubygem-json-1.7.7-19.el7.x86_64
  20. --> Processing Dependency: ruby(release) for package: rubygem-json-1.7.7-19.el7.x86_64
  21. --> Processing Dependency: libruby.so.2.0()(64bit) for package: rubygem-json-1.7.7-19.el7.x86_64
  22. --> Running transaction check
  23. ---> Package ruby-libs.x86_64 0:2.0.0.353-19.el7 will be installed
  24. ---> Package rubygems.noarch 0:2.0.14-19.el7 will be installed
  25. --> Processing Dependency: rubygem(io-console) >= 0.4.2 for package: rubygems-2.0.14-19.el7.noarch
  26. --> Processing Dependency: rubygem(psych) >= 2.0.0 for package: rubygems-2.0.14-19.el7.noarch
  27. --> Processing Dependency: rubygem(rdoc) >= 4.0.0 for package: rubygems-2.0.14-19.el7.noarch
  28. --> Processing Dependency: /usr/bin/ruby for package: rubygems-2.0.14-19.el7.noarch
  29. --> Running transaction check
  30. ---> Package ruby.x86_64 0:2.0.0.353-19.el7 will be installed
  31. --> Processing Dependency: rubygem(bigdecimal) >= 1.2.0 for package: ruby-2.0.0.353-19.el7.x86_64
  32. ---> Package rubygem-io-console.x86_64 0:0.4.2-19.el7 will be installed
  33. ---> Package rubygem-psych.x86_64 0:2.0.0-19.el7 will be installed
  34. --> Processing Dependency: libyaml-0.so.2()(64bit) for package: rubygem-psych-2.0.0-19.el7.x86_64
  35. ---> Package rubygem-rdoc.noarch 0:4.0.0-19.el7 will be installed
  36. --> Processing Dependency: ruby(irb) = 2.0.0.353 for package: rubygem-rdoc-4.0.0-19.el7.noarch
  37. --> Running transaction check
  38. ---> Package libyaml.x86_64 0:0.1.4-6.el7 will be installed
  39. ---> Package ruby-irb.noarch 0:2.0.0.353-19.el7 will be installed
  40. ---> Package rubygem-bigdecimal.x86_64 0:1.2.0-19.el7 will be installed
  41. --> Finished Dependency Resolution
  42. Dependencies Resolved
  43. ==============================================================================================
  44. Package                      Arch     Version                     Repository            Size
  45. ==============================================================================================
  46. Installing:
  47. openstack-packstack          noarch   2014.1.1-0.14.dev1068.el7   openstack-icehouse   189 k
  48. Installing for dependencies:
  49. libyaml                      x86_64   0.1.4-6.el7                 rhel7                 54 k
  50. openstack-packstack-puppet   noarch   2014.1.1-0.14.dev1068.el7   openstack-icehouse    33 k
  51. openstack-puppet-modules     noarch   2014.1-12.el7               openstack-icehouse   1.5 M
  52. python-netaddr               noarch   0.7.5-7.el7                 rhel7                983 k
  53. ruby                         x86_64   2.0.0.353-19.el7            rhel7                 66 k
  54. ruby-irb                     noarch   2.0.0.353-19.el7            rhel7                 87 k
  55. ruby-libs                    x86_64   2.0.0.353-19.el7            rhel7                2.8 M
  56. rubygem-bigdecimal           x86_64   1.2.0-19.el7                rhel7                 78 k
  57. rubygem-io-console           x86_64   0.4.2-19.el7                rhel7                 49 k
  58. rubygem-json                 x86_64   1.7.7-19.el7                rhel7                 74 k
  59. rubygem-psych                x86_64   2.0.0-19.el7                rhel7                 76 k
  60. rubygem-rdoc                 noarch   4.0.0-19.el7                rhel7                317 k
  61. rubygems                     noarch   2.0.14-19.el7               rhel7                211 k
  62. Transaction Summary
  63. ==============================================================================================
  64. Install  1 Package (+13 Dependent packages)
  65. Total download size: 6.4 M
  66. Installed size: 23 M
  67. Downloading packages:
  68. warning:
  69. /var/cache/yum/x86_64/7Server/openstack-icehouse/packages/openstack-packstack-puppet-2014.1.1-0.14.dev1068.el7.noarch.rpm:
  70. Header V4 RSA/SHA1 Signature, key ID 0e4fbd28: NOKEY
  71. Public key for openstack-packstack-puppet-2014.1.1-0.14.dev1068.el7.noarch.rpm is not installed
  72. (1/3): openstack-packstack-puppet-2014.1.1-0.14.dev1068.el7.noarch.rpm |  33 kB  00:00:01
  73. (2/3): openstack-packstack-2014.1.1-0.14.dev1068.el7.noarch.rpm        | 189 kB  00:00:02
  74. (3/3): openstack-puppet-modules-2014.1-12.el7.noarch.rpm               | 1.5 MB  00:00:11
  75. ----------------------------------------------------------------------------------------------
  76. Total                                                         497 kB/s | 6.4 MB  00:00:13
  77. Retrieving key from file:///etc/pki/rpm-gpg/RPM-GPG-KEY-RDO-Icehouse
  78. Importing GPG key 0x0E4FBD28:
  79. Userid     : "rdo-icehouse-sign <
  80. rdo-info@redhat.com
  81. >"
  82. Fingerprint: ae9f 63f5 5530 06eb 11a9 0596 e50b e6ab 0e4f bd28
  83. Package    : rdo-release-icehouse-3.noarch (@/rdo-release)
  84. From       : /etc/pki/rpm-gpg/RPM-GPG-KEY-RDO-Icehouse
  85. Running transaction check
  86. Running transaction test
  87. Transaction test succeeded
  88. Running transaction
  89.   Installing : ruby-libs-2.0.0.353-19.el7.x86_64                                         1/14
  90.   Installing : python-netaddr-0.7.5-7.el7.noarch                                         2/14
  91.   Installing : openstack-packstack-puppet-2014.1.1-0.14.dev1068.el7.noarch               3/14
  92.   Installing : libyaml-0.1.4-6.el7.x86_64                                                4/14
  93.   Installing : rubygem-bigdecimal-1.2.0-19.el7.x86_64                                    5/14
  94.   Installing : rubygem-io-console-0.4.2-19.el7.x86_64                                    6/14
  95.   Installing : rubygem-json-1.7.7-19.el7.x86_64                                          7/14
  96.   Installing : rubygem-rdoc-4.0.0-19.el7.noarch                                          8/14
  97.   Installing : ruby-irb-2.0.0.353-19.el7.noarch                                          9/14
  98.   Installing : ruby-2.0.0.353-19.el7.x86_64                                             10/14
  99.   Installing : rubygems-2.0.14-19.el7.noarch                                            11/14
  100.   Installing : rubygem-psych-2.0.0-19.el7.x86_64                                        12/14
  101.   Installing : openstack-puppet-modules-2014.1-12.el7.noarch                            13/14
  102.   Installing : openstack-packstack-2014.1.1-0.14.dev1068.el7.noarch                     14/14
  103.   Verifying  : libyaml-0.1.4-6.el7.x86_64                                                1/14
  104.   Verifying  : ruby-libs-2.0.0.353-19.el7.x86_64                                         2/14
  105.   Verifying  : rubygem-bigdecimal-1.2.0-19.el7.x86_64                                    3/14
  106.   Verifying  : rubygem-psych-2.0.0-19.el7.x86_64                                         4/14
  107.   Verifying  : rubygem-io-console-0.4.2-19.el7.x86_64                                    5/14
  108.   Verifying  : rubygem-json-1.7.7-19.el7.x86_64                                          6/14
  109.   Verifying  : rubygem-rdoc-4.0.0-19.el7.noarch                                          7/14
  110.   Verifying  : ruby-2.0.0.353-19.el7.x86_64                                              8/14
  111.   Verifying  : openstack-packstack-2014.1.1-0.14.dev1068.el7.noarch                      9/14
  112.   Verifying  : ruby-irb-2.0.0.353-19.el7.noarch                                         10/14
  113.   Verifying  : openstack-packstack-puppet-2014.1.1-0.14.dev1068.el7.noarch              11/14
  114.   Verifying  : openstack-puppet-modules-2014.1-12.el7.noarch                            12/14
  115.   Verifying  : rubygems-2.0.14-19.el7.noarch                                            13/14
  116.   Verifying  : python-netaddr-0.7.5-7.el7.noarch                                        14/14
  117. Installed:
  118.   openstack-packstack.noarch 0:2014.1.1-0.14.dev1068.el7
  119. Dependency Installed:
  120.   libyaml.x86_64 0:0.1.4-6.el7
  121.   openstack-packstack-puppet.noarch 0:2014.1.1-0.14.dev1068.el7
  122.   openstack-puppet-modules.noarch 0:2014.1-12.el7
  123.   python-netaddr.noarch 0:0.7.5-7.el7
  124.   ruby.x86_64 0:2.0.0.353-19.el7
  125.   ruby-irb.noarch 0:2.0.0.353-19.el7
  126.   ruby-libs.x86_64 0:2.0.0.353-19.el7
  127.   rubygem-bigdecimal.x86_64 0:1.2.0-19.el7
  128.   rubygem-io-console.x86_64 0:0.4.2-19.el7
  129.   rubygem-json.x86_64 0:1.7.7-19.el7
  130.   rubygem-psych.x86_64 0:2.0.0-19.el7
  131.   rubygem-rdoc.noarch 0:4.0.0-19.el7
  132.   rubygems.noarch 0:2.0.14-19.el7
  133. Complete!
复制代码



4.生成自动化部署配置文件
  1. [root@www yum.repos.d]#packstack --gen-answer-file=answer.conf
复制代码


5.answer.conf 文件细节
过滤空行及注释行内容, 这里就不一一说明每个参数的含义了,基本通过查看配置参数的关键都可以明白其含义。
  1. [root@www ~]# cat answer.conf
  2. [general]
  3. CONFIG_SSH_KEY=/root/.ssh/id_rsa.pub
  4. CONFIG_MYSQL_INSTALL=y
  5. CONFIG_GLANCE_INSTALL=y
  6. CONFIG_CINDER_INSTALL=n
  7. CONFIG_NOVA_INSTALL=y
  8. CONFIG_NEUTRON_INSTALL=y
  9. CONFIG_HORIZON_INSTALL=y
  10. CONFIG_SWIFT_INSTALL=n
  11. CONFIG_CEILOMETER_INSTALL=n
  12. CONFIG_HEAT_INSTALL=n
  13. CONFIG_CLIENT_INSTALL=y
  14. CONFIG_NTP_SERVERS=
  15. CONFIG_NAGIOS_INSTALL=y
  16. EXCLUDE_SERVERS=
  17. CONFIG_DEBUG_MODE=n
  18. CONFIG_VMWARE_BACKEND=n
  19. CONFIG_VCENTER_HOST=
  20. CONFIG_VCENTER_USER=
  21. CONFIG_VCENTER_PASSWORD=
  22. CONFIG_VCENTER_CLUSTER_NAME=
  23. CONFIG_MYSQL_HOST=192.168.0.101
  24. CONFIG_MYSQL_USER=root
  25. CONFIG_MYSQL_PW=redhat
  26. CONFIG_AMQP_SERVER=rabbitmq
  27. CONFIG_AMQP_HOST=192.168.0.101
  28. CONFIG_AMQP_ENABLE_SSL=n
  29. CONFIG_AMQP_ENABLE_AUTH=n
  30. CONFIG_AMQP_NSS_CERTDB_PW=redhat
  31. CONFIG_AMQP_SSL_PORT=5671
  32. CONFIG_AMQP_SSL_CERT_FILE=/etc/pki/tls/certs/amqp_selfcert.pem
  33. CONFIG_AMQP_SSL_KEY_FILE=/etc/pki/tls/private/amqp_selfkey.pem
  34. CONFIG_AMQP_SSL_SELF_SIGNED=y
  35. CONFIG_AMQP_AUTH_USER=amqp_user
  36. CONFIG_AMQP_AUTH_PASSWORD=redhat
  37. CONFIG_KEYSTONE_HOST=192.168.0.101
  38. CONFIG_KEYSTONE_DB_PW=redhat
  39. CONFIG_KEYSTONE_ADMIN_TOKEN=redhat
  40. CONFIG_KEYSTONE_ADMIN_PW=redhat
  41. CONFIG_KEYSTONE_DEMO_PW=redhat
  42. CONFIG_KEYSTONE_TOKEN_FORMAT=PKI
  43. CONFIG_GLANCE_HOST=192.168.0.101
  44. CONFIG_GLANCE_DB_PW=redhat
  45. CONFIG_GLANCE_KS_PW=redhat
  46. #CONFIG_CINDER_HOST=192.168.0.101
  47. #CONFIG_CINDER_DB_PW=57649f6be2914adf
  48. #CONFIG_CINDER_KS_PW=471cc98ab0944d5b
  49. #CONFIG_CINDER_BACKEND=lvm
  50. #CONFIG_CINDER_VOLUMES_CREATE=y
  51. #CONFIG_CINDER_VOLUMES_SIZE=20G
  52. CONFIG_CINDER_GLUSTER_MOUNTS=
  53. CONFIG_CINDER_NFS_MOUNTS=
  54. CONFIG_NOVA_API_HOST=192.168.0.101
  55. CONFIG_NOVA_CERT_HOST=192.168.0.101
  56. CONFIG_NOVA_VNCPROXY_HOST=192.168.0.101
  57. CONFIG_NOVA_COMPUTE_HOSTS=192.168.0.101
  58. CONFIG_NOVA_CONDUCTOR_HOST=192.168.0.101
  59. CONFIG_NOVA_DB_PW=redhat
  60. CONFIG_NOVA_KS_PW=redhat
  61. CONFIG_NOVA_SCHED_HOST=192.168.0.101
  62. CONFIG_NOVA_SCHED_CPU_ALLOC_RATIO=16.0
  63. CONFIG_NOVA_SCHED_RAM_ALLOC_RATIO=1.5
  64. CONFIG_NOVA_COMPUTE_PRIVIF=eth1
  65. CONFIG_NOVA_NETWORK_HOSTS=192.168.0.101
  66. CONFIG_NOVA_NETWORK_MANAGER=nova.network.manager.FlatDHCPManager
  67. CONFIG_NOVA_NETWORK_PUBIF=eth0
  68. CONFIG_NOVA_NETWORK_PRIVIF=eth1
  69. CONFIG_NOVA_NETWORK_FIXEDRANGE=192.168.32.0/22
  70. CONFIG_NOVA_NETWORK_FLOATRANGE=10.3.4.0/22
  71. CONFIG_NOVA_NETWORK_DEFAULTFLOATINGPOOL=nova
  72. CONFIG_NOVA_NETWORK_AUTOASSIGNFLOATINGIP=n
  73. CONFIG_NOVA_NETWORK_VLAN_START=100
  74. CONFIG_NOVA_NETWORK_NUMBER=1
  75. CONFIG_NOVA_NETWORK_SIZE=255
  76. CONFIG_NEUTRON_SERVER_HOST=192.168.0.101
  77. CONFIG_NEUTRON_KS_PW=redhat
  78. CONFIG_NEUTRON_DB_PW=redhat
  79. CONFIG_NEUTRON_L3_HOSTS=192.168.0.101
  80. CONFIG_NEUTRON_L3_EXT_BRIDGE=br-ex
  81. CONFIG_NEUTRON_DHCP_HOSTS=192.168.0.101
  82. CONFIG_NEUTRON_LBAAS_HOSTS=
  83. CONFIG_NEUTRON_L2_PLUGIN=openvswitch
  84. CONFIG_NEUTRON_METADATA_HOSTS=192.168.0.101
  85. CONFIG_NEUTRON_METADATA_PW=redhat
  86. CONFIG_NEUTRON_ML2_TYPE_DRIVERS=local
  87. CONFIG_NEUTRON_ML2_TENANT_NETWORK_TYPES=local
  88. CONFIG_NEUTRON_ML2_MECHANISM_DRIVERS=openvswitch
  89. CONFIG_NEUTRON_ML2_FLAT_NETWORKS=*
  90. CONFIG_NEUTRON_ML2_VLAN_RANGES=
  91. CONFIG_NEUTRON_ML2_TUNNEL_ID_RANGES=
  92. CONFIG_NEUTRON_ML2_VXLAN_GROUP=
  93. CONFIG_NEUTRON_ML2_VNI_RANGES=
  94. CONFIG_NEUTRON_L2_AGENT=openvswitch
  95. CONFIG_NEUTRON_LB_TENANT_NETWORK_TYPE=local
  96. CONFIG_NEUTRON_LB_VLAN_RANGES=
  97. CONFIG_NEUTRON_LB_INTERFACE_MAPPINGS=
  98. CONFIG_NEUTRON_OVS_TENANT_NETWORK_TYPE=local
  99. CONFIG_NEUTRON_OVS_VLAN_RANGES=
  100. CONFIG_NEUTRON_OVS_BRIDGE_MAPPINGS=
  101. CONFIG_NEUTRON_OVS_BRIDGE_IFACES=
  102. CONFIG_NEUTRON_OVS_TUNNEL_RANGES=
  103. CONFIG_NEUTRON_OVS_TUNNEL_IF=
  104. CONFIG_NEUTRON_OVS_VXLAN_UDP_PORT=4789
  105. CONFIG_OSCLIENT_HOST=192.168.0.101
  106. CONFIG_HORIZON_HOST=192.168.0.101
  107. CONFIG_HORIZON_SSL=n
  108. CONFIG_SSL_CERT=
  109. CONFIG_SSL_KEY=
  110. CONFIG_SWIFT_PROXY_HOSTS=192.168.0.101
  111. CONFIG_SWIFT_KS_PW=b6e1cf34dc514df8
  112. CONFIG_SWIFT_STORAGE_HOSTS=192.168.0.101
  113. CONFIG_SWIFT_STORAGE_ZONES=1
  114. CONFIG_SWIFT_STORAGE_REPLICAS=1
  115. CONFIG_SWIFT_STORAGE_FSTYPE=ext4
  116. CONFIG_SWIFT_HASH=bd57d2e0aeed47ef
  117. CONFIG_SWIFT_STORAGE_SIZE=2G
  118. CONFIG_PROVISION_DEMO=y
  119. CONFIG_PROVISION_TEMPEST=n
  120. CONFIG_PROVISION_DEMO_FLOATRANGE=172.24.4.224/28
  121. CONFIG_PROVISION_TEMPEST_REPO_URI=https://github.com/openstack/tempest.git
  122. CONFIG_PROVISION_TEMPEST_REPO_REVISION=master
  123. CONFIG_PROVISION_ALL_IN_ONE_OVS_BRIDGE=n
  124. CONFIG_HEAT_HOST=192.168.0.101
  125. CONFIG_HEAT_DB_PW=redhat
  126. CONFIG_HEAT_AUTH_ENC_KEY=redhat
  127. CONFIG_HEAT_KS_PW=redhat
  128. CONFIG_HEAT_CLOUDWATCH_INSTALL=n
  129. CONFIG_HEAT_CFN_INSTALL=n
  130. CONFIG_HEAT_CLOUDWATCH_HOST=192.168.0.101
  131. CONFIG_HEAT_CFN_HOST=192.168.0.101
  132. #CONFIG_CEILOMETER_HOST=192.168.0.101
  133. #CONFIG_CEILOMETER_SECRET=0c5bce3e2f0540da
  134. #CONFIG_CEILOMETER_KS_PW=cd40ba8d5cb74c92
  135. CONFIG_MONGODB_HOST=192.168.0.101
  136. CONFIG_NAGIOS_HOST=192.168.0.101
  137. CONFIG_NAGIOS_PW=redhat
  138. CONFIG_USE_EPEL=y
  139. CONFIG_REPO=
  140. CONFIG_RH_USER=
  141. CONFIG_RH_PW=
  142. CONFIG_RH_BETA_REPO=n
  143. CONFIG_SATELLITE_URL=
  144. CONFIG_SATELLITE_USER=
  145. CONFIG_SATELLITE_PW=
  146. CONFIG_SATELLITE_AKEY=
  147. CONFIG_SATELLITE_CACERT=
  148. CONFIG_SATELLITE_PROFILE=
  149. CONFIG_SATELLITE_FLAGS=
  150. CONFIG_SATELLITE_PROXY=
  151. CONFIG_SATELLITE_PROXY_USER=
  152. CONFIG_SATELLITE_PROXY_PW=
复制代码



6.Openstack 自动化安装
  1. [root@www ~]# packstack --answer-file=./answer.conf                    
  2.                                  Welcome to Installer setup utility
  3. Installing:
  4. Clean Up                                             [ DONE ]
  5. Setting up ssh keys                                  [ DONE ]
  6. Discovering hosts' details                           [ DONE ]
  7. Adding pre install manifest entries                  [ DONE ]
  8. Adding MySQL manifest entries                        [ DONE ]
  9. Adding AMQP manifest entries                         [ DONE ]
  10. Adding Keystone manifest entries                     [ DONE ]
  11. Adding Glance Keystone manifest entries              [ DONE ]
  12. Adding Glance manifest entries                       [ DONE ]
  13. Adding Nova API manifest entries                     [ DONE ]
  14. Adding Nova Keystone manifest entries                [ DONE ]
  15. Adding Nova Cert manifest entries                    [ DONE ]
  16. Adding Nova Conductor manifest entries               [ DONE ]
  17. Creating ssh keys for Nova migration                 [ DONE ]
  18. Gathering ssh host keys for Nova migration           [ DONE ]
  19. Adding Nova Compute manifest entries                 [ DONE ]
  20. Adding Nova Scheduler manifest entries               [ DONE ]
  21. Adding Nova VNC Proxy manifest entries               [ DONE ]
  22. Adding Nova Common manifest entries                  [ DONE ]
  23. Adding Openstack Network-related Nova manifest entries[ DONE ]
  24. Adding Neutron API manifest entries                  [ DONE ]
  25. Adding Neutron Keystone manifest entries             [ DONE ]
  26. Adding Neutron L3 manifest entries                   [ DONE ]
  27. Adding Neutron L2 Agent manifest entries             [ DONE ]
  28. Adding Neutron DHCP Agent manifest entries           [ DONE ]
  29. Adding Neutron LBaaS Agent manifest entries          [ DONE ]
  30. Adding Neutron Metadata Agent manifest entries       [ DONE ]
  31. Adding OpenStack Client manifest entries             [ DONE ]
  32. Adding Horizon manifest entries                      [ DONE ]
  33. Adding Provisioning manifest entries                 [ DONE ]
  34. Adding Nagios server manifest entries                [ DONE ]
  35. Adding Nagios host manifest entries                  [ DONE ]
  36. Adding post install manifest entries                 [ DONE ]
  37. Preparing servers                                    [ DONE ]
  38. Installing Dependencies                              [ DONE ]
  39. Copying Puppet modules and manifests                 [ DONE ]
  40. Applying 192.168.0.101_prescript.pp
  41. 192.168.0.101_prescript.pp:                          [ DONE ]
  42. Applying 192.168.0.101_mysql.pp
  43. Applying 192.168.0.101_amqp.pp
  44. 192.168.0.101_mysql.pp:                              [ DONE ]
  45. 192.168.0.101_amqp.pp:                               [ DONE ]
  46. Applying 192.168.0.101_keystone.pp
  47. Applying 192.168.0.101_glance.pp
  48. 192.168.0.101_keystone.pp:                           [ DONE ]
  49. 192.168.0.101_glance.pp:                             [ DONE ]
  50. Applying 192.168.0.101_api_nova.pp
  51. 192.168.0.101_api_nova.pp:                           [ DONE ]
  52. Applying 192.168.0.101_nova.pp
  53. 192.168.0.101_nova.pp:                               [ DONE ]
  54. Applying 192.168.0.101_neutron.pp
  55. 192.168.0.101_neutron.pp:                            [ DONE ]
  56. Applying 192.168.0.101_osclient.pp
  57. Applying 192.168.0.101_horizon.pp
  58. Applying 192.168.0.101_provision.pp
  59. Applying 192.168.0.101_nagios.pp
  60. Applying 192.168.0.101_nagios_nrpe.pp
  61. 192.168.0.101_osclient.pp:                           [ DONE ]
  62. 192.168.0.101_horizon.pp:                            [ DONE ]
  63. 192.168.0.101_provision.pp:                          [ DONE ]
  64. 192.168.0.101_nagios_nrpe.pp:                        [ DONE ]
  65. 192.168.0.101_nagios.pp:                             [ DONE ]
  66. Applying 192.168.0.101_postscript.pp
  67. 192.168.0.101_postscript.pp:                         [ DONE ]
  68. Applying Puppet manifests                            [ DONE ]
  69. Finalizing                                           [ DONE ]
  70. **** Installation completed successfully ******
  71. Additional information:
  72. * Time synchronization installation was skipped. Please note that
  73. unsynchronized time on server instances might be problem for some
  74. OpenStack components.
  75. * File /root/keystonerc_admin has been created on OpenStack client host
  76. 192.168.0.101. To use the command line tools you need to source the
  77. file.
  78. * To access the OpenStack Dashboard browse to
  79. http://192.168.0.101/dashboard
  80. .
  81. Please, find your login credentials stored in the keystonerc_admin in your home directory.
  82. * To use Nagios, browse to
  83. http://192.168.0.101/nagios
  84. username : nagiosadmin, password : redhat
  85. * The installation log file is available at: /var/tmp/packstack/20140621-123917-jx4O_i/openstack-setup.log
  86. * The generated manifests are available at: /var/tmp/packstack/20140621-123917-jx4O_i/manifests
复制代码



7. Dashboard登录

1.jpg


2.jpg



1.jpg



8.Nagios 管理界面
1.jpg



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


重置了mysql 数据库密码:
  1. [root@www ~]# mysqladmin -u root password
复制代码

1.png

解决方法:
  1. [root@www ~]# /usr/sbin/rabbitmq-server restart
  2. [root@www ~]# chkconfig rabbitmq-server on
  3. [root@www ~]# packstack --answer-file=./answer.conf
复制代码

1.jpg

解决方法:
  1. [root@www ~]#wget ftp://rpmfind.net/linux/fedora/l ... 3-1.fc21.noarch.rpm
  2. [root@www ~]#wget ftp://rpmfind.net/linux/fedora/l ... 6-3.fc21.noarch.rpm
  3. [root@www ~]#wget ftp://rpmfind.net/linux/fedora/l ... 8-1.fc21.x86_64.rpm
  4. [root@www ~]#wget ftp://rpmfind.net/linux/fedora/l ... 1-2.fc21.x86_64.rpm
  5. [root@www ~]#rpm -ivh python-libguestfs-1.27.18-1.fc21.x86_64.rpm --nodeps
  6. [root@www
  7. ~]#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

已有(1)人评论

跳转到指定楼层
lilili 发表于 2015-10-20 11:10:22
你好,我用packstack在centos7中安装openstack,安装过程没有任何报错,且有安装成功提示信息以及额外信息,但是却不能通过浏览器访问dashboard,请问可能是什么原因呢?
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

关闭

推荐上一条 /2 下一条