OpenStack摆设全攻略:轻松打造强大的云架构

打印 上一主题 下一主题

主题 864|帖子 864|积分 2592

CentOS Stream 8 通过 Packstack 安装开源 OpenStack(V版)

需要了解

   

  • 假造化平台版本 VMware Workstation 16.2.3
  • 操纵系统版本 CentOS Linux Stream 8
  • 安装源您可访问 阿里永世镜像站 / 华为永世镜像站 或其他镜像站进行下载
  • 环境用到 2台 假造机,单网卡,并为其配置 静态 IP 及 DNS
  • 从 Ussuri 版本开始,需要使用 CentOS 8 或 RHEL 8,截至发稿前,Stream 8 版本支持的最高版本为 xena
  • 搭建 openstack 最麻烦的是 yum 源问题,发起严格按照本篇博客进行 yum 源配置操纵
  • 保姆级别,按照步骤操纵,绝对一次性安装乐成。
  环境规划

   控制节点及盘算节点必须开启假造化引擎 Intel VT-x 或 AMD-V。控制节点将来将被复用为盘算节点和网络节点。假造机配置可根据实际环境进行调整。
  主机名IP网关/DNSCPU/内存磁盘脚色备注controller192.168.129.185192.168.129.24c8g100g控制/网络/盘算节点必须开启假造化引擎computer192.168.129.186192.168.129.24c8g100g盘算节点必须开启假造化引擎 系统环境配置

网络配置

   当前环境中控制节点及盘算节点网卡范例为 NAT
  网卡配置、关闭防火墙、Selinux、NetworkManager


  • 控制节点
  1. ### 网卡配置
  2. [root@tmp ~]# hostnamectl set-hostname controller
  3. [root@tmp ~]# hostname
  4. controller
  5. [root@tmp ~]# cd /etc/sysconfig/network-scripts/
  6. [root@tmp network-scripts]# ls
  7. ifcfg-ens160
  8. [root@tmp network-scripts]# vi ifcfg-ens160
  9. [root@tmp network-scripts]# cat ifcfg-ens160
  10. TYPE=Ethernet
  11. BOOTPROTO=none
  12. NAME=ens160
  13. DEVICE=ens160
  14. ONBOOT=yes
  15. IPADDR=192.168.129.185
  16. NETMASK=255.255.255.0
  17. GATEWAY=192.168.129.2
  18. DNS1=192.168.129.2
  19. ### 可以再配置完ip之后关机拍摄快照
复制代码

  1. ### 关闭防火墙
  2. [root@controller ~]# systemctl stop firewalld
  3. [root@controller ~]# systemctl disable firewalld
  4. Removed /etc/systemd/system/multi-user.target.wants/firewalld.service.
  5. Removed /etc/systemd/system/dbus-org.fedoraproject.FirewallD1.service.
  6. ### 关闭SELINUX
  7. [root@controller ~]# setenforce 0
  8. [root@controller ~]# sed -i 's/SELINUX=enforcing/SELINUX=disabled/g' /etc/selinux/config
  9. ### 关闭NetworkManager
  10. [root@controller ~]# systemctl stop NetworkManager
  11. [root@controller ~]# systemctl disable NetworkManager
  12. Removed /etc/systemd/system/multi-user.target.wants/NetworkManager.service.
  13. Removed /etc/systemd/system/dbus-org.freedesktop.nm-dispatcher.service.
  14. Removed /etc/systemd/system/network-online.target.wants/NetworkManager-wait-online.service.
复制代码


  • 盘算节点
  1. ### 网卡配置
  2. [root@tmp ~]# hostnamectl set-hostname computer
  3. [root@tmp ~]# hostname
  4. computer
  5. [root@tmp ~]# cd /etc/sysconfig/network-scripts/
  6. [root@tmp network-scripts]# ls
  7. ifcfg-ens160
  8. [root@tmp network-scripts]# vi ifcfg-ens160
  9. [root@tmp network-scripts]# cat ifcfg-ens160
  10. TYPE=Ethernet
  11. BOOTPROTO=none
  12. NAME=ens160
  13. DEVICE=ens160
  14. ONBOOT=yes
  15. IPADDR=192.168.129.186
  16. NETMASK=255.255.255.0
  17. GATEWAY=192.168.129.2
  18. DNS1=192.168.129.2
  19. [root@tmp network-scripts]#
  20. ### 可以再配置完ip之后关机拍摄快照
