cetnos7一键安装openstack(二)

packstack --allinone(error解决)

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.log



1.肯定是mysql version 冲突, 所以yum remove -y mariadb-*

2.运行 packstack --allinone 结果继续报错

3.怀疑mariadb repo 太新, 决定disable mysql repo. yum-config-manager --disable mariadb

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 查看这个连接给出解决办法

6.因为我们只是调用了packstack 所以一定有配置文件packstack --gen-answer-file=<filename>

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

9.运行packstack --answer-file=filename

10 这个过程可能耗时很长请耐心等待(note: 这个过程可能还会有别的错误发生)



四,最后成功安装的结果

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的信息(登陆的时候需要用到)



你可能感兴趣的:(centos,openstack,一键安装)