packstack安装openstack

先去看 将selinux 的值设置成disabled - python,菜鸟 - 博客园 (cnblogs.com)

在看 ping: www.baidu.com: 未知的名称或服务 - python,菜鸟 - 博客园 (cnblogs.com)

作者:小辉 

1.2.2 初始化操作

关闭防火墙与和核心防护,NetworkManager

[root@openstack ~]# systemctl stop firewalld '//关闭防护墙'

[root@openstack ~]# systemctl disable firewalld '/取消开机自启'

 

2,关闭网络管理工具,取消开机自启

[root@openstack ~]# systemctl disable NetworkManager

[root@openstack ~]# systemctl stop NetworkManager

 

3启用network

systemctl enable network &&\
systemctl start network

 

0.2 IP与域名(或主机名)映射   ip地址和主机名

 

 

 

 同步时间 

   ntpdate ntp.aliyum.com >>/var/log/ntpdate.log

 

4.安装openstack queens版本库

 

#yum install -y centos-release-openstack-queens

#yum update -y

 

重启

#reboot

 

 

5.安装packstack库

[root@xxh hui]# yum install -y openstack-packstack

 

 

6.开始部署openstack

 

packstack -d --allinone

 

 

 

没什么问题的话内容是是这样的 ,可能会问题可以去看这里  Packstack 搭建 OpenStack 报 错误的处理 - python,菜鸟 - 博客园 (cnblogs.com)   先看一下能不能等入openstack

 

[root@xxh ~]# ntpdate ntp.aliyum.com >>/var/log/ntpdate.log
12 Sep 20:27:20 ntpdate[75710]: no server suitable for synchronization found
[root@xxh ~]# packstack  --allinone
Welcome to the Packstack setup utility

The installation log file is available at: /var/tmp/packstack/20220912-202725-Pnelkh/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 Redis entries                              [ DONE ]
Preparing Ceilometer entries                         [ DONE ]
Preparing Aodh entries                               [ DONE ]
Preparing Puppet manifests                           [ DONE ]
Copying Puppet modules and manifests                 [ DONE ]
Applying 192.168.213.120_controller.pp
192.168.213.120_controller.pp:                       [ DONE ]            
Applying 192.168.213.120_network.pp
192.168.213.120_network.pp:                          [ DONE ]         
Applying 192.168.213.120_compute.pp
192.168.213.120_compute.pp:                          [ DONE ]         
Applying Puppet manifests                            [ DONE ]
Finalizing                                           [ DONE ]

 **** Installation completed successfully ******

Additional information:
 * A new answerfile was created in: /root/packstack-answers-20220912-202725.txt
 * Time synchronization installation was skipped. Please note that unsynchronized time on server instances might be problem for some OpenStack components.
 * File /root/keystonerc_admin has been created on OpenStack client host 192.168.213.120. To use the command line tools you need to source the file.
 * To access the OpenStack Dashboard browse to http://192.168.213.120/dashboard .
Please, find your login credentials stored in the keystonerc_admin in your home directory.
 * The installation log file is available at: /var/tmp/packstack/20220912-202725-Pnelkh/openstack-setup.log
 * The generated manifests are available at: /var/tmp/packstack/20220912-202725-Pnelkh/manifests

  们可以访问http://192.168.101.128/dashboard 进入OpenStack的管理界面

[root@openstack ~]#  cat ./keystonerc_admin 查看账号密码

查看用户民和密码

 

 

 

 

 

posted @ 2022-09-13 18:35  python,菜鸟  阅读(304)  评论(0)    收藏  举报