转载请注明出处
1、需要依赖rubygems包
报错信息:
--> Finished Dependency Resolution
Error: Package: rubygem-json-1.5.5-1.el6.x86_64(puppetlabs-deps)
Requires: rubygems
You could try using --skip-broken to work aroundthe problem
You could try running: rpm -Va --nofiles--nodigest
解决办法:安装Centos6.5的rubygems包
yum install -y http://mirrors.163.com/centos/6.5/os/x86_64/Packages/rubygems-1.3.7-5.el6.noarch.rpm
2、rabbitmq server启动错误
报错信息:
192.168.1.101_amqp.pp:[ ERROR]
Applying Puppetmanifests[ ERROR ]
ERROR : Error appeared during Puppet run:192.168.1.101_amqp.pp
Error: Could not start Service[rabbitmq-server]: Execution of'/sbin/service rabbitmq-server start' returned 1: Startingrabbitmq-server: FAILED - check /var/log/rabbitmq/startup_{log,_err}
You will find full trace in log/var/tmp/packstack/20140720-203954-oN8DHz/manifests/192.168.1.101_amqp.pp.log
Please check log file/var/tmp/packstack/20140720-203954-oN8DHz/openstack-setup.log formore information
解决办法:
[root@rh65os yum.repos.d]# more /etc/hosts
127.0.0.1 localhostlocalhost.localdomain localhost4 localhost4.localdomain4
::1localhost localhost.localdomain localhost6localhost6.localdomain6
[root@rh65os yum.repos.d]# hostname
rh65os
[root@rh65os yum.repos.d]# vi /etc/hosts
[root@rh65os yum.repos.d]# more /etc/hosts
127.0.0.1 localhostlocalhost.localdomain localhost4 localhost4.localdomain4
::1localhost localhost.localdomain localhost6localhost6.localdomain6
127.0.0.1rh65osrh65os.localdomai
3、mariadb-galera-server与mysql-server-5.1.71-1.el6.x86_64冲突
ERROR : Error appeared during Puppet run:192.168.1.101_mysql.pp
Error: Execution of '/usr/bin/yum -d 0 -e 0 -y installmariadb-galera-server' returned 1: Error: mariadb-galera-serverconflicts with mysql-server-5.1.71-1.el6.x86_64
You will find full trace in log/var/tmp/packstack/20140720-205304-SfKQiz/manifests/192.168.1.101_mysql.pp.log
[root@rh65os ~]# rpm -e --nodepsmysql-server-5.1.71-1.el6.x86_64
4、本地安装时,provision调用远程镜像
168.175.12.103_swift.pp:[ DONE]
168.175.12.103_provision_demo.pp:[ ERROR]
Applying Puppetmanifests[ ERROR ]
ERROR : Error appeared during Puppet run:168.175.12.103_provision_demo.pp
Error: Execution of '/usr/bin/glance -T services -I glance -K123456 -N http://168.175.12.103:35357/v2.0/image-create --name=cirros --is-public=Yes --container-format=bare--disk-format=qcow2--copy-from=http://download.cirros-cloud.net/0.3.1/cirros-0.3.1-x86_64-disk.img'returned 1: Request returned failure status.
You will find full trace in log/var/tmp/packstack/20140722-223435-z8vWHM/manifests/168.175.12.103_provision_demo.pp.log
Please check log file/var/tmp/packstack/20140722-223435-z8vWHM/openstack-setup.log formore information
[root@hvc103 ~]# cd/usr/share/openstack-puppet/modules/openstack/manifests/这一步不需要做
[root@hvc103 manifests]# ls
all.ppcindercompute.ppdbhorizon.ppneutron.pp provision.pprepo.pp test_file.pp
auth_file.pp client.ppcontroller.pp glance.ppkeystone.ppnovareposwift
[root@hvc103 manifests]# vi provision.pp 修改image的获取路径
[root@hvc103 ~]# more/usr/share/openstack-puppet/modules/openstack/manifests/provision.pp|grep cirros
$image_name= 'cirros',
#$image_source='http://download.cirros-cloud.net/0.3.1/cirros-0.3.1-x86_64-disk.img',
$image_source='http://168.175.12.101/os-icehouse/cirros-0.3.2-x86_64-disk.img',
$image_ssh_user= 'cirros',