Packstack安裝openstack havana 及錯誤排除

參考文檔:

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安裝即可。。。


發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章