1. 关闭防火墙并安装 RDO 软件
# systemctl disable firewalld --now
# setenforce 0
# sed -i 's/SELINUX=enforcing/SELINUX=disabled/g' /etc/sysconfig/selinux
# yum -y install http://rdo.fedorapeople.org/rdo-release.rpm
2. 安装 openstack-packstack 部署工具
# yum -y install openstack-packstack
Welcome to the Packstack setup utility
The installation log file is available at: /var/tmp/packstack/20210413-193804-wBzop9/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 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.0.68_controller.pp
192.168.0.68_controller.pp: [ DONE ]
Applying 192.168.0.68_network.pp
192.168.0.68_network.pp: [ DONE ]
Applying 192.168.0.68_compute.pp
192.168.0.68_compute.pp: [ DONE ]
Applying Puppet manifests [ DONE ]
Finalizing [ DONE ]
**** Installation completed successfully ******
Additional information:
* Parameter CONFIG_NEUTRON_L2_AGENT: You have chosen OVN Neutron backend. Note that this backend does not support the VPNaaS or FWaaS services. Geneve will be used as the encapsulation method for tenant networks
* A new answerfile was created in: /root/packstack-answers-20210413-193805.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.0.68. To use the command line tools you need to source the file.
* To access the OpenStack Dashboard browse to http://192.168.0.68/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/20210413-193804-wBzop9/openstack-setup.log
* The generated manifests are available at: /var/tmp/packstack/20210413-193804-wBzop9/manifests
3. 使用 openstack-packstack 一键自动安装
# packstack --allinone
4. 访问控制台
浏览器输入上述安装命令打印出的访问地址, http://192.168.0.68/dashboard
密码信息可以通过 cat keystonerc_admin
查看
常见问题记录
1. leatherman rpm 版本不匹配
facter: error while loading shared libraries: leatherman_curl.so.1.3.0: cannot open shared object file: No such file or directory
解决办法: 降级本地 rpm 包到 1.3.0:
# yum downgrade leatherman
已加载插件:fastestmirror
Loading mirror speeds from cached hostfile
* openstack-train: mirrors.tuna.tsinghua.edu.cn
* rdo-qemu-ev: mirrors.tuna.tsinghua.edu.cn
正在解决依赖关系
--> 正在检查事务
---> 软件包 leatherman.x86_64.0.1.3.0-9.el7 将被 降级
--> 正在处理依赖关系 libboost_log.so.1.59.0()(64bit),它被软件包 leatherman-1.3.0-9.el7.x86_64 需要
--> 正在处理依赖关系 libboost_log_setup.so.1.59.0()(64bit),它被软件包 leatherman-1.3.0-9.el7.x86_64 需要
---> 软件包 leatherman.x86_64.0.1.10.0-1.el7 将被 删除
--> 正在检查事务
---> 软件包 boost159-log.x86_64.0.1.59.0-2.el7.1 将被 安装
--> 解决依赖关系完成
依赖关系解决
==============================================================================================================================================================================================================================================
Package 架构 版本 源 大小
==============================================================================================================================================================================================================================================
正在降级:
leatherman x86_64 1.3.0-9.el7 openstack-train 347 k
为依赖而安装:
boost159-log x86_64 1.59.0-2.el7.1 openstack-train 380 k
事务概要
==============================================================================================================================================================================================================================================
安装 ( 1 依赖软件包)
降级 1 软件包
总下载量:727 k
Is this ok [y/d/N]: y
Downloading packages:
(1/2): leatherman-1.3.0-9.el7.x86_64.rpm | 347 kB 00:00:00
(2/2): boost159-log-1.59.0-2.el7.1.x86_64.rpm | 380 kB 00:00:00
----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
总计 9.7 MB/s | 727 kB 00:00:00
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
正在安装 : boost159-log-1.59.0-2.el7.1.x86_64 1/3
正在安装 : leatherman-1.3.0-9.el7.x86_64 2/3
清理 : leatherman-1.10.0-1.el7.x86_64 3/3
验证中 : leatherman-1.3.0-9.el7.x86_64 1/3
验证中 : boost159-log-1.59.0-2.el7.1.x86_64 2/3
验证中 : leatherman-1.10.0-1.el7.x86_64 3/3
删除:
leatherman.x86_64 0:1.10.0-1.el7
已安装:
leatherman.x86_64 0:1.3.0-9.el7
作为依赖被安装:
boost159-log.x86_64 0:1.59.0-2.el7.1
完毕!