cetnos7一鍵安裝openstack(二)

packstack --allinone(error解決)mysql

ERROR : Error appeared during Puppet run: 192.168.1.8_mysql.pp
Error: Execution of '/usr/bin/yum -d 0 -e 0 -y install mariadb-galera-server' returned 1: Error: mariadb-galera-server conflicts with MariaDB-Galera-server-10.0.12-1.fc20.i686
You will find full trace in log /var/tmp/packstack/20140707-214423-aoKg0P/manifests/192.168.1.8_mysql.pp.logios



1.確定是mysql version 衝突, 因此yum remove -y mariadb-*sql

2.運行 packstack --allinone 結果繼續報錯app

3.懷疑mariadb repo 太新, 決定disable mysql repo. yum-config-manager --disable mariadbide

4.yum install mariadb-galera-serve (note: 不能安裝mariadb-server 不然仍是衝突)
5.運行packstack --allinone 繼續報錯,發現錯誤不同了Applying 10.46.40.170_mysql.pp Applying 10.46.40.170_qpid.pp [ ERROR ] ERROR : Error during puppet run : err: /Stage[main]/Mysql::Config/Exec[set_mysql_rootpw]/returns: change from notrun to 0 failed: mysqladmin -u root password '6dddb52284a84466' returned 1 instead of one of [0] at /var/tmp/packstack/258f358951de4934825c6f48c299e96a/modules/mysql/manifests/config.pp:106 Please check log file /var/tmp/packstack/20130621-082004-3ml2C4/openstack-setup.log for more information 查看這個鏈接給出解決辦法post

6.由於咱們只是調用了packstack 因此必定有配置文件packstack --gen-answer-file=<filename>spa

7.修改上述filename中的MYSQL_PASSWD=你的mysql 密碼code

9.運行packstack --answer-file=filenamecomponent

10 這個過程可能耗時很長請耐心等待(note: 這個過程可能還會有別的錯誤發生)orm



四,最後成功安裝的結果

Applying 10.10.2.156_nagios_nrpe.pp
10.10.2.156_nagios.pp:                               [ DONE ]
10.10.2.156_nagios_nrpe.pp:                          [ DONE ]
Applying 10.10.2.156_postscript.pp
10.10.2.156_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 10.10.2.156. To use the command line tools you need to source the file.
 * To access the OpenStack Dashboard browse to http://10.10.2.156/dashboard .
Please, find your login credentials stored in the keystonerc_admin in your home directory.
 * To use Nagios, browse to http://10.10.2.156/nagios username: nagiosadmin, password: dc06cb577f874fd5
 * The installation log file is available at: /var/tmp/packstack/20151015-162320-HSooyX/openstack-setup.log
 * The generated manifests are available at: /var/tmp/packstack/20151015-162320-HSooyX/manifests


五.根據提示/root/keystonerc_admin包含登錄admin的信息(登錄的時候須要用到)

相關文章
相關標籤/搜索