码迷,mamicode.com
首页 > 其他好文 > 详细

packstack 部署遇到的坑

时间:2016-11-16 11:39:20      阅读:925      评论:0      收藏:0      [点我收藏+]

标签:localhost   list   cut   stack   txt   rac   配置   appear   size   

centos7 部署icehouse 遇到了好多坑

第一次安装使用 使用 packstack --allinone  失败

重复安装的时候使用第一次生成的 answer-file

packstack --answer-file=/root/packstack-answers-20161115-033728.txt

 


 

SequenceError: Error appeared during Puppet run: 10.0.4.15_mariadb.pp
Error: mysqladmin -u root password ‘5c2dcec12fcb4538‘ returned 1 instead of one of [0]^[[0m
You will find full trace in log /var/tmp/packstack/20161115-031426-zz2wLu/manifests/10.0.4.15_mariadb.pp.log

在 10.0.4.15_mariadb.pp.log 中发现  

ESC[mNotice: /Stage[main]/Mysql::Config/Exec[set_mysql_rootpw]/returns: ^Gmysqladmin: connect to server at ‘localhost‘ failedESC[0m
ESC[mNotice: /Stage[main]/Mysql::Config/Exec[set_mysql_rootpw]/returns: error: ‘Access denied for user ‘root‘@‘localhost‘ (using password: NO)‘ESC[0m

 

解决办法:

给mariadb的root设置密码,并修改answer-file 中的 CONFIG_MARIADB_PW 为mariadb 的root密码

# Password for the MariaDB admin user

CONFIG_MARIADB_PW=123

 


 

10.0.4.15_osclient.pp: [ ERROR ]
Applying Puppet manifests [ ERROR ]

ERROR : Error appeared during Puppet run: 10.0.4.15_osclient.pp
Error: Execution of ‘/usr/bin/yum -d 0 -e 0 -y list python-iso8601‘ returned 1: Error: No matching Packages to list
You will find full trace in log /var/tmp/packstack/20161115-051053-4LYnuR/manifests/10.0.4.15_osclient.pp.log
Please check log file /var/tmp/packstack/20161115-051053-4LYnuR/openstack-setup.log for more information

 

解决办法:将 /usr/lib/python2.7/site-packages/packstack/puppet/templates/openstack_client.pp 中的 python-iso8601 替换成 python2-iso8601

sed -i ‘s/python-iso8601/python2-iso8601/‘ /usr/lib/python2.7/site-packages/packstack/puppet/templates/openstack_client.pp

 


 

 

_mongodb.pp: [ ERROR ]
Applying Puppet manifests [ ERROR ]

ERROR : Error appeared during Puppet run: 10.0.4.15_mongodb.pp
Error: Could not start Service[mongodb]: Execution of ‘/usr/bin/systemctl start mongod‘ returned 1: Job for mongod.service failed because the control process exited with error code. See "systemctl status mongod.service" and "journalctl -xe" for details.
You will find full trace in log /var/tmp/packstack/20161115-054317-dIhK2C/manifests/10.0.4.15_mongodb.pp.log

原因是mongodb 没启动起来

查看mongodb的日志,会看到这么一行    Insufficient free space for journal files  ,原因是因为mongo的journa目录下空间小于3379MB ,

解决办法:

修改配置文件  /etc/mongod.conf 

vi /etc/mongod.conf 

# Use a smaller default file size (false by default)
smallfiles = true   # 修改这里就可以了


 

 

_ring_swift.pp: [ ERROR ]
Applying Puppet manifests [ ERROR ]

ERROR : Error appeared during Puppet run: 10.0.4.15_ring_swift.pp
Error: Execution of ‘/usr/bin/swift-ring-builder /etc/swift/object.builder add r1z1-10.0.4.15:6000/swift_loopback 10.00‘ returned 2: Device 0 already uses 10.0.4.15:6000/swift.
You will find full trace in log /var/tmp/packstack/20161115-060907-lLsOLD/manifests/10.0.4.15_ring_swift.pp.log
Please check log file /var/tmp/packstack/20161115-060907-lLsOLD/openstack-setup.log for more information

mkdir /tmp/bak
mv /etc/swift/*.builder /tmp/bak
mv /etc/swift/*.ring.gz /tmp/bak
mv /etc/swift/backups /tmp/bak

 

packstack 部署遇到的坑

标签:localhost   list   cut   stack   txt   rac   配置   appear   size   

原文地址:http://www.cnblogs.com/resn/p/6068138.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!