OpenStack(Y) Packstack双节点部署
一、架构
节点 |
功能 |
IP |
软件 |
controller |
控制节点、网络节点、块存储节点 |
192.168.80.31/24 |
CentOS Stream 9、Openstack Yoga |
compute |
计算节点 |
192.168.80.32/24 |
CentOS Stream 9、Openstack Yoga |
二、OpenStack(Y) AllinOne 部署
#两节点设置开启虚拟化功能
# 前提:ip、主机名、hosts、关闭firewalld和selinux、dnf源 [root@controller ~]# cat /etc/yum.repos.d/cloud.repo [highavailability] name=CentOS Stream $releasever- HighAvailability baseurl=https://mirrors.aliyun.com/centos-stream/9-stream/HighAvailability/x86_64/os/ gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-centosofficial gpgcheck=1 repo_gpgcheck=0 metadata_expire=6h countme=1 enabled=1 [nfv] name=CentOS Stream $releasever- NFV baseurl=https://mirrors.aliyun.com/centos-stream/9-stream/NFV/x86_64/os/ gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-centosofficial gpgcheck=1 repo_gpgcheck=0 metadata_expire=6h countme=1 enabled=1 [rt] name=CentOS Stream $releasever- RT baseurl=https://mirrors.aliyun.com/centos-stream/9-stream/RT/x86_64/os/ gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-centosofficial gpgcheck=1 repo_gpgcheck=0 metadata_expire=6h countme=1 enabled=1 [resilientstorage] name=CentOS Stream $releasever- ResilientStorage baseurl=https://mirrors.aliyun.com/centos-stream/9-stream/ResilientStorage/x86_64/os/ gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-centosofficial gpgcheck=1 repo_gpgcheck=0 metadata_expire=6h countme=1 enabled=1 [extras-common] name=CentOS Stream $releasever- Extras packages baseurl=https://mirrors.aliyun.com/centos-stream/SIGs/9-stream/extras/x86_64/extras-common/ gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-SIG-Extras-SHA512 gpgcheck=1 repo_gpgcheck=0 metadata_expire=6h countme=1 enabled=1 [baseos] name=CentOS Stream $releasever- BaseOS baseurl=https://mirrors.aliyun.com/centos-stream/9-stream/BaseOS/x86_64/os/ gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-centosofficial gpgcheck=1 repo_gpgcheck=0 metadata_expire=6h countme=1 enabled=1 [appstream] name=CentOS Stream $releasever- AppStream baseurl=https://mirrors.aliyun.com/centos-stream/9-stream/AppStream/x86_64/os/ gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-centosofficial gpgcheck=1 repo_gpgcheck=0 metadata_expire=6h countme=1 enabled=1 [crb] name=CentOS Stream $releasever- CRB baseurl=https://mirrors.aliyun.com/centos-stream/9-stream/CRB/x86_64/os/ gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-centosofficial gpgcheck=1 repo_gpgcheck=0 metadata_expire=6h countme=1 enabled=1
[root@controller ~]# dnf clean all && dnf makecache 49 文件已删除 CentOS Stream 9- HighAvailability CentOS Stream 9- NFV CentOS Stream 9- RT CentOS Stream 9- ResilientStorage CentOS Stream 9- Extras packages CentOS Stream 9- BaseOS CentOS Stream 9- AppStream CentOS Stream 9- CRB 元数据缓存已建立。 [root@controller ~]# dnf update -y 。。。。。。 验证 : rsyslog-logrotate-8.2102.0-106.el9.x86_64 463/463
已升级: NetworkManager-1:1.45.9-1.el9.x86_64 NetworkManager-libnm-1:1.45.9-1.el9.x86_64 NetworkManager-team-1:1.45.9-1.el9.x86_64 NetworkManager-tui-1:1.45.9-1.el9.x86_64 acl-2.3.1-4.el9.x86_64 alternatives-1.24-1.el9.x86_64 audit-3.1.2-2.el9.x86_64 audit-libs-3.1.2-2.el9.x86_64 authselect-1.2.6-2.el9.x86_64 authselect-libs-1.2.6-2.el9.x86_64 c-ares-1.19.1-1.el9.x86_64 ca-certificates-2023.2.60_v7.0.306-90.1.el9.noarch centos-gpg-keys-9.0-23.el9.noarch centos-stream-release-9.0-23.el9.noarch centos-stream-repos-9.0-23.el9.noarch coreutils-8.32-34.el9.x86_64 coreutils-common-8.32-34.el9.x86_64 cronie-1.5.7-10.el9.x86_64 cronie-anacron-1.5.7-10.el9.x86_64 crypto-policies-20231113-1.gite9247c2.el9.noarch crypto-policies-scripts-20231113-1.gite9247c2.el9.noarch cryptsetup-libs-2.6.0-3.el9.x86_64 curl-7.76.1-28.el9.x86_64 dbus-1:1.12.20-8.el9.x86_64 dbus-common-1:1.12.20-8.el9.noarch dbus-libs-1:1.12.20-8.el9.x86_64 device-mapper-9:1.02.195-3.el9.x86_64 device-mapper-event-9:1.02.195-3.el9.x86_64 device-mapper-event-libs-9:1.02.195-3.el9.x86_64 device-mapper-libs-9:1.02.195-3.el9.x86_64 device-mapper-persistent-data-1.0.6-1.el9.x86_64 dnf-4.14.0-9.el9.noarch dnf-data-4.14.0-9.el9.noarch dnf-plugins-core-4.3.0-12.el9.noarch dracut-057-52.git20231207.el9.x86_64 dracut-config-rescue-057-52.git20231207.el9.x86_64 dracut-network-057-52.git20231207.el9.x86_64 dracut-squash-057-52.git20231207.el9.x86_64 e2fsprogs-1.46.5-5.el9.x86_64 e2fsprogs-libs-1.46.5-5.el9.x86_64 elfutils-default-yama-scope-0.190-2.el9.noarch elfutils-libelf-0.190-2.el9.x86_64 elfutils-libs-0.190-2.el9.x86_64 ethtool-2:6.2-1.el9.x86_64 file-5.39-14.el9.x86_64 file-libs-5.39-14.el9.x86_64 findutils-1:4.8.0-6.el9.x86_64 firewalld-1.2.5-1.el9.noarch firewalld-filesystem-1.2.5-1.el9.noarch fuse-common-3.10.2-6.el9.x86_64 gettext-0.21-8.el9.x86_64 gettext-libs-0.21-8.el9.x86_64 glib2-2.68.4-12.el9.x86_64 glibc-2.34-94.el9.x86_64 glibc-common-2.34-94.el9.x86_64 glibc-gconv-extra-2.34-94.el9.x86_64 glibc-langpack-en-2.34-94.el9.x86_64 glibc-langpack-zh-2.34-94.el9.x86_64 gmp-1:6.2.0-13.el9.x86_64 gnupg2-2.3.3-4.el9.x86_64 gnutls-3.8.2-2.el9.x86_64 google-noto-cjk-fonts-common-20230817-2.el9.noarch google-noto-sans-cjk-ttc-fonts-20230817-2.el9.noarch google-noto-serif-cjk-ttc-fonts-20230817-2.el9.noarch grub2-common-1:2.06-68.el9.noarch grub2-pc-1:2.06-68.el9.x86_64 grub2-pc-modules-1:2.06-68.el9.noarch grub2-tools-1:2.06-68.el9.x86_64 grub2-tools-minimal-1:2.06-68.el9.x86_64 grubby-8.40-63.el9.x86_64 hwdata-0.348-9.12.el9.noarch iproute-6.2.0-5.el9.x86_64 iproute-tc-6.2.0-5.el9.x86_64 ipset-7.11-8.el9.x86_64 ipset-libs-7.11-8.el9.x86_64 iputils-20210202-9.el9.x86_64 irqbalance-2:1.9.2-3.el9.x86_64 iwl100-firmware-39.31.5.1-141.el9.noarch iwl1000-firmware-1:39.31.5.1-141.el9.noarch iwl105-firmware-18.168.6.1-141.el9.noarch iwl135-firmware-18.168.6.1-141.el9.noarch iwl2000-firmware-18.168.6.1-141.el9.noarch iwl2030-firmware-18.168.6.1-141.el9.noarch iwl3160-firmware-1:25.30.13.0-141.el9.noarch iwl5000-firmware-8.83.5.1_1-141.el9.noarch iwl5150-firmware-8.24.2.2-141.el9.noarch iwl6000g2a-firmware-18.168.6.1-141.el9.noarch iwl6050-firmware-41.28.5.1-141.el9.noarch iwl7260-firmware-1:25.30.13.0-141.el9.noarch kbd-2.4.0-9.el9.x86_64 kbd-misc-2.4.0-9.el9.noarch kernel-tools-5.14.0-402.el9.x86_64 kernel-tools-libs-5.14.0-402.el9.x86_64 kexec-tools-2.0.27-5.el9.x86_64 kmod-28-9.el9.x86_64 kmod-libs-28-9.el9.x86_64 kpartx-0.8.7-22.el9.x86_64 krb5-libs-1.21.1-1.el9.x86_64 less-590-2.el9.x86_64 libacl-2.3.1-4.el9.x86_64 libblkid-2.37.4-15.el9.x86_64 libbpf-2:1.2.0-1.el9.x86_64 libcap-2.48-9.el9.x86_64 libcom_err-1.46.5-5.el9.x86_64 libcurl-7.76.1-28.el9.x86_64 libdnf-0.69.0-7.el9.x86_64 libdrm-2.4.117-1.el9.x86_64 libeconf-0.4.1-3.el9.x86_64 libedit-3.1-38.20210216cvs.el9.x86_64 libfastjson-0.99.9-5.el9.x86_64 libfdisk-2.37.4-15.el9.x86_64 libffi-3.4.2-8.el9.x86_64 libfido2-1.13.0-2.el9.x86_64 libgcc-11.4.1-2.3.el9.x86_64 libgcrypt-1.10.0-10.el9.x86_64 libgomp-11.4.1-2.3.el9.x86_64 libibverbs-48.0-1.el9.x86_64 libkcapi-1.4.0-2.el9.x86_64 libkcapi-hmaccalc-1.4.0-2.el9.x86_64 libksba-1.5.1-6.el9.x86_64 libldb-2.7.2-2.el9.x86_64 libmount-2.37.4-15.el9.x86_64 libnghttp2-1.43.0-5.el9.1.x86_64 libselinux-3.6-1.el9.x86_64 libselinux-utils-3.6-1.el9.x86_64 libsemanage-3.6-1.el9.x86_64 libsepol-3.6-1.el9.x86_64 libsmartcols-2.37.4-15.el9.x86_64 libsolv-0.7.24-2.el9.x86_64 libss-1.46.5-5.el9.x86_64 libssh-0.10.4-11.el9.x86_64 libssh-config-0.10.4-11.el9.noarch libsss_certmap-2.9.3-2.el9.x86_64 libsss_idmap-2.9.3-2.el9.x86_64 libsss_nss_idmap-2.9.3-2.el9.x86_64 libsss_sudo-2.9.3-2.el9.x86_64 libstdc++-11.4.1-2.3.el9.x86_64 libtalloc-2.4.0-2.el9.x86_64 libtdb-1.4.8-2.el9.x86_64 libtevent-0.14.1-2.el9.x86_64 libtirpc-1.3.3-2.el9.x86_64 libuser-0.63-13.el9.x86_64 libuuid-2.37.4-15.el9.x86_64 libxml2-2.9.13-5.el9.x86_64 linux-firmware-20231030-141.el9.noarch linux-firmware-whence-20231030-141.el9.noarch logrotate-3.18.0-8.el9.x86_64 lshw-B.02.19.2-10.el9.x86_64 lua-libs-5.4.4-4.el9.x86_64 lvm2-9:2.03.21-3.el9.x86_64 lvm2-libs-9:2.03.21-3.el9.x86_64 microcode_ctl-4:20230808-2.el9.noarch ncurses-6.2-10.20210508.el9.x86_64 ncurses-base-6.2-10.20210508.el9.noarch ncurses-libs-6.2-10.20210508.el9.x86_64 nettle-3.9.1-1.el9.x86_64 nftables-1:1.0.4-11.el9.x86_64 numactl-libs-2.0.16-3.el9.x86_64 open-vm-tools-12.3.5-1.el9.x86_64 openldap-2.6.6-1.el9.x86_64 openldap-compat-2.6.6-1.el9.x86_64 openssh-8.7p1-35.el9.x86_64 openssh-clients-8.7p1-35.el9.x86_64 openssh-server-8.7p1-35.el9.x86_64 openssl-1:3.0.7-25.el9.x86_64 openssl-libs-1:3.0.7-25.el9.x86_64 os-prober-1.77-10.el9.x86_64 p11-kit-0.25.3-2.el9.x86_64 p11-kit-trust-0.25.3-2.el9.x86_64 pam-1.5.1-16.el9.x86_64 pcre2-10.40-4.el9.x86_64 pcre2-syntax-10.40-4.el9.noarch policycoreutils-3.6-1.el9.x86_64 procps-ng-3.3.17-13.el9.x86_64 python-unversioned-command-3.9.18-1.el9.noarch python3-3.9.18-1.el9.x86_64 python3-dateutil-1:2.8.1-7.el9.noarch python3-dnf-4.14.0-9.el9.noarch python3-dnf-plugins-core-4.3.0-12.el9.noarch python3-firewall-1.2.5-1.el9.noarch python3-hawkey-0.69.0-7.el9.x86_64 python3-libdnf-0.69.0-7.el9.x86_64 python3-libs-3.9.18-1.el9.x86_64 python3-libselinux-3.6-1.el9.x86_64 python3-nftables-1:1.0.4-11.el9.x86_64 python3-pip-wheel-21.2.3-7.el9.noarch python3-rpm-4.16.1.3-29.el9.x86_64 python3-setuptools-53.0.0-12.el9.noarch python3-setuptools-wheel-53.0.0-12.el9.noarch rpm-4.16.1.3-29.el9.x86_64 rpm-build-libs-4.16.1.3-29.el9.x86_64 rpm-libs-4.16.1.3-29.el9.x86_64 rpm-plugin-audit-4.16.1.3-29.el9.x86_64 rpm-plugin-selinux-4.16.1.3-29.el9.x86_64 rpm-plugin-systemd-inhibit-4.16.1.3-29.el9.x86_64 rpm-sign-libs-4.16.1.3-29.el9.x86_64 rsyslog-8.2310.0-3.el9.x86_64 rsyslog-logrotate-8.2310.0-3.el9.x86_64 selinux-policy-38.1.29-1.el9.noarch selinux-policy-targeted-38.1.29-1.el9.noarch setup-2.13.7-9.el9.noarch shadow-utils-2:4.9-8.el9.x86_64 squashfs-tools-4.4-10.git1.el9.x86_64 sssd-client-2.9.3-2.el9.x86_64 sssd-common-2.9.3-2.el9.x86_64 sssd-kcm-2.9.3-2.el9.x86_64 sudo-1.9.5p2-9.el9.x86_64 systemd-252-21.el9.x86_64 systemd-libs-252-21.el9.x86_64 systemd-pam-252-21.el9.x86_64 systemd-rpm-macros-252-21.el9.noarch systemd-udev-252-21.el9.x86_64 tar-2:1.34-6.el9.x86_64 tpm2-tss-3.2.2-2.el9.x86_64 tzdata-2023c-1.el9.noarch util-linux-2.37.4-15.el9.x86_64 util-linux-core-2.37.4-15.el9.x86_64 vim-minimal-2:8.2.2637-20.el9.x86_64 which-2.21-29.el9.x86_64 xfsprogs-6.3.0-1.el9.x86_64 yum-4.14.0-9.el9.noarch zlib-1.2.11-41.el9.x86_64 已安装: binutils-2.35.2-42.el9.x86_64 binutils-gold-2.35.2-42.el9.x86_64 elfutils-debuginfod-client-0.190-2.el9.x86_64 freetype-2.10.4-9.el9.x86_64 fuse3-3.10.2-6.el9.x86_64 fuse3-libs-3.10.2-6.el9.x86_64 graphite2-1.3.14-9.el9.x86_64 grub2-tools-efi-1:2.06-68.el9.x86_64 grub2-tools-extra-1:2.06-68.el9.x86_64 harfbuzz-2.7.4-10.el9.x86_64 jq-1.6-16.el9.x86_64 kbd-legacy-2.4.0-9.el9.noarch kernel-5.14.0-402.el9.x86_64 kernel-core-5.14.0-402.el9.x86_64 kernel-modules-5.14.0-402.el9.x86_64 kernel-modules-core-5.14.0-402.el9.x86_64 libpng-2:1.6.37-12.el9.x86_64 oniguruma-6.9.6-1.el9.5.x86_64 systemd-boot-unsigned-252-21.el9.x86_64
完毕! [root@controller ~]# dnf config-manager –enable crb Repository highavailability is listed more than once in the configuration Repository nfv is listed more than once in the configuration Repository rt is listed more than once in the configuration Repository resilientstorage is listed more than once in the configuration Repository extras-common is listed more than once in the configuration Repository baseos is listed more than once in the configuration Repository appstream is listed more than once in the configuration Repository crb is listed more than once in the configuration [root@controller ~]# dnf list |grep openstack Repository highavailability is listed more than once in the configuration Repository nfv is listed more than once in the configuration Repository rt is listed more than once in the configuration Repository resilientstorage is listed more than once in the configuration Repository extras-common is listed more than once in the configuration Repository baseos is listed more than once in the configuration Repository appstream is listed more than once in the configuration Repository crb is listed more than once in the configuration centos-release-openstack-antelope.noarch 1-4.el9s extras-common centos-release-openstack-bobcat.noarch 1-1.el9s extras-common centos-release-openstack-yoga.noarch 1-4.el9s extras-common centos-release-openstack-zed.noarch 1-4.el9s extras-common centos-release-openstackclient-xena.noarch 1-1.el9s extras-common ha-openstack-support.x86_64 4.10.0-28.el9 appstream [root@controller ~]# dnf install -y centos-release-openstack-yoga.noarch Repository highavailability is listed more than once in the configuration Repository nfv is listed more than once in the configuration Repository rt is listed more than once in the configuration Repository resilientstorage is listed more than once in the configuration Repository extras-common is listed more than once in the configuration Repository baseos is listed more than once in the configuration Repository appstream is listed more than once in the configuration Repository crb is listed more than once in the configuration 上次元数据过期检查:0:00:20 前,执行于 2024年01月09日 星期二 20时31分48秒。 依赖关系解决。 ========================================================================================================================== 软件包 架构 版本 仓库 大小 ========================================================================================================================== 安装: centos-release-openstack-yoga noarch 1-4.el9s extras-common 8.0 k 安装依赖关系: centos-release-ceph-pacific noarch 1.0-2.el9s extras-common 7.4 k centos-release-cloud noarch 1-1.el9s extras-common 7.9 k centos-release-messaging noarch 1-4.el9s extras-common 8.4 k centos-release-nfv-common noarch 1-5.el9s extras-common 7.8 k centos-release-nfv-openvswitch noarch 1-5.el9s extras-common 7.5 k centos-release-rabbitmq-38 noarch 1-4.el9s extras-common 7.4 k centos-release-storage-common noarch 2-5.el9s extras-common 8.3 k
事务概要 ========================================================================================================================== 安装 8 软件包
总下载:63 k 安装大小:12 k 下载软件包: (1/8): centos-release-cloud-1-1.el9s.noarch.rpm 54 kB/s | 7.9 kB 00:00 (2/8): centos-release-ceph-pacific-1.0-2.el9s.noarch.rpm 45 kB/s | 7.4 kB 00:00 (3/8): centos-release-messaging-1-4.el9s.noarch.rpm 51 kB/s | 8.4 kB 00:00 (4/8): centos-release-nfv-openvswitch-1-5.el9s.noarch.rpm 163 kB/s | 7.5 kB 00:00 (5/8): centos-release-nfv-common-1-5.el9s.noarch.rpm 112 kB/s | 7.8 kB 00:00 (6/8): centos-release-rabbitmq-38-1-4.el9s.noarch.rpm 94 kB/s | 7.4 kB 00:00 (7/8): centos-release-openstack-yoga-1-4.el9s.noarch.rpm 64 kB/s | 8.0 kB 00:00 (8/8): centos-release-storage-common-2-5.el9s.noarch.rpm 67 kB/s | 8.3 kB 00:00 ————————————————————————————————————————– 总计 91 kB/s | 63 kB 00:00 CentOS Stream 9 – Extras packages 2.1 MB/s | 2.1 kB 00:00 导入 GPG 公钥 0x1D997668: Userid: “CentOS Extras SIG (https://wiki.centos.org/SpecialInterestGroup) <security@centos.org>” 指纹: 363F C097 2F64 B699 AED3 968E 1FF6 A217 1D99 7668 来自: /etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-SIG-Extras-SHA512 导入公钥成功 运行事务检查 事务检查成功。 运行事务测试 事务测试成功。 运行事务 准备中 : 1/1 安装 : centos-release-storage-common-2-5.el9s.noarch 1/8 安装 : centos-release-ceph-pacific-1.0-2.el9s.noarch 2/8 安装 : centos-release-nfv-common-1-5.el9s.noarch 3/8 安装 : centos-release-nfv-openvswitch-1-5.el9s.noarch 4/8 安装 : centos-release-messaging-1-4.el9s.noarch 5/8 安装 : centos-release-rabbitmq-38-1-4.el9s.noarch 6/8 安装 : centos-release-cloud-1-1.el9s.noarch 7/8 安装 : centos-release-openstack-yoga-1-4.el9s.noarch 8/8 验证 : centos-release-ceph-pacific-1.0-2.el9s.noarch 1/8 验证 : centos-release-cloud-1-1.el9s.noarch 2/8 验证 : centos-release-messaging-1-4.el9s.noarch 3/8 验证 : centos-release-nfv-common-1-5.el9s.noarch 4/8 验证 : centos-release-nfv-openvswitch-1-5.el9s.noarch 5/8 验证 : centos-release-openstack-yoga-1-4.el9s.noarch 6/8 验证 : centos-release-rabbitmq-38-1-4.el9s.noarch 7/8 验证 : centos-release-storage-common-2-5.el9s.noarch 8/8
已安装: centos-release-ceph-pacific-1.0-2.el9s.noarch centos-release-cloud-1-1.el9s.noarch centos-release-messaging-1-4.el9s.noarch centos-release-nfv-common-1-5.el9s.noarch centos-release-nfv-openvswitch-1-5.el9s.noarch centos-release-openstack-yoga-1-4.el9s.noarch centos-release-rabbitmq-38-1-4.el9s.noarch centos-release-storage-common-2-5.el9s.noarch
完毕! [root@controller ~]# dnf update -y Repository highavailability is listed more than once in the configuration Repository nfv is listed more than once in the configuration Repository rt is listed more than once in the configuration Repository resilientstorage is listed more than once in the configuration Repository extras-common is listed more than once in the configuration Repository baseos is listed more than once in the configuration Repository appstream is listed more than once in the configuration Repository crb is listed more than once in the configuration CentOS-9-stream – Ceph Pacific 53 kB/s | 557 kB 00:10 CentOS-9 – RabbitMQ 38 140 kB/s | 104 kB 00:00 CentOS Stream 9 – NFV OpenvSwitch 211 kB/s | 154 kB 00:00 CentOS-9 – OpenStack yoga 3.1 MB/s | 3.0 MB 00:00 依赖关系解决。 ========================================================================================================================== 软件包 架构 版本 仓库 大小 ========================================================================================================================== 升级: python3-setuptools noarch 57.4.0-1.el9s centos-ceph-pacific 920 k
事务概要 ========================================================================================================================== 升级 1 软件包
总下载:920 k 下载软件包: python3-setuptools-57.4.0-1.el9s.noarch.rpm 2.1 MB/s | 920 kB 00:00 ————————————————————————————————————————– 总计 839 kB/s | 920 kB 00:01 运行事务检查 事务检查成功。 运行事务测试 事务测试成功。 运行事务 准备中 : 1/1 升级 : python3-setuptools-57.4.0-1.el9s.noarch 1/2 清理 : python3-setuptools-53.0.0-12.el9.noarch 2/2 运行脚本: python3-setuptools-53.0.0-12.el9.noarch 2/2 验证 : python3-setuptools-57.4.0-1.el9s.noarch 1/2 验证 : python3-setuptools-53.0.0-12.el9.noarch 2/2
已升级: python3-setuptools-57.4.0-1.el9s.noarch
完毕! [root@controller ~]# getenforce Disabled [root@controller ~]# ll /etc/yum.repos.d/ 总用量 40 -rw-r–r– 1 root root 4245 9月 5 22:36 centos-addons.repo -rw-r–r– 1 root root 926 1月 26 2022 CentOS-Ceph-Pacific.repo -rw-r–r– 1 root root 795 4月 12 2022 CentOS-Messaging-rabbitmq.repo -rw-r–r– 1 root root 1255 4月 5 2023 CentOS-NFV-OpenvSwitch.repo -rw-r–r– 1 root root 4147 6月 22 2023 CentOS-OpenStack-yoga.repo -rw-r–r– 1 root root 2600 9月 5 22:36 centos.repo -rw-r–r– 1 root root 369 4月 7 2023 CentOS-Storage-common.repo -rw-r–r– 1 root root 2066 1月 6 17:47 cloud.repo [root@controller ~]# ll /etc/yum.repos.d/centos* -rw-r–r– 1 root root 4245 9月 5 22:36 /etc/yum.repos.d/centos-addons.repo -rw-r–r– 1 root root 2600 9月 5 22:36 /etc/yum.repos.d/centos.repo [root@controller ~]# rm /etc/yum.repos.d/centos* -f [root@controller ~]# ll /etc/yum.repos.d/ 总用量 28 -rw-r–r– 1 root root 926 1月 26 2022 CentOS-Ceph-Pacific.repo -rw-r–r– 1 root root 795 4月 12 2022 CentOS-Messaging-rabbitmq.repo -rw-r–r– 1 root root 1255 4月 5 2023 CentOS-NFV-OpenvSwitch.repo -rw-r–r– 1 root root 4147 6月 22 2023 CentOS-OpenStack-yoga.repo -rw-r–r– 1 root root 369 4月 7 2023 CentOS-Storage-common.repo -rw-r–r– 1 root root 2066 1月 6 17:47 cloud.repo
[root@controller ~]# dnf install -y openstack-packstack Repository highavailability is listed more than once in the configuration Repository nfv is listed more than once in the configuration Repository rt is listed more than once in the configuration Repository resilientstorage is listed more than once in the configuration Repository extras-common is listed more than once in the configuration Repository baseos is listed more than once in the configuration Repository appstream is listed more than once in the configuration Repository crb is listed more than once in the configuration 上次元数据过期检查:0:01:00 前,执行于 2024年01月09日 星期二 20时32分53秒。 依赖关系解决。 ========================================================================================================================== 。。。。。。 已安装: augeas-libs-1.13.0-5.el9.x86_64 boost-atomic-1.75.0-8.el9.x86_64 boost-chrono-1.75.0-8.el9.x86_64 boost-filesystem-1.75.0-8.el9.x86_64 boost-locale-1.75.0-8.el9.x86_64 boost-log-1.75.0-8.el9.x86_64 boost-nowide-1.75.0-8.el9.x86_64 boost-program-options-1.75.0-8.el9.x86_64 boost-regex-1.75.0-8.el9.x86_64 boost-system-1.75.0-8.el9.x86_64 boost-thread-1.75.0-8.el9.x86_64 cpp-hocon-0.3.0-4.el9s.x86_64 facter-1:3.14.19-1.el9s.x86_64 git-core-2.39.3-1.el9.x86_64 hiera-3.7.0-2.el9s.noarch leatherman-1.12.6-3.el9s.x86_64 libicu-67.1-9.el9.x86_64 libselinux-ruby-3.6-1.el9.x86_64 openstack-packstack-1:20.0.0-1.el9s.noarch openstack-packstack-puppet-1:20.0.0-1.el9s.noarch puppet-7.10.0-1.el9s.noarch puppet-aodh-20.3.1-1.el9s.noarch puppet-apache-7.0.0-1.e27004bgit.el9s.noarch puppet-archive-6.0.3-0.1.0rc0.c49aa3egit.el9s.noarch puppet-ceilometer-20.4.1-1.el9s.noarch puppet-certmonger-2.7.1-1.3e2e660git.el9s.noarch puppet-cinder-20.4.1-1.el9s.noarch puppet-concat-7.1.1-2.7bf6cedgit.el9s.noarch puppet-corosync-8.2.1-0.2.0rc0.5f48a6cgit.el9s.noarch puppet-firewall-3.4.0-1.94f707cgit.el9s.noarch puppet-glance-20.4.1-1.el9s.noarch puppet-gnocchi-20.3.2-1.el9s.noarch puppet-headless-7.10.0-1.el9s.noarch puppet-heat-20.4.1-1.el9s.noarch puppet-horizon-20.4.0-1.el9s.noarch puppet-inifile-5.2.0-2.3ec441bgit.el9s.noarch puppet-ironic-20.4.2-1.el9s.noarch puppet-keystone-20.4.1-1.el9s.noarch puppet-kmod-3.1.2-0.1.0rc0.9853847git.el9s.noarch puppet-magnum-20.3.1-1.el9s.noarch puppet-manila-20.3.2-1.el9s.noarch puppet-memcached-7.0.0-2.51a961agit.el9s.noarch puppet-mysql-12.0.1-2.dd2b640git.el9s.noarch puppet-neutron-20.4.0-1.el9s.noarch puppet-nova-20.4.2-1.el9s.noarch puppet-nssdb-1.0.1-1.2ed2a2dgit.el9s.noarch puppet-openstack_extras-20.3.1-1.el9s.noarch puppet-openstacklib-20.3.1-1.el9s.noarch puppet-oslo-20.4.0-1.el9s.noarch puppet-ovn-20.4.0-1.el9s.noarch puppet-placement-7.3.1-1.el9s.noarch puppet-rabbitmq-11.1.1-0.2.0rc0.e9e1da1git.el9s.noarch puppet-redis-8.2.1-0.1.0rc0.406874agit.el9s.noarch puppet-remote-10.0.0-1.7420908git.el9s.noarch puppet-rsync-1.2.0-1.4ff5dcagit.el9s.noarch puppet-sahara-20.3.1-1.el9s.noarch puppet-ssh-8.0.0-1.b84d4dcgit.el9s.noarch puppet-staging-1.0.4-1.b466d93git.el9s.noarch puppet-stdlib-8.1.0-2.ea43f2egit.el9s.noarch puppet-swift-20.4.1-1.el9s.noarch puppet-sysctl-0.0.12-2.847ec1cgit.el9s.noarch puppet-systemd-3.8.1-0.1.0rc0.65af359git.el9s.noarch puppet-tempest-20.4.0-1.el9s.noarch puppet-trove-20.4.1-1.el9s.noarch puppet-vcsrepo-5.0.0-2.35fd754git.el9s.noarch puppet-vswitch-16.3.1-1.el9s.noarch puppet-xinetd-3.3.0-1.e742608git.el9s.noarch python3-cffi-1.14.5-5.el9.x86_64 python3-cryptography-36.0.1-4.el9.x86_64 python3-docutils-0.16-6.el9.noarch python3-netaddr-0.8.0-5.el9.noarch python3-netifaces-0.10.6-15.el9.x86_64 python3-pbr-5.6.0-1.el9s.noarch python3-ply-3.11-14.el9.noarch python3-pyOpenSSL-20.0.1-2.el9s.noarch python3-pycparser-2.20-6.el9.noarch python3-pyyaml-5.4.1-6.el9.x86_64 ruby-3.0.4-160.el9.x86_64 ruby-augeas-0.5.0-27.el9s.x86_64 ruby-default-gems-3.0.4-160.el9.noarch ruby-facter-1:3.14.19-1.el9s.x86_64 ruby-libs-3.0.4-160.el9.x86_64 rubygem-bigdecimal-3.0.0-160.el9.x86_64 rubygem-bundler-2.2.33-160.el9.noarch rubygem-concurrent-ruby-1.1.5-2.el9s.noarch rubygem-deep_merge-1.2.1-7.el9s.noarch rubygem-fast_gettext-1.2.0-9.el9s.noarch rubygem-hocon-1.3.1-2.el9s.noarch rubygem-io-console-0.5.7-160.el9.x86_64 rubygem-json-2.5.1-160.el9.x86_64 rubygem-multi_json-1.15.0-2.el9s.noarch rubygem-psych-3.3.2-160.el9.x86_64 rubygem-puppet-resource_api-1.8.13-1.el9s.noarch rubygem-rdoc-6.3.3-160.el9.noarch rubygem-rexml-3.2.5-160.el9.noarch rubygem-ruby-shadow-2.5.0-15.el9s.x86_64 rubygem-semantic_puppet-1.0.4-2.el9s.noarch rubygems-3.2.33-160.el9.noarch yaml-cpp-0.6.3-4.el9s.x86_64
完毕! [root@controller ~]# packstack –allinone Welcome to the Packstack setup utility
The installation log file is available at: /var/tmp/packstack/20240109-203449-6uewe4x4/openstack-setup.log Packstack changed given value to required value /root/.ssh/id_rsa.pub
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.80.31_controller.pp 192.168.80.31_controller.pp: [ DONE ] Applying 192.168.80.31_network.pp 192.168.80.31_network.pp: [ DONE ] Applying 192.168.80.31_compute.pp 192.168.80.31_compute.pp: [ DONE ] Applying 192.168.80.31_controller_post.pp 192.168.80.31_controller_post.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 plugin. Geneve will be used as the encapsulation method for tenant networks * A new answerfile was created in: /root/packstack-answers-20240109-203450.txt * Time synchronization installation was skipped. Please note that unsynchronized time on server instances might be problem for some OpenStack components. * Warning: NetworkManager is active on 192.168.80.31. OpenStack networking currently does not work on systems that have the Network Manager service enabled. * File /root/keystonerc_admin has been created on OpenStack client host 192.168.80.31. To use the command line tools you need to source the file. * To access the OpenStack Dashboard browse to http://192.168.80.31/dashboard . Please, find your login credentials stored in the keystonerc_admin in your home directory. * Because of the kernel update the host 192.168.80.31 requires reboot. * The installation log file is available at: /var/tmp/packstack/20240109-203449-6uewe4x4/openstack-setup.log * The generated manifests are available at: /var/tmp/packstack/20240109-203449-6uewe4x4/manifests
[root@controller ~]# source keystonerc_admin [root@controller ~(keystone_admin)]# openstack service list +———————————-+———–+————–+ | ID | Name | Type | +———————————-+———–+————–+ | 0a8d61c4d5a541ff80589b6842dc6f49 | aodh | alarming | | 2226066063fa4169b98fce1fa35bc430 | neutron | network | | 30fe66a360e4404d97ce9be17f70f634 | glance | image | | 5562b7a4870544f8bcadfb45365fdcfe | cinderv3 | volumev3 | | 6cbac42fa2784c858bdcae165608db29 | keystone | identity | | 83292f37f0a74ee59b455f3fe92ef14c | swift | object-store | | 85a474c72d094f0e8d980d544bb67c70 | nova | compute | | b6b8f7212b444736bc2ae79e86fa631c | gnocchi | metric | | f17aba328f3045e294458750031ad28b | placement | placement | +———————————-+———–+————–+
|
http://192.168.80.31/dashboard
三、OpenStack(Y) AllinOne + Compute部署
1、环境配置
# 前提:ip、主机名、hosts、关闭firewalld和selinux、dnf源
[root@compute ~]# ip a 1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000 link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00 inet 127.0.0.1/8 scope host lo valid_lft forever preferred_lft forever inet6 ::1/128 scope host valid_lft forever preferred_lft forever 2: ens33: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc fq_codel state UP group default qlen 1000 link/ether 00:0c:29:d2:ba:21 brd ff:ff:ff:ff:ff:ff altname enp2s1 inet 192.168.80.32/24 brd 192.168.80.255 scope global noprefixroute ens33 valid_lft forever preferred_lft forever inet6 fe80::20c:29ff:fed2:ba21/64 scope link noprefixroute valid_lft forever preferred_lft forever
#两个节点一样 [root@compute ~]# cat /etc/hosts 127.0.0.1 localhost localhost.localdomain localhost4 localhost4.localdomain4 ::1 localhost localhost.localdomain localhost6 localhost6.localdomain6 192.168.80.31 controller 192.168.80.32 compute
[root@compute ~]# dnf update -y 。。。。。。 验证 : rsyslog-logrotate-8.2102.0-106.el9.x86_64 463/463
已升级: NetworkManager-1:1.45.9-1.el9.x86_64 NetworkManager-libnm-1:1.45.9-1.el9.x86_64 NetworkManager-team-1:1.45.9-1.el9.x86_64 NetworkManager-tui-1:1.45.9-1.el9.x86_64 acl-2.3.1-4.el9.x86_64 alternatives-1.24-1.el9.x86_64 audit-3.1.2-2.el9.x86_64 audit-libs-3.1.2-2.el9.x86_64 authselect-1.2.6-2.el9.x86_64 authselect-libs-1.2.6-2.el9.x86_64 c-ares-1.19.1-1.el9.x86_64 ca-certificates-2023.2.60_v7.0.306-90.1.el9.noarch centos-gpg-keys-9.0-23.el9.noarch centos-stream-release-9.0-23.el9.noarch centos-stream-repos-9.0-23.el9.noarch coreutils-8.32-34.el9.x86_64 coreutils-common-8.32-34.el9.x86_64 cronie-1.5.7-10.el9.x86_64 cronie-anacron-1.5.7-10.el9.x86_64 crypto-policies-20231113-1.gite9247c2.el9.noarch crypto-policies-scripts-20231113-1.gite9247c2.el9.noarch cryptsetup-libs-2.6.0-3.el9.x86_64 curl-7.76.1-28.el9.x86_64 dbus-1:1.12.20-8.el9.x86_64 dbus-common-1:1.12.20-8.el9.noarch dbus-libs-1:1.12.20-8.el9.x86_64 device-mapper-9:1.02.195-3.el9.x86_64 device-mapper-event-9:1.02.195-3.el9.x86_64 device-mapper-event-libs-9:1.02.195-3.el9.x86_64 device-mapper-libs-9:1.02.195-3.el9.x86_64 device-mapper-persistent-data-1.0.6-1.el9.x86_64 dnf-4.14.0-9.el9.noarch dnf-data-4.14.0-9.el9.noarch dnf-plugins-core-4.3.0-12.el9.noarch dracut-057-52.git20231207.el9.x86_64 dracut-config-rescue-057-52.git20231207.el9.x86_64 dracut-network-057-52.git20231207.el9.x86_64 dracut-squash-057-52.git20231207.el9.x86_64 e2fsprogs-1.46.5-5.el9.x86_64 e2fsprogs-libs-1.46.5-5.el9.x86_64 elfutils-default-yama-scope-0.190-2.el9.noarch elfutils-libelf-0.190-2.el9.x86_64 elfutils-libs-0.190-2.el9.x86_64 ethtool-2:6.2-1.el9.x86_64 file-5.39-14.el9.x86_64 file-libs-5.39-14.el9.x86_64 findutils-1:4.8.0-6.el9.x86_64 firewalld-1.2.5-1.el9.noarch firewalld-filesystem-1.2.5-1.el9.noarch fuse-common-3.10.2-6.el9.x86_64 gettext-0.21-8.el9.x86_64 gettext-libs-0.21-8.el9.x86_64 glib2-2.68.4-12.el9.x86_64 glibc-2.34-94.el9.x86_64 glibc-common-2.34-94.el9.x86_64 glibc-gconv-extra-2.34-94.el9.x86_64 glibc-langpack-en-2.34-94.el9.x86_64 glibc-langpack-zh-2.34-94.el9.x86_64 gmp-1:6.2.0-13.el9.x86_64 gnupg2-2.3.3-4.el9.x86_64 gnutls-3.8.2-2.el9.x86_64 google-noto-cjk-fonts-common-20230817-2.el9.noarch google-noto-sans-cjk-ttc-fonts-20230817-2.el9.noarch google-noto-serif-cjk-ttc-fonts-20230817-2.el9.noarch grub2-common-1:2.06-68.el9.noarch grub2-pc-1:2.06-68.el9.x86_64 grub2-pc-modules-1:2.06-68.el9.noarch grub2-tools-1:2.06-68.el9.x86_64 grub2-tools-minimal-1:2.06-68.el9.x86_64 grubby-8.40-63.el9.x86_64 hwdata-0.348-9.12.el9.noarch iproute-6.2.0-5.el9.x86_64 iproute-tc-6.2.0-5.el9.x86_64 ipset-7.11-8.el9.x86_64 ipset-libs-7.11-8.el9.x86_64 iputils-20210202-9.el9.x86_64 irqbalance-2:1.9.2-3.el9.x86_64 iwl100-firmware-39.31.5.1-141.el9.noarch iwl1000-firmware-1:39.31.5.1-141.el9.noarch iwl105-firmware-18.168.6.1-141.el9.noarch iwl135-firmware-18.168.6.1-141.el9.noarch iwl2000-firmware-18.168.6.1-141.el9.noarch iwl2030-firmware-18.168.6.1-141.el9.noarch iwl3160-firmware-1:25.30.13.0-141.el9.noarch iwl5000-firmware-8.83.5.1_1-141.el9.noarch iwl5150-firmware-8.24.2.2-141.el9.noarch iwl6000g2a-firmware-18.168.6.1-141.el9.noarch iwl6050-firmware-41.28.5.1-141.el9.noarch iwl7260-firmware-1:25.30.13.0-141.el9.noarch kbd-2.4.0-9.el9.x86_64 kbd-misc-2.4.0-9.el9.noarch kernel-tools-5.14.0-402.el9.x86_64 kernel-tools-libs-5.14.0-402.el9.x86_64 kexec-tools-2.0.27-5.el9.x86_64 kmod-28-9.el9.x86_64 kmod-libs-28-9.el9.x86_64 kpartx-0.8.7-22.el9.x86_64 krb5-libs-1.21.1-1.el9.x86_64 less-590-2.el9.x86_64 libacl-2.3.1-4.el9.x86_64 libblkid-2.37.4-15.el9.x86_64 libbpf-2:1.2.0-1.el9.x86_64 libcap-2.48-9.el9.x86_64 libcom_err-1.46.5-5.el9.x86_64 libcurl-7.76.1-28.el9.x86_64 libdnf-0.69.0-7.el9.x86_64 libdrm-2.4.117-1.el9.x86_64 libeconf-0.4.1-3.el9.x86_64 libedit-3.1-38.20210216cvs.el9.x86_64 libfastjson-0.99.9-5.el9.x86_64 libfdisk-2.37.4-15.el9.x86_64 libffi-3.4.2-8.el9.x86_64 libfido2-1.13.0-2.el9.x86_64 libgcc-11.4.1-2.3.el9.x86_64 libgcrypt-1.10.0-10.el9.x86_64 libgomp-11.4.1-2.3.el9.x86_64 libibverbs-48.0-1.el9.x86_64 libkcapi-1.4.0-2.el9.x86_64 libkcapi-hmaccalc-1.4.0-2.el9.x86_64 libksba-1.5.1-6.el9.x86_64 libldb-2.7.2-2.el9.x86_64 libmount-2.37.4-15.el9.x86_64 libnghttp2-1.43.0-5.el9.1.x86_64 libselinux-3.6-1.el9.x86_64 libselinux-utils-3.6-1.el9.x86_64 libsemanage-3.6-1.el9.x86_64 libsepol-3.6-1.el9.x86_64 libsmartcols-2.37.4-15.el9.x86_64 libsolv-0.7.24-2.el9.x86_64 libss-1.46.5-5.el9.x86_64 libssh-0.10.4-11.el9.x86_64 libssh-config-0.10.4-11.el9.noarch libsss_certmap-2.9.3-2.el9.x86_64 libsss_idmap-2.9.3-2.el9.x86_64 libsss_nss_idmap-2.9.3-2.el9.x86_64 libsss_sudo-2.9.3-2.el9.x86_64 libstdc++-11.4.1-2.3.el9.x86_64 libtalloc-2.4.0-2.el9.x86_64 libtdb-1.4.8-2.el9.x86_64 libtevent-0.14.1-2.el9.x86_64 libtirpc-1.3.3-2.el9.x86_64 libuser-0.63-13.el9.x86_64 libuuid-2.37.4-15.el9.x86_64 libxml2-2.9.13-5.el9.x86_64 linux-firmware-20231030-141.el9.noarch linux-firmware-whence-20231030-141.el9.noarch logrotate-3.18.0-8.el9.x86_64 lshw-B.02.19.2-10.el9.x86_64 lua-libs-5.4.4-4.el9.x86_64 lvm2-9:2.03.21-3.el9.x86_64 lvm2-libs-9:2.03.21-3.el9.x86_64 microcode_ctl-4:20230808-2.el9.noarch ncurses-6.2-10.20210508.el9.x86_64 ncurses-base-6.2-10.20210508.el9.noarch ncurses-libs-6.2-10.20210508.el9.x86_64 nettle-3.9.1-1.el9.x86_64 nftables-1:1.0.4-11.el9.x86_64 numactl-libs-2.0.16-3.el9.x86_64 open-vm-tools-12.3.5-1.el9.x86_64 openldap-2.6.6-1.el9.x86_64 openldap-compat-2.6.6-1.el9.x86_64 openssh-8.7p1-35.el9.x86_64 openssh-clients-8.7p1-35.el9.x86_64 openssh-server-8.7p1-35.el9.x86_64 openssl-1:3.0.7-25.el9.x86_64 openssl-libs-1:3.0.7-25.el9.x86_64 os-prober-1.77-10.el9.x86_64 p11-kit-0.25.3-2.el9.x86_64 p11-kit-trust-0.25.3-2.el9.x86_64 pam-1.5.1-16.el9.x86_64 pcre2-10.40-4.el9.x86_64 pcre2-syntax-10.40-4.el9.noarch policycoreutils-3.6-1.el9.x86_64 procps-ng-3.3.17-13.el9.x86_64 python-unversioned-command-3.9.18-1.el9.noarch python3-3.9.18-1.el9.x86_64 python3-dateutil-1:2.8.1-7.el9.noarch python3-dnf-4.14.0-9.el9.noarch python3-dnf-plugins-core-4.3.0-12.el9.noarch python3-firewall-1.2.5-1.el9.noarch python3-hawkey-0.69.0-7.el9.x86_64 python3-libdnf-0.69.0-7.el9.x86_64 python3-libs-3.9.18-1.el9.x86_64 python3-libselinux-3.6-1.el9.x86_64 python3-nftables-1:1.0.4-11.el9.x86_64 python3-pip-wheel-21.2.3-7.el9.noarch python3-rpm-4.16.1.3-29.el9.x86_64 python3-setuptools-53.0.0-12.el9.noarch python3-setuptools-wheel-53.0.0-12.el9.noarch rpm-4.16.1.3-29.el9.x86_64 rpm-build-libs-4.16.1.3-29.el9.x86_64 rpm-libs-4.16.1.3-29.el9.x86_64 rpm-plugin-audit-4.16.1.3-29.el9.x86_64 rpm-plugin-selinux-4.16.1.3-29.el9.x86_64 rpm-plugin-systemd-inhibit-4.16.1.3-29.el9.x86_64 rpm-sign-libs-4.16.1.3-29.el9.x86_64 rsyslog-8.2310.0-3.el9.x86_64 rsyslog-logrotate-8.2310.0-3.el9.x86_64 selinux-policy-38.1.29-1.el9.noarch selinux-policy-targeted-38.1.29-1.el9.noarch setup-2.13.7-9.el9.noarch shadow-utils-2:4.9-8.el9.x86_64 squashfs-tools-4.4-10.git1.el9.x86_64 sssd-client-2.9.3-2.el9.x86_64 sssd-common-2.9.3-2.el9.x86_64 sssd-kcm-2.9.3-2.el9.x86_64 sudo-1.9.5p2-9.el9.x86_64 systemd-252-21.el9.x86_64 systemd-libs-252-21.el9.x86_64 systemd-pam-252-21.el9.x86_64 systemd-rpm-macros-252-21.el9.noarch systemd-udev-252-21.el9.x86_64 tar-2:1.34-6.el9.x86_64 tpm2-tss-3.2.2-2.el9.x86_64 tzdata-2023c-1.el9.noarch util-linux-2.37.4-15.el9.x86_64 util-linux-core-2.37.4-15.el9.x86_64 vim-minimal-2:8.2.2637-20.el9.x86_64 which-2.21-29.el9.x86_64 xfsprogs-6.3.0-1.el9.x86_64 yum-4.14.0-9.el9.noarch zlib-1.2.11-41.el9.x86_64 已安装: binutils-2.35.2-42.el9.x86_64 binutils-gold-2.35.2-42.el9.x86_64 elfutils-debuginfod-client-0.190-2.el9.x86_64 freetype-2.10.4-9.el9.x86_64 fuse3-3.10.2-6.el9.x86_64 fuse3-libs-3.10.2-6.el9.x86_64 graphite2-1.3.14-9.el9.x86_64 grub2-tools-efi-1:2.06-68.el9.x86_64 grub2-tools-extra-1:2.06-68.el9.x86_64 harfbuzz-2.7.4-10.el9.x86_64 jq-1.6-16.el9.x86_64 kbd-legacy-2.4.0-9.el9.noarch kernel-5.14.0-402.el9.x86_64 kernel-core-5.14.0-402.el9.x86_64 kernel-modules-5.14.0-402.el9.x86_64 kernel-modules-core-5.14.0-402.el9.x86_64 libpng-2:1.6.37-12.el9.x86_64 oniguruma-6.9.6-1.el9.5.x86_64 systemd-boot-unsigned-252-21.el9.x86_64
完毕! [root@compute ~]# dnf config-manager –enable crb Repository highavailability is listed more than once in the configuration Repository nfv is listed more than once in the configuration Repository rt is listed more than once in the configuration Repository resilientstorage is listed more than once in the configuration Repository extras-common is listed more than once in the configuration Repository baseos is listed more than once in the configuration Repository appstream is listed more than once in the configuration Repository crb is listed more than once in the configuration [root@compute ~]# dnf install -y centos-release-openstack-yoga.noarch CentOS Stream 9- HighAvailability 17 kB/s | 3.9 kB 00:00 CentOS Stream 9- NFV 14 kB/s | 3.9 kB 00:00 CentOS Stream 9- RT 17 kB/s | 3.9 kB 00:00 CentOS Stream 9- ResilientStorage 15 kB/s | 3.9 kB 00:00 CentOS Stream 9- Extras packages 15 kB/s | 3.0 kB 00:00 CentOS Stream 9- BaseOS 19 kB/s | 3.9 kB 00:00 CentOS Stream 9- AppStream 26 kB/s | 4.4 kB 00:00 CentOS Stream 9- CRB 17 kB/s | 4.3 kB 00:00 依赖关系解决。 ========================================================================================================================================================================================================================================================== 软件包 架构 版本 仓库 大小 ========================================================================================================================================================================================================================================================== 安装: centos-release-openstack-yoga noarch 1-4.el9s extras-common 8.0 k 安装依赖关系: centos-release-ceph-pacific noarch 1.0-2.el9s extras-common 7.4 k centos-release-cloud noarch 1-1.el9s extras-common 7.9 k centos-release-messaging noarch 1-4.el9s extras-common 8.4 k centos-release-nfv-common noarch 1-5.el9s extras-common 7.8 k centos-release-nfv-openvswitch noarch 1-5.el9s extras-common 7.5 k centos-release-rabbitmq-38 noarch 1-4.el9s extras-common 7.4 k centos-release-storage-common noarch 2-5.el9s extras-common 8.3 k
事务概要 ========================================================================================================================================================================================================================================================== 安装 8 软件包
总下载:63 k 安装大小:12 k 下载软件包: (1/8): centos-release-ceph-pacific-1.0-2.el9s.noarch.rpm 21 kB/s | 7.4 kB 00:00 (2/8): centos-release-messaging-1-4.el9s.noarch.rpm 23 kB/s | 8.4 kB 00:00 (3/8): centos-release-cloud-1-1.el9s.noarch.rpm 21 kB/s | 7.9 kB 00:00 (4/8): centos-release-nfv-common-1-5.el9s.noarch.rpm 57 kB/s | 7.8 kB 00:00 (5/8): centos-release-nfv-openvswitch-1-5.el9s.noarch.rpm 47 kB/s | 7.5 kB 00:00 (6/8): centos-release-rabbitmq-38-1-4.el9s.noarch.rpm 78 kB/s | 7.4 kB 00:00 (7/8): centos-release-openstack-yoga-1-4.el9s.noarch.rpm 38 kB/s | 8.0 kB 00:00 (8/8): centos-release-storage-common-2-5.el9s.noarch.rpm 51 kB/s | 8.3 kB 00:00 ———————————————————————————————————————————————————————————————————————————————————- 总计 89 kB/s | 63 kB 00:00 CentOS Stream 9- Extras packages 2.1 MB/s | 2.1 kB 00:00 导入 GPG 公钥 0x1D997668: Userid: “CentOS Extras SIG (https://wiki.centos.org/SpecialInterestGroup) <security@centos.org>” 指纹: 363F C097 2F64 B699 AED3 968E 1FF6 A217 1D99 7668 来自: /etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-SIG-Extras-SHA512 导入公钥成功 运行事务检查 事务检查成功。 运行事务测试 事务测试成功。 运行事务 准备中 : 1/1 安装 : centos-release-storage-common-2-5.el9s.noarch 1/8 安装 : centos-release-ceph-pacific-1.0-2.el9s.noarch 2/8 安装 : centos-release-nfv-common-1-5.el9s.noarch 3/8 安装 : centos-release-nfv-openvswitch-1-5.el9s.noarch 4/8 安装 : centos-release-messaging-1-4.el9s.noarch 5/8 安装 : centos-release-rabbitmq-38-1-4.el9s.noarch 6/8 安装 : centos-release-cloud-1-1.el9s.noarch 7/8 安装 : centos-release-openstack-yoga-1-4.el9s.noarch 8/8 验证 : centos-release-ceph-pacific-1.0-2.el9s.noarch 1/8 验证 : centos-release-cloud-1-1.el9s.noarch 2/8 验证 : centos-release-messaging-1-4.el9s.noarch 3/8 验证 : centos-release-nfv-common-1-5.el9s.noarch 4/8 验证 : centos-release-nfv-openvswitch-1-5.el9s.noarch 5/8 验证 : centos-release-openstack-yoga-1-4.el9s.noarch 6/8 验证 : centos-release-rabbitmq-38-1-4.el9s.noarch 7/8 验证 : centos-release-storage-common-2-5.el9s.noarch 8/8
已安装: centos-release-ceph-pacific-1.0-2.el9s.noarch centos-release-cloud-1-1.el9s.noarch centos-release-messaging-1-4.el9s.noarch centos-release-nfv-common-1-5.el9s.noarch centos-release-nfv-openvswitch-1-5.el9s.noarch centos-release-openstack-yoga-1-4.el9s.noarch centos-release-rabbitmq-38-1-4.el9s.noarch centos-release-storage-common-2-5.el9s.noarch
完毕! [root@compute ~]# dnf update -y 正在查找最快的镜像(16 的主机) done. [ === ] — B/s | 0 B –:– ETA CentOS-9-stream – Ceph Pacific 142 kB/s | 557 kB 00:03 CentOS-9 – RabbitMQ 38 80 kB/s | 104 kB 00:01 CentOS Stream 9 – NFV OpenvSwitch 176 kB/s | 154 kB 00:00 CentOS-9 – OpenStack yoga 2.8 MB/s | 3.0 MB 00:01 依赖关系解决。 ========================================================================================================================================================================================================================================================== 软件包 架构 版本 仓库 大小 ========================================================================================================================================================================================================================================================== 升级: python3-setuptools noarch 57.4.0-1.el9s centos-ceph-pacific 920 k
事务概要 ========================================================================================================================================================================================================================================================== 升级 1 软件包
总下载:920 k 下载软件包: done.S-9-stream – Ceph Pacific 0% [ ] 76 kB/s | 0 B 00:40 ETA python3-setuptools-57.4.0-1.el9s.noarch.rpm 1.8 MB/s | 920 kB 00:00 ———————————————————————————————————————————————————————————————————————————————————- 总计 234 kB/s | 920 kB 00:03 运行事务检查 事务检查成功。 运行事务测试 事务测试成功。 运行事务 准备中 : 1/1 升级 : python3-setuptools-57.4.0-1.el9s.noarch 1/2 清理 : python3-setuptools-53.0.0-12.el9.noarch 2/2 运行脚本: python3-setuptools-53.0.0-12.el9.noarch 2/2 验证 : python3-setuptools-57.4.0-1.el9s.noarch 1/2 验证 : python3-setuptools-53.0.0-12.el9.noarch 2/2
已升级: python3-setuptools-57.4.0-1.el9s.noarch
完毕!
|
2、配置免密登录
控制节点
#packstack –allinone已经自动安装过,只需要copy到compte [root@controller ~]# ssh-keygen Generating public/private rsa key pair. Enter file in which to save the key (/root/.ssh/id_rsa): /root/.ssh/id_rsa already exists. Overwrite (y/n)? n [root@controller ~]# ssh-copy-id root@compute /usr/bin/ssh-copy-id: INFO: Source of key(s) to be installed: “/root/.ssh/id_rsa.pub” /usr/bin/ssh-copy-id: INFO: attempting to log in with the new key(s), to filter out any that are already installed /usr/bin/ssh-copy-id: INFO: 1 key(s) remain to be installed — if you are prompted now it is to install the new keys root@compute’s password:
Number of key(s) added: 1
Now try logging into the machine, with: “ssh ‘root@compute'” and check to make sure that only the key(s) you wanted were added.
[root@controller ~]# ssh compute Last login: Tue Jan 9 23:09:19 2024 from 192.168.80.31 [root@compute ~]# exit 注销 Connection to compute closed. |
3、配置时间同步
控制节点
[root@controller ~]# ping ntp.aliyun.com -c2 PING ntp.aliyun.com (203.107.6.88) 56(84) 比特的数据。 64 比特,来自 203.107.6.88 (203.107.6.88): icmp_seq=1 ttl=128 时间=55.0 毫秒 64 比特,来自 203.107.6.88 (203.107.6.88): icmp_seq=2 ttl=128 时间=55.5 毫秒
— ntp.aliyun.com ping 统计 — 已发送 2 个包, 已接收 2 个包, 0% packet loss, time 1012ms rtt min/avg/max/mdev = 54.980/55.222/55.464/0.242 ms [root@controller ~]# systemctl status chronyd ● chronyd.service – NTP client/server Loaded: loaded (/usr/lib/systemd/system/chronyd.service; enabled; preset: enabled) Active: active (running) since Mon 2023-11-27 16:30:58 CST; 7min ago Docs: man:chronyd(8) man:chrony.conf(5) Main PID: 796 (chronyd) Tasks: 1 (limit: 100297) Memory: 3.3M CPU: 85ms CGroup: /system.slice/chronyd.service └─796 /usr/sbin/chronyd -F 2
11月 27 16:30:58 web1 chronyd[796]: chronyd version 4.3 starting (+CMDMON +NTP +REFCLOCK +RTC +PRIVDROP +SCFILTER +SIGND +ASYNCDNS +NTS +SECHASH +IPV6 +DEBUG) 11月 27 16:30:58 web1 chronyd[796]: Frequency 7.175 +/- 6.452 ppm read from /var/lib/chrony/drift 11月 27 16:30:58 web1 chronyd[796]: Using right/UTC timezone to obtain leap second data 11月 27 16:30:58 web1 chronyd[796]: Loaded seccomp filter (level 2) 11月 27 16:30:58 web1 systemd[1]: Started NTP client/server. 11月 27 16:31:05 web1 chronyd[796]: Selected source 119.28.183.184 (2.centos.pool.ntp.org) 11月 27 16:31:05 web1 chronyd[796]: System clock wrong by -1.386834 seconds 11月 27 16:31:04 web1 chronyd[796]: System clock was stepped by -1.386834 seconds 11月 27 16:31:04 web1 chronyd[796]: System clock TAI offset set to 37 seconds 11月 27 16:33:13 controller chronyd[796]: Selected source 202.112.31.197 (2.centos.pool.ntp.org) [root@controller ~]# vi /etc/chrony.conf [root@controller ~]# cat /etc/chrony.conf # Use public servers from the pool.ntp.org project. # Please consider joining the pool (https://www.pool.ntp.org/join.html). #pool 2.centos.pool.ntp.org iburst server ntp.aliyun.com iburst
# Use NTP servers from DHCP. sourcedir /run/chrony-dhcp
# Record the rate at which the system clock gains/losses time. driftfile /var/lib/chrony/drift
# Allow the system clock to be stepped in the first three updates # if its offset is larger than 1 second. makestep 1.0 3
# Enable kernel synchronization of the real-time clock (RTC). rtcsync
# Enable hardware timestamping on all interfaces that support it. #hwtimestamp *
# Increase the minimum number of selectable sources required to adjust # the system clock. #minsources 2
# Allow NTP client access from local network. #allow 192.168.0.0/16 allow all
# Serve time even if not synchronized to a time source. #local stratum 10
# Require authentication (nts or key option) for all NTP sources. #authselectmode require
# Specify file containing keys for NTP authentication. keyfile /etc/chrony.keys
# Save NTS keys and cookies. ntsdumpdir /var/lib/chrony
# Insert/delete leap seconds by slewing instead of stepping. #leapsecmode slew
# Get TAI-UTC offset and leap seconds from the system tz database. leapsectz right/UTC
# Specify directory for log files. logdir /var/log/chrony
# Select which information is logged. #log measurements statistics tracking [root@controller ~]# systemctl restart chronyd [root@controller ~]# timedatectl Local time: 一 2023-11-27 16:39:53 CST Universal time: 一 2023-11-27 08:39:53 UTC RTC time: 一 2023-11-27 08:39:53 Time zone: Asia/Shanghai (CST, +0800) System clock synchronized: yes NTP service: active RTC in local TZ: no |
计算节点
[root@compute ~]# vi /etc/chrony.conf [root@compute ~]# cat /etc/chrony.conf # Use public servers from the pool.ntp.org project. # Please consider joining the pool (https://www.pool.ntp.org/join.html). #pool 2.centos.pool.ntp.org iburst server controller iburst
# Use NTP servers from DHCP. sourcedir /run/chrony-dhcp
# Record the rate at which the system clock gains/losses time. driftfile /var/lib/chrony/drift
# Allow the system clock to be stepped in the first three updates # if its offset is larger than 1 second. makestep 1.0 3
# Enable kernel synchronization of the real-time clock (RTC). rtcsync
# Enable hardware timestamping on all interfaces that support it. #hwtimestamp *
# Increase the minimum number of selectable sources required to adjust # the system clock. #minsources 2
# Allow NTP client access from local network. #allow 192.168.0.0/16
# Serve time even if not synchronized to a time source. #local stratum 10
# Require authentication (nts or key option) for all NTP sources. #authselectmode require
# Specify file containing keys for NTP authentication. keyfile /etc/chrony.keys
# Save NTS keys and cookies. ntsdumpdir /var/lib/chrony
# Insert/delete leap seconds by slewing instead of stepping. #leapsecmode slew
# Get TAI-UTC offset and leap seconds from the system tz database. leapsectz right/UTC
# Specify directory for log files. logdir /var/log/chrony
# Select which information is logged. #log measurements statistics tracking [root@compute ~]# systemctl restart chronyd [root@compute ~]# timedatectl Local time: 一 2023-11-27 16:41:25 CST Universal time: 一 2023-11-27 08:41:25 UTC RTC time: 一 2023-11-27 08:41:25 Time zone: Asia/Shanghai (CST, +0800) System clock synchronized: yes NTP service: active RTC in local TZ: no
|
4、allinone的基础上添加compute节点
[root@controller ~]# ll 总用量 60 -rw——-. 1 root root 1212 6月 26 2023 anaconda-ks.cfg -rw——- 1 root root 373 1月 9 20:40 keystonerc_admin -rw——- 1 root root 318 1月 9 20:40 keystonerc_demo -rw——- 1 root root 48879 1月 9 20:34 packstack-answers-20240109-203450.txt
#修改应答文件,增加计算节点 [root@controller ~]# vi packstack-answers-20240109-203450.txt 94 CONFIG_COMPUTE_HOSTS=192.168.80.31,192.168.80.32
[root@controller ~]# packstack –answer-file=packstack-answers-20240109-203450.txt Welcome to the Packstack setup utility
The installation log file is available at: /var/tmp/packstack/20240110-002529-hyfpe4gi/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.80.31_controller.pp 192.168.80.31_controller.pp: [ DONE ] Applying 192.168.80.31_network.pp 192.168.80.31_network.pp: [ DONE ] Applying 192.168.80.31_compute.pp Applying 192.168.80.32_compute.pp 192.168.80.31_compute.pp: [ DONE ] 192.168.80.32_compute.pp: [ DONE ] Applying 192.168.80.31_controller_post.pp 192.168.80.31_controller_post.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 plugin. Geneve will be used as the encapsulation method for tenant networks * Time synchronization installation was skipped. Please note that unsynchronized time on server instances might be problem for some OpenStack components. * Warning: NetworkManager is active on 192.168.80.31, 192.168.80.32. OpenStack networking currently does not work on systems that have the Network Manager service enabled. * File /root/keystonerc_admin has been created on OpenStack client host 192.168.80.31. To use the command line tools you need to source the file. * To access the OpenStack Dashboard browse to http://192.168.80.31/dashboard . Please, find your login credentials stored in the keystonerc_admin in your home directory. * Because of the kernel update the host 192.168.80.31 requires reboot. * The installation log file is available at: /var/tmp/packstack/20240110-002529-hyfpe4gi/openstack-setup.log * The generated manifests are available at: /var/tmp/packstack/20240110-002529-hyfpe4gi/manifests
|