http://www.chenshake.com/centos6-4-single-card-all-in-one-install-havana/
http://blog.youkuaiyun.com/tiger435/article/details/16844155
http://openstack.redhat.com/Installation_errors
http://openstack.redhat.com/Neutron_with_existing_external_network
packstack --answer-file=packstack-answers-20131129-010424.txt
select Host, User, Password from user where User='keystone_admin';
grant all on keystone.* to keystone_admin@'DG-con001.zyunsoft.com'
identified by '';
flush privileges;
packstack --answer-file=packstack-answers-20131129-010424.txt
/var/tmp/packstack/20131129-014023-aBJqAK/openstack-setup.log
This:
[filter:
paste.
is the issue, it should be this:
[filter:
paste.
the auth_token middleware in keystone should probably be deleted
moving there
for x in $(virsh list --all | grep instance- | awk '{print $2}') ; do virsh destroy $x ; virsh undefine $x ; done ; yum remove -y nrpe "*nagios*" puppet ntp "ntp-*" ntpdate "rdo-release" "*openstack*" "*nova*" "*keystone*" "*glance*" "*cinder*" "*swift*" mysql mysql-server httpd "*memcache*" scsi-target-utils iscsi-initiator-utils perl-DBI perl-DBD-MySQL ; ps -ef | grep -i repli | grep swift | awk '{print $2}' | xargs kill ; rm -rf /etc/nagios /etc/yum.repos.d/packstack_* /root/.my.cnf /var/lib/mysql/ /var/lib/glance /var/lib/nova /etc/nova /etc/swift /srv/node/device*/* /var/lib/cinder/ /etc/rsync.d/frag* /var/cache/swift /var/log/keystone /tmp/keystone-signing-nova ; find /etc | grep rpmsave | xargs rm -vf ; umount /srv/node/device* ; killall -9 dnsmasq tgtd httpd ; setenforce 1 ; vgremove -f cinder-volumes ; losetup -a | sed -e 's/:.*//g' | xargs losetup -d ; find /etc/pki/tls -name "ssl_ps*" | xargs rm -rf ; for x in $(df | grep "/lib/" | sed -e 's/.* //g') ; do umount $x ; done
Error creating database
When running packstack, I get an error
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
You are trying to install openstack when there is an existing MySQL database installed. As a result, the root password generated by packstack will not match the pre-existing password.
There are a number of possible solutions:
- Change the root password to the password featured in the error message above and rerun packstack - this will keep existing databases. It is not recommended to share the MySQL database used by Nova as a database server for other applications.
- Wipe the pre-existing databases with `rm -rf /var/lib/mysql` and rerun packstack
- Run the uninstall script to reset the host before re-running the quick start
http://www.cnblogs.com/honggou/p/3409439.html
losetup -d /dev/loop2
创建cinder-volumes
dd if=/dev/zero of=cinder-volumes bs=1 count=0 seek=50G
losetup /dev/loop2 cinder-volumes
pvcreate /dev/loop2
vgcreate cinder-volumes /dev/loop2
vgs
pvs
我也是刚解决这个问题。https://github.com/marafa/openstack/blob/master/openstack-outside.sh 或者参考一下 http://openstack.redhat.com/Neutron_with_existing_external_network 简单点说,你需要创建一个 ifcfg-br-ex,把eth0的ip移到上面。
根据您的这个教程,我确实成功安装好了,非常感谢!!!不过中间也遇到了一些问题。
1、一开始我安装的是32位的centos6.4,执行yum install -y openstack-packstack这一步时,提示foreman.repo中提供的链接not found,我看了下是因为http://yum.theforeman.org/releases/1.3/el6/下面只有x86_64,而没有i386的。
2、改安装64位的centos6.4,因为我不是minimal安装,而是desktop。导致执行packstack –allinone –provision-demo=n后,出现错误:Error :Could not find package nrpe。根据http://openstack.redhat.com/forum/discussion/comment/168 的case2,他说错误原因是别的repo库中也包含了nrpe包造成的冲突,但我把yum list | grep nrpe中,除了执行yum install -y http://rdo.fedorapeople.org/openstack/openstack-havana/rdo-release-havana.rpm产生的repo外,其他的repo全部删掉,还是会报错。最后发现原因是安装“centos中挂载ntfs分区” 这个功能时(我装的是双系统),已经使用rpmforge.repo的源安装了nrpe,且版本和epel.repo中的版本不一致。卸载nagios-nrpe-2.14-1.el6.rf.x86_64,重新安装openstack,就通过了,并且在局域网内的其他机器上可以ping通和ssh上。