undercloud 和 overcloud 节点共享许多内部管理⽹络,比如tenant ⽹络、internal API 通信⽹络、provisioning ⽹络等
1 2 3 4 5 6 7 8 9 10 11
[root@controller0 ~]# ip route default via 172.25.250.254 dev br-ex 169.254.169.254 via 172.25.249.200 dev eth0 172.23.0.0/16 dev o-hm0 proto kernel scope link src 172.23.3.42 172.24.1.0/24 dev vlan10 proto kernel scope link src 172.24.1.1 172.24.2.0/24 dev vlan20 proto kernel scope link src 172.24.2.1 172.24.3.0/24 dev vlan30 proto kernel scope link src 172.24.3.1 172.24.4.0/24 dev vlan40 proto kernel scope link src 172.24.4.1 172.24.5.0/24 dev vlan50 proto kernel scope link src 172.24.5.1 172.25.249.0/24 dev eth0 proto kernel scope link src 172.25.249.56 172.25.250.0/24 dev br-ex proto kernel scope link src 172.25.250.1
1 2 3 4
(undercloud) [stack@director ~]$ ip route default via 172.25.250.254 dev eth0 proto static metric 100 172.25.249.0/24 dev br-ctlplane proto kernel scope link src 172.25.249.200 172.25.250.0/24 dev eth0 proto kernel scope link src 172.25.250.200 metric 100
(undercloud) [stack@director ~]$ chronyc tracking Reference ID : AC19FEFE (classroom.example.com) Stratum : 9 Ref time (UTC) : Sun Dec 31 16:42:02 2023 System time : 0.000002085 seconds slow of NTP time
[root@utility ~]# kinit admin Password for admin@LAB.EXAMPLE.NET: [root@utility ~]# ipa user-find | grep User User login: admin User login: architect1 User login: svc-ldap ...
1 2 3 4 5
[root@utility ~]# ipa group-find | grep Group Group name: admin-admins Group name: admins Group name: consulting-admins ...
utility 服务器也提供特殊的⽹络⽤途,在后续章节中,您将创建具有唯⼀ VLAN ID 的提供商⽹络。因此 utility 服务器配置为模拟交换机,具有四个虚拟 NIC,代表 VLAN ID 101 到 104。
1 2 3 4 5 6
[root@utility ~]# ip -br a | grep eth1 eth1 UP eth1.102@eth1 UP 10.0.102.1/24 fe80::5054:ff:fe03:dc/64 eth1.104@eth1 UP 10.0.104.1/24 fe80::5054:ff:fe03:dc/64 eth1.101@eth1 UP 10.0.101.1/24 fe80::5054:ff:fe03:dc/64 eth1.103@eth1 UP 10.0.103.1/24 fe80::5054:ff:fe03:dc/64
电源管理
在课程提供的 power 系统上,预配置的 CLI 接⼝⽤作虚拟基板管理控制器(BMC),使⽤ IPMI 管理每个 RHOSP 虚拟机,这与管理真实裸机的⽅式类似。每个虚拟机都配置了各⾃单独的 BMC 配置,在端⼝ 623 使⽤不同的侦听地址。指定 IP 地址的 IPMI 命令会定向到 power 系统,以请求底层虚拟机监控程序在由提交的 IP 地址表⽰的 VM 上发起电源状态更改。
[student@power ~]$ cat /etc/bmc/vms # List the VMs that the fake ipmi will manage. Include in the list one # VM name per line along with the proxy IP the IPMI client (ipmitool) # will use to manage it. # # EXAMPLE: VM_NAME,IP_ADDRESS controller,172.25.249.101 compute0,172.25.249.102 ceph0,172.25.249.103 compute1,172.25.249.112 computehci0,172.25.249.106