OpenStack: zed 安装过程
控制节点和计算节点都执行:
安装好ubuntu1~22.04 并确认系统版本
cat /proc/version
Linux version 5.15.0-60-generic (buildd@lcy02-amd64-054) (gcc (Ubuntu 11.3.0-1ubuntu1~22.04) 11.3.0, GNU ld (GNU Binutils for Ubuntu) 2.38) #66-Ubuntu SMP Fri Jan 20 14:29:49 UTC 2023
分别修改
控制节点
ip 10.0.0.11
主机名 controller
和计算节点
ip 10.0.0.31
主机名 compute1
的主机名、ip
ip 10.0.0.11
主机名 controller
ip 10.0.0.31
主机名 compute1
修改ip:
vim /etc/netplan/00-installer-config.yaml
# This is the network config written by 'subiquity'
network:
ethernets:
eno1:
dhcp4: true
enp38s0:
addresses: [10.0.0.31/24]
nameservers:
addresses: [114.114.114.114, 8.8.8.8]
version: 2
修改主机名:
hostname controller
echo "controller">/etc/hostname
将第二个接口配置为提供程序 接口 替换为实际接口名称。例如,eth1 或 ens224。INTERFACE_NAME
vim /etc/network/interfaces
# The provider network interface
auto enp38s0
iface enp38s0 inet manual
up ip link set dev $IFACE up
down ip link set dev $IFACE down
修改hosts
vim /etc/hosts
127.0.0.1 controller
# controller
10.0.0.11 controller
# compute1
10.0.0.31 compute1
# block1
10.0.0.41 block1
# object1
10.0.0.51 object1
# object2
10.0.0.52 object2
块存储节点(可选)
块存储节点(可选)— 安装指南文档 (openstack.org)
验证连接性
网络时间协议 (NTP)
控制节点:
apt install chrony
vim /etc/chrony/chrony.conf
allow 10.0.0.0/24
service chrony restart
计算节点:
apt install chrony
vim /etc/chrony/chrony.conf
pool controller iburst maxsources 4
#pool ntp.ubuntu.com iburst maxsources 4
#pool 0.ubuntu.pool.ntp.org iburst maxsources 1
#pool 1.ubuntu.pool.ntp.org iburst maxsources 1
#pool 2.ubuntu.pool.ntp.org iburst maxsources 2
service chrony restart
验证操作:
chronyc sources
MS Name/IP address Stratum Poll Reach LastRx Last sample
===============================================================================
^* controller 3 6 377 53 +762ns[ +793ns] +/- 13ms
所有节点上关闭自动更新:
vim /etc/apt/apt.conf.d/20auto-upgrades
将内容中所有值为 1 的都改成 0 后保存退出, 编辑文件需要sudo权限
APT::Periodic::Update-Package-Lists "0";
APT::Periodic::Unattended-Upgrade "0";
所有节点执行:
add-apt-repository cloud-archive:zed
apt install nova-compute
apt install python3-openstackclient