复制代码
根据实际环境给处置惩罚器

  1. ### 关闭防火墙
  2. [root@computer ~]# systemctl stop firewalld
  3. [root@computer ~]# systemctl disable firewalld
  4. Removed /etc/systemd/system/multi-user.target.wants/firewalld.service.
  5. Removed /etc/systemd/system/dbus-org.fedoraproject.FirewallD1.service.
  6. ### 关闭SELINUX
  7. [root@computer ~]# setenforce 0
  8. [root@computer ~]# sed -i 's/SELINUX=enforcing/SELINUX=disabled/g' /etc/selinux/config
  9. ### 关闭NetworkManager
  10. [root@computer ~]# systemctl stop NetworkManager
  11. [root@computer ~]# systemctl disable NetworkManager
  12. Removed /etc/systemd/system/multi-user.target.wants/NetworkManager.service.
  13. Removed /etc/systemd/system/dbus-org.freedesktop.nm-dispatcher.service.
  14. Removed /etc/systemd/system/network-online.target.wants/NetworkManager-wait-online.service.
复制代码
配置ip及主机名安装底子包



  • 控制节点
  1. ### 配置ip及主机名
  2. [root@controller ~]# vi /etc/hosts
  3. [root@controller ~]# cat /etc/hosts
  4. 127.0.0.1   localhost localhost.localdomain localhost4 localhost4.localdomain4
  5. ::1         localhost localhost.localdomain localhost6 localhost6.localdomain6
  6. 192.168.129.185 controller
  7. 192.168.129.186 computer
  8. [root@controller ~]# ping computer
  9. ### 安装基础包
  10. [root@controller ~]# yum install -y vim net-tools bash-completion chrony.x86_64 centos-release-openstack-victoria.noarch
复制代码


  • 盘算节点
  1. ### 配置ip及主机名
  2. [root@computer ~]# vi /etc/hosts
  3. [root@computer ~]# cat /etc/hosts
  4. 127.0.0.1   localhost localhost.localdomain localhost4 localhost4.localdomain4
  5. ::1         localhost localhost.localdomain localhost6 localhost6.localdomain6
  6. 192.168.129.185 controller
  7. 192.168.129.186 computer
  8. [root@computer ~]# ping controller
  9. ### 安装基础包
  10. [root@computer ~]# yum install -y vim net-tools bash-completion chrony.x86_64 centos-release-openstack-victoria.noarch
复制代码
如果在安装底子包出错,重启之后没有ip,可以重启 NetworkManager,再讲其关闭
NTP时间同步配置

   Linux 8 版本开始默认不再支持 ntpdate 工具,换用 chronyd 进行同步
  

  • 控制节点
  1. [root@controller ~]#  vi /etc/chrony.conf
  2. # Please consider joining the pool (http://www.pool.ntp.org/join.html).
  3. #pool 2.centos.pool.ntp.org iburst
  4. sever  pool ntp.aliyun.com iburst     ### 配置了阿里云ntp
  5. # Record the rate at which the system clock gains/losses time.
  6. driftfile /var/lib/chrony/drift
  7. ..............
  8. ### 启动服务
  9. [root@controller ~]# systemctl start chronyd.service
  10. Job for chronyd.service failed because the control process exited with error code.
  11. See "systemctl status chronyd.service" and "journalctl -xe" for details.
  12. [root@controller ~]# systemctl enable chronyd.service
