Linux 一键式安装部署 openstrack

第一步:修改防火墙,selinux状态

建议用NAT模式!!!!

临时关闭:setenforce 0
vi /etc/seliunx/config
修改配置文件:将SELINUX=enforcing改为SELNUX=disabled
查看selinux状态:getenforce 0

关闭防火墙:systemctl disable firewalld    开机自动关闭防火墙
           systemctl stop firewalld       停止防火墙服务

关闭网络管理服务:systemctl stop NetworkManager 
                systemctl disable NetworkManager

第二步:安装配置openstrack 



安装rpm包并设置openstack-stein库存储:
yum install centos-release-openstack-stein -y

yum源更新:yum update -y

安装openstack-packstack工具
yum install openstack-packstack -y
yum install -y yum openstack-packstack  openstack-nova-compute puppet hiera openssh-clients  tar nc rubygem-json openstack-nova-conductor openstack-dashboard openstack-swift mongodb-server  openstack-ceilometer-central mariadb  mariadb-galera-server python-openstackclient openstack-cinder openstack-liberty

通过packstack一键安装openstack
packstack --allinone

出现问题:一直停留在Testing if puppet apply is finished
192.168.159.135_controller.pp[-]
解决方案:等待

 packstack --allinone  Welcome to the Packstack setup utility  
  
The installation log file is available at: /var/tmp/packstack/20161208-122639-y7  
lVCr/openstack-setup.log  
  
Installing:  
Clean Up                                             [ DONE ]  
Discovering ip protocol version                      [ DONE ]  
Setting up ssh keys                                  [ DONE ]  
Preparing servers                                    [ DONE ]  
Pre installing Puppet and discovering hosts' details [ DONE ]  
Preparing pre-install entries                        [ DONE ]  
Setting up CACERT                                    [ DONE ]  
Preparing AMQP entries                               [ DONE ]  
Preparing MariaDB entries                            [ DONE ]  
Fixing Keystone LDAP config parameters to be undef if empty[ DONE ]  
Preparing Keystone entries                           [ DONE ]  
Preparing Glance entries                             [ DONE ]  
Checking if the Cinder server has a cinder-volumes vg[ DONE ]  
Preparing Cinder entries                             [ DONE ]  
Preparing Nova API entries                           [ DONE ]  
Creating ssh keys for Nova migration                 [ DONE ]  
Gathering ssh host keys for Nova migration           [ DONE ]  
Preparing Nova Compute entries                       [ DONE ]  
Preparing Nova Scheduler entries                     [ DONE ]  
Preparing Nova VNC Proxy entries                     [ DONE ]  
Preparing OpenStack Network-related Nova entries     [ DONE ]  
Preparing Nova Common entries                        [ DONE ]  
Preparing Neutron LBaaS Agent entries                [ DONE ]  
Preparing Neutron API entries                        [ DONE ]  
Preparing Neutron L3 entries                         [ DONE ]  
Preparing Neutron L2 Agent entries                   [ DONE ]  
Preparing Neutron DHCP Agent entries                 [ DONE ]  
Preparing Neutron Metering Agent entries             [ DONE ]  
Checking if NetworkManager is enabled and running    [ DONE ]  
Preparing OpenStack Client entries                   [ DONE ]  
Preparing Horizon entries                            [ DONE ]  
Preparing Swift builder entries                      [ DONE ]  
Preparing Swift proxy entries                        [ DONE ]  
Preparing Swift storage entries                      [ DONE ]  
Preparing Gnocchi entries                            [ DONE ]  
Preparing MongoDB entries                            [ DONE ]  
Preparing Redis entries                              [ DONE ]  
Preparing Ceilometer entries                         [ DONE ]  
Preparing Aodh entries                               [ DONE ]  
Preparing Nagios server entries                      [ DONE ]  
Preparing Nagios host entries                        [ DONE ]  
Preparing Puppet manifests                           [ DONE ]  
Copying Puppet modules and manifests                 [ DONE ]  
Applying 192.168.80.128_controller.pp  
Testing if puppet apply is finished: 192.168.159.136_controller.pp  [ | ]  192.168.80.128_controller.pp:                        [ DONE ]  
Applying 192.168.80.128_network.pp  
Testing if puppet apply is finished: 192.168.159.136_network.pp  [ / ]  192.168.80.128_network.pp:                           [ DONE ]          
Applying 192.168.80.128_compute.pp  192.168.159.136_compute.pp:                           [ DONE ]  
Applying Puppet manifests                            [ DONE ]  
Finalizing                                           [ DONE ]  
  
 **** Installation completed successfully ******  
  
Additional information:  
 * A new answerfile was created in: /root/packstack-answers-20161208-122640.txt  
 * Time synchronization installation was skipped. Please note that unsynchronize  
d time on server instances might be problem for some OpenStack components.  
 * File /root/keystonerc_admin has been created on OpenStack client host 192.168  
.80.128. To use the command line tools you need to source the file.  
 * To access the OpenStack Dashboard browse to http://192.168.159.136/dashboard .  
  
Please, find your login credentials stored in the keystonerc_admin in your home  
directory.  
 * To use Nagios, browse to http://192.168.159.136/nagios username: nagiosadmin,  
password: a0cc9b49b7c54c56  
 * Because of the kernel update the host 192.168.159.136 requires reboot.  
 * The installation log file is available at: /var/tmp/packstack/20161208-122639  
-y7lVCr/openstack-setup.log  
 * The generated manifests are available at: /var/tmp/packstack/20161208-122639-  
y7lVCr/manifests 


第三步:登录openstrack 


web防问地址:http://192.168.159.135/dashboard

登录账号:admin

密码:进入cd /root,找到keystonerc_admin文件

命令:cat keystonerc_admin

显示账号密码:
export OS_USERNAME=admin
export OS_PASSWORD='bbfc241d9753446a'

 其他借鉴和参考:openstack安装 - torotoise512 - 博客园 (cnblogs.com)

  • 2
    点赞
  • 7
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值