centos6下一键安装openstack
- 2017-04-28 09:59:58
- 运维
- 35
- shevechco
安装前需要修改 /etc/hosts文件,添加 127.0.0.1dev-100 (dev-100为当前机器名)
否则会报如下错误:
01.Could not start Service[rabbitmq-server]: Execution of '/sbin/service rabbitmq-server start' returned 1: Starting rabbitmq-server: FAILED - check /var/log/rabbitmq/startup_{log, _err}
安装步骤:
01.[root@dev-100 openstack]# sudo yum install -y http://rdo.fedorapeople.org/rdo-release.rpm02.[root@dev-100 openstack]# sudo yum install -y openstack-packstack03.[root@dev-100 openstack]# packstack --allinone04.Welcome to Installer setup utility05.Installing:06.Clean Up [ DONE ]07.Setting up ssh keys [ DONE ]08.Discovering hosts' details [ DONE ]09.Adding pre install manifest entries [ DONE ]10.Preparing servers [ DONE ]11.Adding AMQP manifest entries [ DONE ]12.Adding MySQL manifest entries [ DONE ]13.Adding Keystone manifest entries [ DONE ]14.Adding Glance Keystone manifest entries [ DONE ]15.Adding Glance manifest entries [ DONE ]16.Adding Cinder Keystone manifest entries [ DONE ]17.Adding Cinder manifest entries [ DONE ]18.Checking if the Cinder server has a cinder-volumes vg[ DONE ]19.Adding Nova API manifest entries [ DONE ]20.Adding Nova Keystone manifest entries [ DONE ]21.Adding Nova Cert manifest entries [ DONE ]22.Adding Nova Conductor manifest entries [ DONE ]23.Creating ssh keys for Nova migration [ DONE ]24.Gathering ssh host keys for Nova migration [ DONE ]25.Adding Nova Compute manifest entries [ DONE ]26.Adding Nova Scheduler manifest entries [ DONE ]27.Adding Nova VNC Proxy manifest entries [ DONE ]28.Adding Openstack Network-related Nova manifest entries[ DONE ]29.Adding Nova Common manifest entries [ DONE ]30.Adding Neutron API manifest entries [ DONE ]31.Adding Neutron Keystone manifest entries [ DONE ]32.Adding Neutron L3 manifest entries [ DONE ]33.Adding Neutron L2 Agent manifest entries [ DONE ]34.Adding Neutron DHCP Agent manifest entries [ DONE ]35.Adding Neutron LBaaS Agent manifest entries [ DONE ]36.Adding Neutron Metering Agent manifest entries [ DONE ]37.Adding Neutron Metadata Agent manifest entries [ DONE ]38.Checking if NetworkManager is enabled and running [ DONE ]39.Adding OpenStack Client manifest entries [ DONE ]40.Adding Horizon manifest entries [ DONE ]41.Adding Swift Keystone manifest entries [ DONE ]42.Adding Swift builder manifest entries [ DONE ]43.Adding Swift proxy manifest entries [ DONE ]44.Adding Swift storage manifest entries [ DONE ]45.Adding Swift common manifest entries [ DONE ]46.Adding Provisioning Demo manifest entries [ DONE ]47.Adding MongoDB manifest entries [ DONE ]48.Adding Ceilometer manifest entries [ DONE ]49.Adding Ceilometer Keystone manifest entries [ DONE ]50.Adding Nagios server manifest entries [ DONE ]51.Adding Nagios host manifest entries [ DONE ]52.Adding post install manifest entries [ DONE ]53.Installing Dependencies [ DONE ]54.Copying Puppet modules and manifests [ DONE ]55.Applying 192.168.1.105_prescript.pp56.192.168.1.105_prescript.pp: [ DONE ] 57.Applying 192.168.1.105_amqp.pp58.Applying 192.168.1.105_mysql.pp59.192.168.1.105_amqp.pp: [ DONE ] 60.192.168.1.105_mysql.pp: [ DONE ] 61.Applying 192.168.1.105_keystone.pp62.Applying 192.168.1.105_glance.pp63.Applying 192.168.1.105_cinder.pp64.192.168.1.105_keystone.pp: [ DONE ] 65.192.168.1.105_glance.pp: [ DONE ] 66.192.168.1.105_cinder.pp: [ DONE ] 67.Applying 192.168.1.105_api_nova.pp68.192.168.1.105_api_nova.pp: [ DONE ] 69.Applying 192.168.1.105_nova.pp70.192.168.1.105_nova.pp: [ DONE ] 71.Applying 192.168.1.105_neutron.pp72.192.168.1.105_neutron.pp: [ DONE ] 73.Applying 192.168.1.105_neutron_fwaas.pp74.Applying 192.168.1.105_osclient.pp75.Applying 192.168.1.105_horizon.pp76.192.168.1.105_neutron_fwaas.pp: [ DONE ] 77.192.168.1.105_osclient.pp: [ DONE ] 78.192.168.1.105_horizon.pp: [ DONE ] 79.Applying 192.168.1.105_ring_swift.pp80.192.168.1.105_ring_swift.pp: [ DONE ] 81.Applying 192.168.1.105_swift.pp82.Applying 192.168.1.105_provision_demo.pp83.192.168.1.105_swift.pp: [ DONE ] 84.192.168.1.105_provision_demo.pp: [ DONE ] 85.Applying 192.168.1.105_mongodb.pp86.192.168.1.105_mongodb.pp: [ DONE ] 87.Applying 192.168.1.105_ceilometer.pp88.Applying 192.168.1.105_nagios.pp89.Applying 192.168.1.105_nagios_nrpe.pp90.192.168.1.105_ceilometer.pp: [ DONE ] 91.192.168.1.105_nagios.pp: [ DONE ] 92.192.168.1.105_nagios_nrpe.pp: [ DONE ] 93.Applying 192.168.1.105_postscript.pp94.192.168.1.105_postscript.pp: [ DONE ] 95.Applying Puppet manifests [ DONE ]96.Finalizing [ DONE ]97.**** Installation completed successfully ******98.Additional information:99.* A new answerfile was created in: /root/packstack-answers-20140920-225753.txt100.* Time synchronization installation was skipped. Please note that unsynchronized time on server instances might be problem for some OpenStack components.101.* Did not create a cinder volume group, one already existed102.* File /root/keystonerc_admin has been created on OpenStack client host 192.168.1.105. To use the command line tools you need to source the file.103.* To access the OpenStack Dashboard browse to http://192.168.1.105/dashboard .104.Please, find your login credentials stored in the keystonerc_admin in your home directory.105.* To use Nagios, browse to http://192.168.1.105/nagios username: nagiosadmin, password: 784f5aec5c1f4ca9106.* The installation log file is available at: /var/tmp/packstack/20140920-225753-P5aOiP/openstack-setup.log107.* The generated manifests are available at: /var/tmp/packstack/20140920-225753-P5aOiP/manifests
keystonerc_admin文件存储访问地址及登录账户信息( /root/keystonerc_admin )
01.[root@dev-100 openstack]# cat /root/keystonerc_admin 02.export OS_USERNAME=admin03.export OS_TENANT_NAME=admin04.export OS_PASSWORD=3b63bde2721349d005.export OS_AUTH_URL=http://192.168.1.105:5000/v2.0/06.export PS1='[\u@\h \W(keystone_admin)]\$ '
通过浏览器访问 http://192.168.1.105/dashboard 登录后截图如下:
内容版权声明:除非注明,否则皆为本站原创文章。
转载注明出处:http://www.sulao.cn/post/359