复制代码


  • 盘算节点
  1. [root@computer ~]# vi /etc/chrony.conf
  2. # Please consider joining the pool (http://www.pool.ntp.org/join.html).
  3. #pool 2.centos.pool.ntp.org iburst
  4. sever  pool ntp.aliyun.com iburst     ### 配置了阿里云ntp
  5. # Record the rate at which the system clock gains/losses time.
  6. driftfile /var/lib/chrony/drift
  7. ..............
  8. ### 启动服务
  9. [root@computer ~]# systemctl start chronyd.service
  10. Job for chronyd.service failed because the control process exited with error code.
  11. See "systemctl status chronyd.service" and "journalctl -xe" for details.
  12. [root@computer ~]# systemctl enable chronyd.service
复制代码
配置YUM源



  • 控制节点
  1. [root@controller ~]# mkdir /etc/yum.repos.d/bak
  2. [root@controller ~]# mv /etc/yum.repos.d/*.repo /etc/yum.repos.d/bak/
  3. [root@controller ~]# cat <<EOF > /etc/yum.repos.d/cloudcs.repo
  4. [highavailability]
  5. name=CentOS Stream 8 - HighAvailability
  6. baseurl=https://mirrors.aliyun.com/centos/8-stream/HighAvailability/x86_64/os/
  7. gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-centosofficial
  8. gpgcheck=1
  9. repo_gpgcheck=0
  10. metadata_expire=6h
  11. countme=1
  12. enabled=1
  13. [nfv]
  14. name=CentOS Stream 8 - NFV
  15. baseurl=https://mirrors.aliyun.com/centos/8-stream/NFV/x86_64/os/
  16. gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-centosofficial
  17. gpgcheck=1
  18. repo_gpgcheck=0
  19. metadata_expire=6h
  20. countme=1
  21. enabled=1
  22. [rt]
  23. name=CentOS Stream 8 - RT
  24. baseurl=https://mirrors.aliyun.com/centos/8-stream/RT/x86_64/os/
  25. gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-centosofficial
  26. gpgcheck=1
  27. repo_gpgcheck=0
  28. metadata_expire=6h
  29. countme=1
  30. enabled=1
  31. [resilientstorage]
  32. name=CentOS Stream 8 - ResilientStorage
  33. baseurl=https://mirrors.aliyun.com/centos/8-stream/ResilientStorage/x86_64/os/
  34. gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-centosofficial
  35. gpgcheck=1
  36. repo_gpgcheck=0
  37. metadata_expire=6h
  38. countme=1
  39. enabled=1
  40. [extras-common]
  41. name=CentOS Stream 8 - Extras packages
  42. baseurl=https://mirrors.aliyun.com/centos/8-stream/extras/x86_64/extras-common/
  43. gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-SIG-Extras-SHA512
  44. gpgcheck=1
  45. repo_gpgcheck=0
  46. metadata_expire=6h
  47. countme=1
  48. enabled=1
  49. [extras]
  50. name=CentOS Stream $releasever - Extras
  51. mirrorlist=http://mirrorlist.centos.org/?release=$stream&arch=$basearch&repo=extras&infra=$infra
  52. #baseurl=http://mirror.centos.org/$contentdir/$stream/extras/$basearch/os/
  53. baseurl=https://mirrors.aliyun.com/centos/8-stream/extras/x86_64/os/
  54. gpgcheck=1
  55. enabled=1
  56. gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-centosofficial
  57. [centos-ceph-pacific]
  58. name=CentOS - Ceph Pacific
  59. baseurl=https://mirrors.aliyun.com/centos/8-stream/storage/x86_64/ceph-pacific/
  60. gpgcheck=0
  61. enabled=1
  62. gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-SIG-Storage
  63. [centos-rabbitmq-38]
  64. name=CentOS-8 - RabbitMQ 38
  65. baseurl=https://mirrors.aliyun.com/centos/8-stream/messaging/x86_64/rabbitmq-38/
  66. gpgcheck=1
  67. enabled=1
  68. gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-SIG-Messaging
  69. [centos-nfv-openvswitch]
  70. name=CentOS Stream 8 - NFV OpenvSwitch
  71. baseurl=https://mirrors.aliyun.com/centos/8-stream/nfv/x86_64/openvswitch-2/
  72. gpgcheck=1
  73. enabled=1
  74. gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-SIG-NFV
  75. module_hotfixes=1
  76. [baseos]
  77. name=CentOS Stream 8 - BaseOS
  78. baseurl=https://mirrors.aliyun.com/centos/8-stream/BaseOS/x86_64/os/
  79. gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-centosofficial
  80. gpgcheck=1
  81. repo_gpgcheck=0
  82. metadata_expire=6h
  83. countme=1
  84. enabled=1
  85. [appstream]
  86. name=CentOS Stream 8 - AppStream
  87. baseurl=https://mirrors.aliyun.com/centos/8-stream/AppStream/x86_64/os/
  88. gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-centosofficial
  89. gpgcheck=1
  90. repo_gpgcheck=0
  91. metadata_expire=6h
  92. countme=1
  93. enabled=1
  94. [centos-openstack-victoria]
  95. name=CentOS 8 - OpenStack victoria
  96. baseurl=https://mirrors.aliyun.com/centos/8-stream/cloud/x86_64/openstack-victoria/
  97. #baseurl=https://repo.huaweicloud.com/centos/8-stream/cloud/x86_64/openstack-yoga/
  98. gpgcheck=1
  99. enabled=1
  100. gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-SIG-Cloud
  101. module_hotfixes=1
  102. [powertools]
  103. name=CentOS Stream 8 - PowerTools
  104. #mirrorlist=http://mirrorlist.centos.org/?release=$stream&arch=$basearch&repo=PowerTools&infra=$infra
  105. baseurl=https://mirrors.aliyun.com/centos/8-stream/PowerTools/x86_64/os/
  106. gpgcheck=1
  107. enabled=1
  108. gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-centosofficial
  109. EOF
  110. [root@controller ~]# ls /etc/yum.repos.d/
  111. bak  cloudcs.repo
  112. [root@controller ~]# yum clean all
  113. 27 files removed
  114. [root@controller ~]# yum repolist all
  115. repo id                           repo name                                   status
  116. appstream                         CentOS Stream 8 - AppStream                 enabled
  117. baseos                            CentOS Stream 8 - BaseOS                    enabled
  118. centos-ceph-pacific               CentOS - Ceph Pacific                       enabled
  119. centos-nfv-openvswitch            CentOS Stream 8 - NFV OpenvSwitch           enabled
  120. centos-openstack-victoria         CentOS 8 - OpenStack victoria               enabled
  121. centos-rabbitmq-38                CentOS-8 - RabbitMQ 38                      enabled
  122. extras                            CentOS Stream  - Extras                     enabled
  123. extras-common                     CentOS Stream 8 - Extras packages           enabled
  124. highavailability                  CentOS Stream 8 - HighAvailability          enabled
  125. nfv                               CentOS Stream 8 - NFV                       enabled
  126. powertools                        CentOS Stream 8 - PowerTools                enabled
  127. resilientstorage                  CentOS Stream 8 - ResilientStorage          enabled
  128. rt                                CentOS Stream 8 - RT                        enabled
  129. [root@controller ~]#
