搭建Q版Openstack
基礎環境
名稱 | IP | 節點 |
---|---|---|
controller | 192.168.1.111 | 控制節點 |
compute | 192.168.1.112 | 計算節點 |
登錄虛擬化平台
- 使用創建好的內網192.168.1.0/24和外網卡10.100.35.0/24
- 開啟兩台8G-12G的虛擬機搭建雙節點Openstack
連接兩台虛擬機
[C:\~]$ ssh 192.168.1.111
Connecting to 192.168.1.111:22...
Connection established.
To escape to local shell, press 'Ctrl+Alt+]'.
WARNING! The remote SSH server rejected X11 forwarding request.
Last login: Thu Sep 30 02:25:54 2021
#########################
# Welcome to XianDian #
#########################
[root@localhost ~]#
查看當前是否兩個網卡
[root@localhost ~]# 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: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP group default qlen 1000
link/ether 52:54:00:12:02:7b brd ff:ff:ff:ff:ff:ff
inet 192.168.1.111/24 brd 192.168.1.255 scope global dynamic eth0
valid_lft 6298sec preferred_lft 6298sec
inet6 fe80::5054:ff:fe12:27b/64 scope link
valid_lft forever preferred_lft forever
3: eth1: <BROADCAST,MULTICAST> mtu 1500 qdisc noop state DOWN group default qlen 1000
link/ether 52:54:00:7f:bb:b5 brd ff:ff:ff:ff:ff:ff
更改主機名稱
[root@localhost ~]# hostnamectl set-hostname controller
[root@localhost ~]# hostnamectl set-hostname controller
配置Hosts映射主機名
[root@controller ~]# echo -e "192.168.1.111 controller" >> /etc/hosts
[root@controller ~]# echo -e "192.168.1.112 compute" >> /etc/hosts
[root@compute ~]# echo -e "192.168.1.111 controller" >> /etc/hosts
[root@compute ~]# echo -e "192.168.1.112 compute" >> /etc/hosts
硬盤分區
[root@compute ~]# lsblk
NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT
vda 253:0 0 20G 0 disk
└─vda1 253:1 0 20G 0 part /
vdb 253:16 0 150G 0 disk
[root@compute ~]# fdisk /dev/vdb
Welcome to fdisk (util-linux 2.23.2).
Changes will remain in memory only, until you decide to write them.
Be careful before using the write command.
Device does not contain a recognized partition table
Building a new DOS disklabel with disk identifier 0xab54aae4.
Command (m for help): n
Partition type:
p primary (0 primary, 0 extended, 4 free)
e extended
Select (default p): p
Partition number (1-4, default 1):
First sector (2048-314572799, default 2048):
Using default value 2048
Last sector, +sectors or +size{K,M,G} (2048-314572799, default 314572799): +20G
Partition 1 of type Linux and of size 20 GiB is set
Command (m for help): n
Partition type:
p primary (1 primary, 0 extended, 3 free)
e extended
Select (default p): p
Partition number (2-4, default 2):
First sector (41945088-314572799, default 41945088):
Using default value 41945088
Last sector, +sectors or +size{K,M,G} (41945088-314572799, default 314572799): +20G
Partition 2 of type Linux and of size 20 GiB is set
Command (m for help): w
The partition table has been altered!
Calling ioctl() to re-read partition table.
Syncing disks.
格式化磁盤vab1 vdb2
[root@compute ~]# mkfs.xfs /dev/vdb1
meta-data=/dev/vdb1 isize=512 agcount=4, agsize=1310720 blks
= sectsz=512 attr=2, projid32bit=1
= crc=1 finobt=0, sparse=0
data = bsize=4096 blocks=5242880, imaxpct=25
= sunit=0 swidth=0 blks
naming =version 2 bsize=4096 ascii-ci=0 ftype=1
log =internal log bsize=4096 blocks=2560, version=2
= sectsz=512 sunit=0 blks, lazy-count=1
realtime =none extsz=4096 blocks=0, rtextents=0
[root@compute ~]# mkfs.xfs /dev/vdb2
meta-data=/dev/vdb2 isize=512 agcount=4, agsize=1310720 blks
= sectsz=512 attr=2, projid32bit=1
= crc=1 finobt=0, sparse=0
data = bsize=4096 blocks=5242880, imaxpct=25
= sunit=0 swidth=0 blks
naming =version 2 bsize=4096 ascii-ci=0 ftype=1
log =internal log bsize=4096 blocks=2560, version=2
= sectsz=512 sunit=0 blks, lazy-count=1
realtime =none extsz=4096 blocks=0, rtextents=0
查看磁盤分區
[root@compute ~]# lsblk
NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT
vda 253:0 0 20G 0 disk
└─vda1 253:1 0 20G 0 part /
vdb 253:16 0 150G 0 disk
├─vdb1 253:17 0 20G 0 part
└─vdb2 253:18 0 20G 0 part
配置YUM源
# controller配置yum源是http源
[root@controller ~]# mv /etc/yum.repos.d/* /media/ && vi /etc/yum.repos.d/http.repo
[centos]
name=centos
baseurl=http://192.168.1.103/file/centos/
gpgcheck=0
enabled=yes
[iaas]
name=iaas
baseurl=http://192.168.1.103/file/iaas-repo
gpgcheck=0
enabled=yes
# compute配置yum源是http源
[root@compute ~]# mv /etc/yum.repos.d/* /media/ && vi /etc/yum.repos.d/http.repo
[centos]
name=centos
baseurl=http://192.168.1.103/file/centos/
gpgcheck=0
enabled=yes
[iaas]
name=iaas
baseurl=http://192.168.1.103/file/iaas-repo
gpgcheck=0
enabled=yes
[root@controller ~]# yum makecache
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
centos | 3.6 kB 00:00:00
iaas | 2.9 kB 00:00:00
Metadata Cache Created
安裝iaas-openstack
[root@controller ~]# yum install -y iaas-openstack
[root@compute ~]# yum install -y iaas-openstack
配置環境變量
密碼設置為000000,注意的是INTERFACE_IP是該節點的IP地址。
[root@controller ~]# cat /etc/iaas-openstack/openrc.sh
#--------------------system Config--------------------##
#Controller Server Manager IP. example:x.x.x.x
HOST_IP=192.168.1.111
#Controller HOST Password. example:000000
HOST_PASS=000000
#Controller Server hostname. example:controller
HOST_NAME=controller
#Compute Node Manager IP. example:x.x.x.x
HOST_IP_NODE=192.168.1.112
#Compute HOST Password. example:000000
HOST_PASS_NODE=000000
#Compute Node hostname. example:compute
HOST_NAME_NODE=compute
#--------------------Chrony Config-------------------##
#Controller network segment IP. example:x.x.0.0/16(x.x.x.0/24)
network_segment_IP=192.168.1.0/24
#--------------------Rabbit Config ------------------##
#user for rabbit. example:openstack
RABBIT_USER=openstack
#Password for rabbit user .example:000000
RABBIT_PASS=000000
#--------------------MySQL Config---------------------##
#Password for MySQL root user . exmaple:000000
DB_PASS=000000
#--------------------Keystone Config------------------##
#Password for Keystore admin user. exmaple:000000
DOMAIN_NAME=admin
ADMIN_PASS=000000
DEMO_PASS=000000
#Password for Mysql keystore user. exmaple:000000
KEYSTONE_DBPASS=000000
#--------------------Glance Config--------------------##
#Password for Mysql glance user. exmaple:000000
GLANCE_DBPASS=000000
#Password for Keystore glance user. exmaple:000000
GLANCE_PASS=000000
#--------------------Nova Config----------------------##
#Password for Mysql nova user. exmaple:000000
NOVA_DBPASS=000000
#Password for Keystore nova user. exmaple:000000
NOVA_PASS=000000
#--------------------Neturon Config-------------------##
#Password for Mysql neutron user. exmaple:000000
NEUTRON_DBPASS=000000
#Password for Keystore neutron user. exmaple:000000
NEUTRON_PASS=000000
#metadata secret for neutron. exmaple:000000
METADATA_SECRET=000000
#Tunnel Network Interface. example:x.x.x.x
INTERFACE_IP=192.168.1.111 "compute節點使用192.168.1.112"
#External Network Interface. example:eth1
INTERFACE_NAME=eth1
#External Network The Physical Adapter. example:provider
Physical_NAME=provider
#First Vlan ID in VLAN RANGE for VLAN Network. exmaple:101
minvlan=101
#Last Vlan ID in VLAN RANGE for VLAN Network. example:200
maxvlan=200
#--------------------Cinder Config--------------------##
#Password for Mysql cinder user. exmaple:000000
CINDER_DBPASS=000000
#Password for Keystore cinder user. exmaple:000000
CINDER_PASS=000000
#Cinder Block Disk. example:md126p3
BLOCK_DISK=vdb1
#--------------------Swift Config---------------------##
#Password for Keystore swift user. exmaple:000000
SWIFT_PASS=000000
#The NODE Object Disk for Swift. example:md126p4.
OBJECT_DISK=vdb2
#The NODE IP for Swift Storage Network. example:x.x.x.x.
STORAGE_LOCAL_NET_IP=192.168.1.112
#--------------------Heat Config----------------------##
#Password for Mysql heat user. exmaple:000000
HEAT_DBPASS=000000
#Password for Keystore heat user. exmaple:000000
HEAT_PASS=000000
#--------------------Zun Config-----------------------##
#Password for Mysql Zun user. exmaple:000000
ZUN_DBPASS=000000
#Password for Keystore Zun user. exmaple:000000
ZUN_PASS=000000
#Password for Mysql Kuryr user. exmaple:000000
KURYR_DBPASS=000000
#Password for Keystore Kuryr user. exmaple:000000
KURYR_PASS=000000
#--------------------Ceilometer Config----------------##
#Password for Gnocchi ceilometer user. exmaple:000000
CEILOMETER_DBPASS=000000
#Password for Keystore ceilometer user. exmaple:000000
CEILOMETER_PASS=000000
#--------------------AODH Config----------------##
#Password for Mysql AODH user. exmaple:000000
AODH_DBPASS=000000
#Password for Keystore AODH user. exmaple:000000
AODH_PASS=000000
#--------------------Barbican Config----------------##
#Password for Mysql Barbican user. exmaple:000000
BARBICAN_DBPASS=000000
#Password for Keystore Barbican user. exmaple:000000
BARBICAN_PASS=000000
[root@controller ~]# scp /etc/iaas-openstack/openrc.sh compute:/etc/iaas-openstack/openrc.sh
The authenticity of host 'compute (192.168.1.112)' can't be established.
ECDSA key fingerprint is SHA256:FqTDtd28812m1IAFRjAbURuwoPQQRbq7gqGrEYh77C4.
ECDSA key fingerprint is MD5:1a:d0:c6:aa:89:3a:1c:ed:c6:21:1d:dc:4d:63:e8:33.
Are you sure you want to continue connecting (yes/no)? yes
Warning: Permanently added 'compute,192.168.1.112' (ECDSA) to the list of known hosts.
openrc.sh 100% 3816 1.7MB/s 00:00
初始化環境
[root@controller ~]# iaas-pre-host.sh
[root@compute ~]# iaas-pre-host.sh
-------------------------------------------------------------------------------------------------------
Total 26 MB/s | 2.8 MB 00:00:00
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
Installing : 32:bind-libs-9.9.4-61.el7.x86_64 1/2
Installing : 32:bind-9.9.4-61.el7.x86_64 2/2
Verifying : 32:bind-9.9.4-61.el7.x86_64 1/2
Verifying : 32:bind-libs-9.9.4-61.el7.x86_64 2/2
Installed:
bind.x86_64 32:9.9.4-61.el7
Dependency Installed:
bind-libs.x86_64 32:9.9.4-61.el7
Complete!
Created symlink from /etc/systemd/system/multi-user.target.wants/named.service to /usr/lib/systemd/system/named.service.
Please Reboot or Reconnect the terminal
controller安裝mysql
[root@controller ~]# iaas-install-mysql.sh
Dependencies Resolved
=======================================================================================================
Package Arch Version Repository Size
=======================================================================================================
Installing:
etcd x86_64 3.3.11-2.el7.centos iaas 10 M
Transaction Summary
=======================================================================================================
Install 1 Package
Total download size: 10 M
Installed size: 45 M
Downloading packages:
etcd-3.3.11-2.el7.centos.x86_64.rpm | 10 MB 00:00:00
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
Installing : etcd-3.3.11-2.el7.centos.x86_64 1/1
Verifying : etcd-3.3.11-2.el7.centos.x86_64 1/1
Installed:
etcd.x86_64 0:3.3.11-2.el7.centos
Complete!
Created symlink from /etc/systemd/system/multi-user.target.wants/etcd.service to /usr/lib/systemd/system/etcd.service.
controller節點安裝keystone
[root@controller ~]# iaas-install-keystone.sh
controller節點安裝glance
[root@controller ~]# iaas-install-glance.sh
INFO [alembic.runtime.migration] Context impl MySQLImpl.
INFO [alembic.runtime.migration] Will assume non-transactional DDL.
Database is synced successfully.
Created symlink from /etc/systemd/system/multi-user.target.wants/openstack-glance-api.service to /usr/lib/systemd/system/openstack-glance-api.service.
Created symlink from /etc/systemd/system/multi-user.target.wants/openstack-glance-registry.service to /usr/lib/systemd/system/openstack-glance-registry.service.
controller節點安裝nova
[root@controller ~]# iaas-install-nova-controller.sh
Complete!
Found 1 cell mappings.
Skipping cell0 since it does not contain hosts.
3732153e-88d5-4a77-ade0-bacfc88655e0
/usr/lib/python2.7/site-packages/pymysql/cursors.py:166: Warning: (1831, u'Duplicate index `block_device_mapping_instance_uuid_virtual_name_device_name_idx`. This is deprecated and will be disallowed in a future release.')
result = self._query(query)
/usr/lib/python2.7/site-packages/pymysql/cursors.py:166: Warning: (1831, u'Duplicate index `uniq_instances0uuid`. This is deprecated and will be disallowed in a future release.')
result = self._query(query)
+-------+--------------------------------------+------------------------------------+-------------------------------------------------+
| Name | UUID | Transport URL | Database Connection |
+-------+--------------------------------------+------------------------------------+-------------------------------------------------+
| cell0 | 00000000-0000-0000-0000-000000000000 | none:/ | mysql+pymysql://nova:****@controller/nova_cell0 |
| cell1 | 3732153e-88d5-4a77-ade0-bacfc88655e0 | rabbit://openstack:****@controller | mysql+pymysql://nova:****@controller/nova |
+-------+--------------------------------------+------------------------------------+-------------------------------------------------+
Created symlink from /etc/systemd/system/multi-user.target.wants/openstack-nova-api.service to /usr/lib/systemd/system/openstack-nova-api.service.
Created symlink from /etc/systemd/system/multi-user.target.wants/openstack-nova-consoleauth.service to /usr/lib/systemd/system/openstack-nova-consoleauth.service.
Created symlink from /etc/systemd/system/multi-user.target.wants/openstack-nova-scheduler.service to /usr/lib/systemd/system/openstack-nova-scheduler.service.
Created symlink from /etc/systemd/system/multi-user.target.wants/openstack-nova-conductor.service to /usr/lib/systemd/system/openstack-nova-conductor.service.
Created symlink from /etc/systemd/system/multi-user.target.wants/openstack-nova-novncproxy.service to /usr/lib/systemd/system/openstack-nova-novncproxy.service.
compute節點安裝nova
[root@compute ~]# iaas-install-nova-compute.sh
Complete!
Created symlink from /etc/systemd/system/multi-user.target.wants/openstack-nova-compute.service to /usr/lib/systemd/system/openstack-nova-compute.service.
Pseudo-terminal will not be allocated because stdin is not a terminal.
+----+--------------+---------+------+---------+-------+------------+
| ID | Binary | Host | Zone | Status | State | Updated At |
+----+--------------+---------+------+---------+-------+------------+
| 6 | nova-compute | compute | nova | enabled | up | None |
+----+--------------+---------+------+---------+-------+------------+
Found 2 cell mappings.
Skipping cell0 since it does not contain hosts.
Getting computes from cell 'cell1': 3732153e-88d5-4a77-ade0-bacfc88655e0
Checking host mapping for compute host 'compute': d4e3fc62-b7f3-42c1-887c-3135f2d9c09b
Creating host mapping for compute host 'compute': d4e3fc62-b7f3-42c1-887c-3135f2d9c09b
Found 1 unmapped computes in cell: 3732153e-88d5-4a77-ade0-bacfc88655e0
controller節點安裝neutron
[root@controller ~]# iaas-install-neutron-controller.sh
INFO [alembic.runtime.migration] Running upgrade 7d32f979895f -> 594422d373ee, fip qos
INFO [alembic.runtime.migration] Running upgrade b67e765a3524 -> a84ccf28f06a, migrate dns name from port
INFO [alembic.runtime.migration] Running upgrade a84ccf28f06a -> 7d9d8eeec6ad, rename tenant to project
INFO [alembic.runtime.migration] Running upgrade 7d9d8eeec6ad -> a8b517cff8ab, Add routerport bindings for L3 HA
INFO [alembic.runtime.migration] Running upgrade a8b517cff8ab -> 3b935b28e7a0, migrate to pluggable ipam
INFO [alembic.runtime.migration] Running upgrade 3b935b28e7a0 -> b12a3ef66e62, add standardattr to qos policies
INFO [alembic.runtime.migration] Running upgrade b12a3ef66e62 -> 97c25b0d2353, Add Name and Description to the networksegments table
INFO [alembic.runtime.migration] Running upgrade 97c25b0d2353 -> 2e0d7a8a1586, Add binding index to RouterL3AgentBinding
INFO [alembic.runtime.migration] Running upgrade 2e0d7a8a1586 -> 5c85685d616d, Remove availability ranges.
OK
Created symlink from /etc/systemd/system/multi-user.target.wants/neutron-server.service to /usr/lib/systemd/system/neutron-server.service.
Created symlink from /etc/systemd/system/multi-user.target.wants/neutron-linuxbridge-agent.service to /usr/lib/systemd/system/neutron-linuxbridge-agent.service.
Created symlink from /etc/systemd/system/multi-user.target.wants/neutron-dhcp-agent.service to /usr/lib/systemd/system/neutron-dhcp-agent.service.
Created symlink from /etc/systemd/system/multi-user.target.wants/neutron-metadata-agent.service to /usr/lib/systemd/system/neutron-metadata-agent.service.
Created symlink from /etc/systemd/system/multi-user.target.wants/neutron-l3-agent.service to /usr/lib/systemd/system/neutron-l3-agent.service.
compute節點安裝neutron
[root@controller ~]# iaas-install-neutron-compute.sh
controler節點安裝dashboard
[root@controller ~]# iaas-install-dashboard.sh
controler節點安裝cinder
[root@controller ~]# iaas-install-cinder-controller.sh
+--------------+-----------------------------------------+
| Field | Value |
+--------------+-----------------------------------------+
| enabled | True |
| id | de76ba4670344dfea158ee34cf66aa66 |
| interface | admin |
| region | RegionOne |
| region_id | RegionOne |
| service_id | c762045c08b8412c977abb6ecaae000d |
| service_name | cinderv3 |
| service_type | volumev3 |
| url | http://controller:8776/v3/%(tenant_id)s |
+--------------+-----------------------------------------+
Option "logdir" from group "DEFAULT" is deprecated. Use option "log-dir" from group "DEFAULT".
Created symlink from /etc/systemd/system/multi-user.target.wants/openstack-cinder-api.service to /usr/lib/systemd/system/openstack-cinder-api.service.
Created symlink from /etc/systemd/system/multi-user.target.wants/openstack-cinder-scheduler.service to /usr/lib/systemd/system/openstack-cinder-scheduler.service.
compute節點安裝cinder
[root@compute ~]# iaas-install-cinder-compute.sh
Complete!
Wiping xfs signature on /dev/vdb1.
Physical volume "/dev/vdb1" successfully created.
Volume group "cinder-volumes" successfully created
Created symlink from /etc/systemd/system/multi-user.target.wants/openstack-cinder-volume.service to /usr/lib/systemd/system/openstack-cinder-volume.service.
Created symlink from /etc/systemd/system/multi-user.target.wants/target.service to /usr/lib/systemd/system/target.service.
controler節點安裝swift
[root@controller ~]# iaas-install-swift-controller.sh
Reassigned 1024 (100.00%) partitions. Balance is now 0.00. Dispersion is now 0.00
Device d0r1z1-192.168.1.112:6000R192.168.1.112:6000/vdb2_"" with 100.0 weight got id 0
object.builder, build version 1, id 9b3d3748974f4e30b83a47861fe6b7fb
1024 partitions, 1.000000 replicas, 1 regions, 1 zones, 1 devices, 100.00 balance, 0.00 dispersion
The minimum number of hours before a partition can be reassigned is 1 (0:00:00 remaining)
The overload factor is 0.00% (0.000000)
Ring file object.ring.gz not found, probably it hasn't been written yet
Devices: id region zone ip address:port replication ip:port name weight partitions balance flags meta
0 1 1 192.168.1.112:6000 192.168.1.112:6000 vdb2 100.00 0 -100.00
Reassigned 1024 (100.00%) partitions. Balance is now 0.00. Dispersion is now 0.00
~
Created symlink from /etc/systemd/system/multi-user.target.wants/openstack-swift-proxy.service to /usr/lib/systemd/system/openstack-swift-proxy.service.
compute節點安裝swift
[root@compute ~]# iaas-install-swift-compute.sh
Complete!
meta-data=/dev/vdb2 isize=1024 agcount=4, agsize=1310720 blks
= sectsz=512 attr=2, projid32bit=1
= crc=1 finobt=0, sparse=0
data = bsize=4096 blocks=5242880, imaxpct=25
= sunit=0 swidth=0 blks
naming =version 2 bsize=4096 ascii-ci=0 ftype=1
log =internal log bsize=4096 blocks=2560, version=2
= sectsz=512 sunit=0 blks, lazy-count=1
realtime =none extsz=4096 blocks=0, rtextents=0
scp: /etc/swift/*.ring.gz: No such file or directory
Created symlink from /etc/systemd/system/multi-user.target.wants/openstack-swift-object-auditor.service to /usr/lib/systemd/system/openstack-swift-object-auditor.service.
Created symlink from /etc/systemd/system/multi-user.target.wants/openstack-swift-object-replicator.service to /usr/lib/systemd/system/openstack-swift-object-replicator.service.
Created symlink from /etc/systemd/system/multi-user.target.wants/openstack-swift-object-updater.service to /usr/lib/systemd/system/openstack-swift-object-updater.service.
# 查看分區情況
[root@compute ~]# lsblk
NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT
vda 253:0 0 20G 0 disk
└─vda1 253:1 0 20G 0 part /
vdb 253:16 0 150G 0 disk
├─vdb1 253:17 0 20G 0 part
│ ├─cinder--volumes-cinder--volumes--pool_tmeta 252:0 0 20M 0 lvm
│ │ └─cinder--volumes-cinder--volumes--pool 252:2 0 19G 0 lvm
│ └─cinder--volumes-cinder--volumes--pool_tdata 252:1 0 19G 0 lvm
│ └─cinder--volumes-cinder--volumes--pool 252:2 0 19G 0 lvm
└─vdb2 253:18 0 20G 0 part /swift/node/vdb2
controler節點安裝heat
[root@controller ~]# iaas-install-heat.sh
Created symlink from /etc/systemd/system/multi-user.target.wants/openstack-heat-api.service to /usr/lib/systemd/system/openstack-heat-api.service.
Created symlink from /etc/systemd/system/multi-user.target.wants/openstack-heat-api-cfn.service to /usr/lib/systemd/system/openstack-heat-api-cfn.service.
Created symlink from /etc/systemd/system/multi-user.target.wants/openstack-heat-engine.service to /usr/lib/systemd/system/openstack-heat-engine.service.
controler節點安裝aodh
[root@controller ~]# iaas-install-aodh.sh
Created symlink from /etc/systemd/system/multi-user.target.wants/openstack-aodh-evaluator.service to /usr/lib/systemd/system/openstack-aodh-evaluator.service.
Created symlink from /etc/systemd/system/multi-user.target.wants/openstack-aodh-notifier.service to /usr/lib/systemd/system/openstack-aodh-notifier.service.
Created symlink from /etc/systemd/system/multi-user.target.wants/openstack-aodh-listener.service to /usr/lib/systemd/system/openstack-aodh-listener.service.
controler節點安裝zun
[root@controller ~]# iaas-install-zun-controller.sh
Created symlink from /etc/systemd/system/multi-user.target.wants/zun-api.service to /etc/systemd/system/zun-api.service.
Created symlink from /etc/systemd/system/multi-user.target.wants/zun-wsproxy.service to /etc/systemd/system/zun-wsproxy.service.
compute節點安裝zun
[root@compute ~]# iaas-install-zun-compute.sh
Complete!
Created symlink from /etc/systemd/system/multi-user.target.wants/docker.service to /usr/lib/systemd/system/docker.service.
net.bridge.bridge-nf-call-ip6tables = 1
net.bridge.bridge-nf-call-iptables = 1
net.ipv4.ip_forward = 1
Created symlink from /etc/systemd/system/multi-user.target.wants/kuryr-libnetwork.service to /etc/systemd/system/kuryr-libnetwork.service.
Created symlink from /etc/systemd/system/multi-user.target.wants/zun-compute.service to /etc/systemd/system/zun-compute.service.
controler節點安裝ceilometer
[root@controller ~]# iaas-install-ceilometer-controller.sh
+-----------+----------------------------------+
| Field | Value |
+-----------+----------------------------------+
| domain_id | None |
| id | 75670b8a691a49ca9115c6382501e999 |
| name | ResellerAdmin |
+-----------+----------------------------------+
2021-09-30 06:46:53,131 [29167] INFO gnocchi.service: Gnocchi version 4.2.3
2021-09-30 06:46:53,594 [29167] INFO gnocchi.cli.manage: Upgrading indexer SQLAlchemyIndexer: mysql+pymysql://gnocchi:000000@controller/gnocchi
2021-09-30 06:46:53,854 [29167] INFO gnocchi.cli.manage: Upgrading storage FileStorage: /var/lib/gnocchi
2021-09-30 06:46:53,855 [29167] INFO gnocchi.cli.manage: Upgrading incoming storage FileStorage: /var/lib/gnocchi
Created symlink from /etc/systemd/system/multi-user.target.wants/gnocchi-api.service to /usr/lib/systemd/system/gnocchi-api.service.
Created symlink from /etc/systemd/system/multi-user.target.wants/gnocchi-metricd.service to /usr/lib/systemd/system/gnocchi-metricd.service.
Created symlink from /etc/systemd/system/multi-user.target.wants/openstack-ceilometer-notification.service to /usr/lib/systemd/system/openstack-ceilometer-notification.service.
Created symlink from /etc/systemd/system/multi-user.target.wants/openstack-ceilometer-central.service to /usr/lib/systemd/system/openstack-ceilometer-central.service.
compute節點安裝ceilometer
[root@compute ~]# iaas-install-ceilometer-compute.sh
Complete!
Created symlink from /etc/systemd/system/multi-user.target.wants/openstack-ceilometer-compute.service to /usr/lib/systemd/system/openstack-ceilometer-compute.service.