参考文档:
http://www.chenshake.com/centos-6-4-openstack-havana-multinode-installation/#comment-3206
以下仅记录,我在测试过程中遇到的问题:
Error: Execution of'/usr/bin/yum -d 0 -e 0 -y install openstack-ceilometer-compute' returned 1:错误及解决办法
192.168.1.130_cinder.pp : [ DONE ]
192.168.1.130_glance.pp : [ DONE ]
Applying 192.168.1.130_api_nova.pp
192.168.1.130_api_nova.pp : [ DONE ]
Applying 192.168.1.130_nova.pp
Applying 192.168.1.131_nova.pp
Applying 192.168.1.132_nova.pp
192.168.1.130_nova.pp : [ DONE ]
[ ERROR ]
ERROR : Error appearedduring Puppet run: 192.168.1.131_nova.pp
Error: Execution of'/usr/bin/yum -d 0 -e 0 -y install openstack-ceilometer-compute' returned 1:
You will find full trace in log/var/tmp/packstack/20131217-134051-RwwCtg/manifests/192.168.1.131_nova.pp.log
Please check log file/var/tmp/packstack/20131217-134051-RwwCtg/openstack-setup.log for moreinformation
Additional information:
*File /root/keystonerc_admin has been created on OpenStack client host192.168.1.130. To use the command line tools you need to source the file.
* Toaccess the OpenStack Dashboard browse to http://192.168.1.130/dashboard.
Please, find your login credentials storedin the keystonerc_admin in your home directory.
* Touse Nagios, browse to http://192.168.1.130/nagios username : nagiosadmin,password : c1db102b7978419f
根据错误提示,是192.168.1.131上执行'/usr/bin/yum -d 0 -e 0 -y install openstack-ceilometer-compute'异常,故切换到192.168.1.131,执行“/usr/bin/yum-d 0 -e 0 -y install openstack-ceilometer-compute”,过程如下:
[root@compute1 ~]# /usr/bin/yum -d 0 -e 0 -y install openstack-ceilometer-compute
There are unfinishedtransactions remaining. You might consider running yum-complete-transactionfirst to finish them.
[root@compute1 ~]# yum-complete-transaction
Loaded plugins: fastestmirror, priorities
Loading mirror speeds from cached hostfile
*epel: mirrors.yun-idc.com
114 packages excluded due to repositorypriority protections
Checking for new repos for mirrors
There are 1 outstanding transactions tocomplete. Finishing the most recent one
The remaining transaction had 4 elementsleft to run
Package python-alembic-0.4.2-3.el6.noarchalready installed and latest version
Packagepython-ceilometer-2013.2-1.el6.noarch already installed and latest version
Packageopenstack-ceilometer-common-2013.2-1.el6.noarch already installed and latestversion
Packageopenstack-ceilometer-compute-2013.2-1.el6.noarch already installed and latestversion
Nothing in the unfinished transaction tocleanup.
Cleaning up completed transaction file
[root@compute1 ~]# /usr/bin/yum -d 0 -e 0 -y install openstack-ceilometer-compute
Packageopenstack-ceilometer-compute-2013.2-1.el6.noarch already installed and latestversion
[root@compute1 ~]# /usr/bin/yum -d 0 -e 0 -y reinstall openstack-ceilometer-compute
然后,回到controller主机再次运行:packstack --answer-file=multi-node.txt
最后,问题解决,安装成功。
192.168.1.131_postscript.pp : [ DONE ]
192.168.1.130_postscript.pp : [ DONE ]
192.168.1.132_postscript.pp : [ DONE ]
[ DONE ]
Finalizing... [DONE ]
****Installation completed successfully ******
Additional information:
*File /root/keystonerc_admin has been created on OpenStack client host192.168.1.130. To use the command line tools you need to source the file.
* Toaccess the OpenStack Dashboard browse to http://192.168.1.130/dashboard.
Please, find your login credentials storedin the keystonerc_admin in your home directory.
* Touse Nagios, browse to http://192.168.1.130/nagios username : nagiosadmin,password : c1db102b7978419f
*The installation log file is available at:/var/tmp/packstack/20131217-140143-GlJFQs/openstack-setup.log
*The generated manifests are available at:/var/tmp/packstack/20131217-140143-GlJFQs/manifests
另外,常见的错误是网络连接问题或源的问题造成安装过程中断,确认网络和源没有问题,继续重新执行packstack安装即可。。。