复制代码


  • 盘算节点
  1. [root@computer ~]# mkdir /etc/yum.repos.d/bak
  2. [root@computer ~]# mv /etc/yum.repos.d/*.repo /etc/yum.repos.d/bak/
  3. ### 通过远程拷贝方式将 控制节点 yum 文件,拉取到计算节点
  4. [root@compute ~]# scp controller:/etc/yum.repos.d/cloudcs.repo /etc/yum.repos.d/
  5. The authenticity of host 'controller (192.168.100.128)' can't be established.
  6. ECDSA key fingerprint is SHA256:0wisA68htG476jVggvEX5wWHxAK9nmDDWXzLAmwP8as.
  7. Are you sure you want to continue connecting (yes/no/[fingerprint])? yes
  8. Warning: Permanently added 'controller,192.168.100.128' (ECDSA) to the list of known hosts.
  9. root@controller's password:
  10. cloudcs.repo   
  11. [root@computer ~]#
  12. [root@computer ~]# ls /etc/yum.repos.d/
  13. bak  cloudcs.repo
  14. [root@computer ~]# yum clean all
  15. 27 files removed
  16. [root@computer ~]# yum repolist  all
  17. repo id                           repo name                                   status
  18. appstream                         CentOS Stream 8 - AppStream                 enabled
  19. baseos                            CentOS Stream 8 - BaseOS                    enabled
  20. centos-ceph-pacific               CentOS - Ceph Pacific                       enabled
  21. centos-nfv-openvswitch            CentOS Stream 8 - NFV OpenvSwitch           enabled
  22. centos-openstack-victoria         CentOS 8 - OpenStack victoria               enabled
  23. centos-rabbitmq-38                CentOS-8 - RabbitMQ 38                      enabled
  24. extras                            CentOS Stream  - Extras                     enabled
  25. extras-common                     CentOS Stream 8 - Extras packages           enabled
  26. highavailability                  CentOS Stream 8 - HighAvailability          enabled
  27. nfv                               CentOS Stream 8 - NFV                       enabled
  28. powertools                        CentOS Stream 8 - PowerTools                enabled
  29. resilientstorage                  CentOS Stream 8 - ResilientStorage          enabled
  30. rt                                CentOS Stream 8 - RT                        enabled
  31. [root@computer ~]#
复制代码
安装配置

控制节点安装 PackStack 工具

  1. [root@controller ~]# yum install -y openstack-packstack
  2. ..............
  3.   rubygems-2.7.6.3-110.module_el8.6.0+1187+541216eb.noarch                     
  4.   yaml-cpp-0.6.3-1.el8.x86_64                                                   
  5. Complete!
复制代码
生成应答文件

  1. [root@controller ~]# packstack --help | grep ans
  2.   --gen-answer-file=GEN_ANSWER_FILE
  3.                         Generate a template of an answer file.
  4.   --validate-answer-file=VALIDATE_ANSWER_FILE
  5.                         Check if answerfile contains unexpected options.
  6.   --answer-file=ANSWER_FILE
  7.                         answerfile will also be generated and should be used
  8.   -o, --options         Print details on options available in answer file(rst
  9.                         Packstack a second time with the same answer file and
  10.                         attribute where "y" means an account is disabled.
  11.     --manila-netapp-transport-type=MANILA_NETAPP_TRANSPORT_TYPE
  12.                         The transport protocol used when communicating with
  13. [root@controller ~]# packstack --gen-answer-file=memeda.txt   ## 指定文件路径名称
  14. Packstack changed given value  to required value /root/.ssh/id_rsa.pub
  15. Additional information:
  16. * Parameter CONFIG_NEUTRON_L2_AGENT: You have chosen OVN Neutron backend. Note that this backend does not support the VPNaaS plugin. Geneve will be used as the encapsulation method for tenant networks
复制代码
编辑应答文件

   留意设置参数 CONFIG_NEUTRON_OVN_BRIDGE_IFACES ,OVN 会自动创建 br-ex 假造互换机并使 ens160 桥接到 br-ex 假造互换机上,将来云主机通过 br-ex 可以连通外部网络。
  1. [root@controller ~]# cat /etc/redhat-release
  2. CentOS Stream release 8
  3. [root@controller ~]# vi memeda.txt
  4. 92 # Server on which to install OpenStack services specific to the
  5. 93 # controller role (for example, API servers or dashboard).
  6. 94 CONFIG_CONTROLLER_HOST=192.168.129.185
  7. 95
  8. ### 要安装计算服务的服务器。我们在计算和控制节点都安装,复用
  9. 96 # List the servers on which to install the Compute service.
  10. 97 CONFIG_COMPUTE_HOSTS=192.168.129.185,192.168.129.186
  11. ### 身份验证密码
  12. 322 # Password to use for the Identity service 'admin' user.
  13. 323 CONFIG_KEYSTONE_ADMIN_PW=redhat
  14. ### 创建测试用例,关闭
  15. 1168 # Specify 'y' to provision for demo usage and testing. ['y', 'n']
  16. 1169 CONFIG_PROVISION_DEMO=n
  17. ### 编排组件
  18. 59 # Specify 'y' to install OpenStack Orchestration (heat). ['y', 'n        ']
  19. 60 CONFIG_HEAT_INSTALL=y
  20. ### 桥接,映射射到自己控制节点的网卡
  21. 907 # ovn-bridge-mappings=ext-net:br-ex --os-neutron-ovn-bridge-
  22. 908 # interfaces=br-ex:eth0
  23. 909 CONFIG_NEUTRON_OVN_BRIDGE_IFACES=br-ex:ens160   -------注意自己网卡
复制代码
执行应答文件进行安装

  1. ### 大概需要等待30分钟
  2. [root@controller ~]# packstack --answer-file=memeda.txt
  3. Welcome to the Packstack setup utility
  4. The installation log file is available at: /var/tmp/packstack/20230806-151155-lamn_upk/openstack-setup.log
  5. Installing:
  6. Clean Up                                             [ DONE ]
  7. Discovering ip protocol version                      [ DONE ]
  8. root@192.168.129.186's password:          ### 输入两台节点密码
  9. root@192.168.129.185's password:          ### 输入两台节点密码
  10. Setting up ssh keys                                  [ DONE ]
  11. Preparing servers                                    [ DONE ]
  12. Pre installing Puppet and discovering hosts' details [ DONE ]
  13. Preparing pre-install entries                        [ DONE ]
  14. Setting up CACERT                                    [ DONE ]
  15. Preparing AMQP entries                               [ DONE ]
  16. Preparing MariaDB entries                            [ DONE ]
  17. Fixing Keystone LDAP config parameters to be undef if empty[ DONE ]
  18. Preparing Keystone entries                           [ DONE ]
  19. Preparing Glance entries                             [ DONE ]
  20. Checking if the Cinder server has a cinder-volumes vg[ DONE ]
  21. Preparing Cinder entries                             [ DONE ]
  22. Preparing Nova API entries                           [ DONE ]
  23. Creating ssh keys for Nova migration                 [ DONE ]
  24. Gathering ssh host keys for Nova migration           [ DONE ]
  25. Preparing Nova Compute entries                       [ DONE ]
  26. Preparing Nova Scheduler entries                     [ DONE ]
  27. Preparing Nova VNC Proxy entries                     [ DONE ]
  28. Preparing OpenStack Network-related Nova entries     [ DONE ]
  29. Preparing Nova Common entries                        [ DONE ]
  30. Preparing Neutron API entries                        [ DONE ]
  31. Preparing Neutron L3 entries                         [ DONE ]
  32. Preparing Neutron L2 Agent entries                   [ DONE ]
  33. Preparing Neutron DHCP Agent entries                 [ DONE ]
  34. Preparing Neutron Metering Agent entries             [ DONE ]
  35. Checking if NetworkManager is enabled and running    [ DONE ]
  36. Preparing OpenStack Client entries                   [ DONE ]
  37. Preparing Horizon entries                            [ DONE ]
  38. Preparing Swift builder entries                      [ DONE ]
  39. Preparing Swift proxy entries                        [ DONE ]
  40. Preparing Swift storage entries                      [ DONE ]
  41. Preparing Heat entries                               [ DONE ]
  42. Preparing Heat CloudFormation API entries            [ DONE ]
  43. Preparing Gnocchi entries                            [ DONE ]
  44. Preparing Redis entries                              [ DONE ]
  45. Preparing Ceilometer entries                         [ DONE ]
  46. Preparing Aodh entries                               [ DONE ]
  47. Preparing Puppet manifests                           [ DONE ]
  48. Copying Puppet modules and manifests                 [ DONE ]
  49. Applying 192.168.129.185_controller.pp
  50. 192.168.129.185_controller.pp:                       [ DONE ]            
  51. Applying 192.168.129.185_network.pp
  52. 192.168.129.185_network.pp:                          [ DONE ]         
  53. Applying 192.168.129.186_compute.pp
  54. Applying 192.168.129.185_compute.pp
  55. 192.168.129.185_compute.pp:                          [ DONE ]         
  56. 192.168.129.186_compute.pp:                          [ DONE ]         
  57. Applying Puppet manifests                            [ DONE ]
  58. Finalizing                                           [ DONE ]
  59. **** Installation completed successfully ******
  60. Additional information:
  61. * Parameter CONFIG_NEUTRON_L2_AGENT: You have chosen OVN Neutron backend. Note that this backend does not support the VPNaaS plugin. Geneve will be used as the encapsulation method for tenant networks
  62. * Time synchronization installation was skipped. Please note that unsynchronized time on server instances might be problem for some OpenStack components.
  63. * File /root/keystonerc_admin has been created on OpenStack client host 192.168.129.185. To use the command line tools you need to source the file.
  64. * To access the OpenStack Dashboard browse to http://192.168.129.185/dashboard .
  65. Please, find your login credentials stored in the keystonerc_admin in your home directory.
  66. * The installation log file is available at: /var/tmp/packstack/20230806-151155-lamn_upk/openstack-setup.log
  67. * The generated manifests are available at: /var/tmp/packstack/20230806-151155-lamn_upk/manifests
复制代码
完成安装

测试登录

   打开欣赏器,访问 http://192.168.129.185/dashboard
  账号:admin
  密码:redhat
  

开启network



  • 控制节点
   因关闭 NetworkManager 服务,会导致节点重启后网络无法自动启用,也会导致 openstack 组件异常,以是启用 network 来替换 NetworkManager 服务。
  1. [root@controller ~]# systemctl enable network
  2. network.service is not a native service, redirecting to systemd-sysv-install.
  3. Executing: /usr/lib/systemd/systemd-sysv-install enable network
  4. [root@controller ~]# systemctl start  network
复制代码


  • 盘算节点
  1. [root@computer ~]# systemctl enable network
  2. network.service is not a native service, redirecting to systemd-sysv-install.
  3. Executing: /usr/lib/systemd/systemd-sysv-install enable network
  4. [root@computer ~]# systemctl start  network
复制代码


  • 补充
   

  • 在使用 Packstack 工具搭建 OpenStack 时需要关闭 NetworkManager 而开启并使用network,重要是因为OpenStack 环境对网络的要求和配置与NetworkManager的工作方式不太适配NetworkManager是一个用于图形和命令行环境下的网络管理工具,旨在为桌面用户提供便捷的网络配置。它能够处置惩罚各种网络范例,包罗有线、无线、蓝牙等,并根据网络环境进行动态管理。然而,在 OpenStack 环境中,网络需求通常更加复杂,需要更多的控制和自界说。
  • OpenStack是一个用于搭建云底子办法的开源平台,涉及到多个假造机、网络、存储等组件的配置和管理。在 OpenStack 环境中,网络通常需要进行高度定制和精细控制,以满意不同的租户和应用场景的需求。这与 NetworkManager 提供的自动化和动态网络管理方式不太吻合。
  • 而采用传统的 network 服务,您可以更正确地配置和管理网络接口、IP 地址、路由等参数以满意OpenStack环境中的复杂网络需求。这对于创建假造网络、隔离租户、实现网络互通等 OpenStack 功能非常重要。
  • 因此,为了确保 OpenStack 环境的网络配置能够正确地满意其需求,通常会发起在搭建OpenStack 时关闭 NetworkManager,使用传统的 network 服务来进行网络配置。这样可以更好地控制和调整网络参数,以确保 OpenStack 网络的稳固性和性能
  

  • End

免责声明:如果侵犯了您的权益,请联系站长,我们会及时删除侵权内容,谢谢合作!更多信息从访问主页:qidao123.com:ToB企服之家,中国第一个企服评测及商务社交产业平台。

本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有账号?立即注册

x
回复

使用道具 举报

0 个回复

倒序浏览

快速回复

您需要登录后才可以回帖 登录 or 立即注册

本版积分规则

我可以不吃啊

金牌会员
这个人很懒什么都没写!

标签云

快速回复 返回顶部 返回列表