前言:
nova服務(wù)是openstack最重要的一個(gè)組件,沒(méi)有之一,該組件是云計(jì)算的計(jì)算核心,大體組件如下:
OpenStack Docs: Compute service overview
挑些重點(diǎn),nova-api,libvirt,nova-placement-api,nova-api-metadata,nova-compute
nova-api service
Accepts and responds to end user compute API calls. The service supports the OpenStack Compute API. It enforces some policies and initiates most orchestration activities, such as running an instance.
nova-api-metadata service
Accepts metadata requests from instances. The nova-api-metadata service is generally used when you run in multi-host mode with nova-network installations. For details, see Metadata service in the Compute Administrator Guide.
nova-compute service
A worker daemon that creates and terminates virtual machine instances through hypervisor APIs. For example:
XenAPI for XenServer/XCP
libvirt for KVM or QEMU
VMwareAPI for VMware
Processing is fairly complex. Basically, the daemon accepts actions from the queue and performs a series of system commands such as launching a KVM instance and updating its state in the database.
nova-placement-api service
Tracks the inventory and usage of each provider. For details, see Placement API.
nova-scheduler service
Takes a virtual machine instance request from the queue and determines on which compute server host it runs.
nova-conductor module
Mediates interactions between the nova-compute service and the database. It eliminates direct accesses to the cloud database made by the nova-compute service. The nova-conductor module scales horizontally. However, do not deploy it on nodes where the nova-compute service runs. For more information, see the conductor section in the Configuration Options.
nova-consoleauth daemon
Authorizes tokens for users that console proxies provide. See nova-novncproxy and nova-xvpvncproxy. This service must be running for console proxies to work. You can run proxies of either type against a single nova-consoleauth service in a cluster configuration. For information, see About nova-consoleauth.
Deprecated since version 18.0.0: nova-consoleauth is deprecated since 18.0.0 (Rocky) and will be removed in an upcoming release. See workarounds.enable_consoleauth for details.
nova-novncproxy daemon
Provides a proxy for accessing running instances through a VNC connection. Supports browser-based novnc clients.
nova-spicehtml5proxy daemon
Provides a proxy for accessing running instances through a SPICE connection. Supports browser-based HTML5 client.
nova-xvpvncproxy daemon
Provides a proxy for accessing running instances through a VNC connection. Supports an OpenStack-specific Java client.
The queue
A central hub for passing messages between daemons. Usually implemented with RabbitMQ, also can be implemented with another AMQP message queue, such as ZeroMQ
并且nova安裝部署是分為controller節(jié)點(diǎn)和computer節(jié)點(diǎn)了,controller節(jié)點(diǎn)就一個(gè),computer節(jié)點(diǎn)可以是若干個(gè),總體來(lái)說(shuō),nova的安裝部署難度是比keystone,glance大很多的,因?yàn)樯婕暗慕M件更加的多了,也有節(jié)點(diǎn)的加入這些因素。
OK,下面開始controller節(jié)點(diǎn)的nova部署。
一,
官方文檔:OpenStack Docs: Install and configure controller node for Red Hat Enterprise Linux and CentOS
創(chuàng)建數(shù)據(jù)庫(kù)、服務(wù)憑據(jù)和API端點(diǎn)
本例中是在192.168.123.130服務(wù)器上操作,該服務(wù)器的主機(jī)名是openstack1
1)
數(shù)據(jù)庫(kù)的創(chuàng)建,SQL語(yǔ)句如下;
注意,密碼都是和數(shù)據(jù)庫(kù)庫(kù)名一樣的哦
CREATE DATABASE nova_api;
CREATE DATABASE nova;
CREATE DATABASE nova_cell0;
CREATE DATABASE placement;
GRANT ALL PRIVILEGES ON nova_api.* TO 'nova'@'localhost' IDENTIFIED BY 'nova';
GRANT ALL PRIVILEGES ON nova_api.* TO 'nova'@'%' IDENTIFIED BY 'nova';
GRANT ALL PRIVILEGES ON nova.* TO 'nova'@'localhost' IDENTIFIED BY 'nova';
GRANT ALL PRIVILEGES ON nova.* TO 'nova'@'%' IDENTIFIED BY 'nova';
GRANT ALL PRIVILEGES ON nova_cell0.* TO 'nova'@'localhost' IDENTIFIED BY 'nova';
GRANT ALL PRIVILEGES ON nova_cell0.* TO 'nova'@'%' IDENTIFIED BY 'nova';
GRANT ALL PRIVILEGES ON placement.* TO 'placement'@'localhost' IDENTIFIED BY 'placement';
GRANT ALL PRIVILEGES ON placement.* TO 'placement'@'%' IDENTIFIED BY 'placement';
flush privileges;
2)
在keystone上面注冊(cè)nova服務(wù)
#在keystone上創(chuàng)建nova用戶
openstack user create --domain default --password=nova nova
#輸出如下:
[root@openstack1 ~]# openstack user create --domain default --password=nova nova
+---------------------+----------------------------------+
| Field | Value |
+---------------------+----------------------------------+
| domain_id | default |
| enabled | True |
| id | 013b5c3530a144628fedabd7a158b08f |
| name | nova |
| options | {} |
| password_expires_at | None |
+---------------------+----------------------------------+
#在keystone上將nova用戶配置為admin角色并添加進(jìn)service項(xiàng)目
openstack role add --project service --user nova admin
#注:此命令無(wú)輸出
3)創(chuàng)建nova計(jì)算服務(wù)的實(shí)體
openstack service create --name nova --description "OpenStack Compute" compute
輸出如下:
[root@openstack1 ~]# openstack service create --name nova --description "OpenStack Compute" compute
+-------------+----------------------------------+
| Field | Value |
+-------------+----------------------------------+
| description | OpenStack Compute |
| enabled | True |
| id | 83721cda2dd94e8bbfad43e34657a6da |
| name | nova |
| type | compute |
+-------------+----------------------------------+
4)
創(chuàng)建nova-api的檢查點(diǎn)
openstack endpoint create --region RegionOne compute public http://openstack1:8774/v2.1
openstack endpoint create --region RegionOne compute internal http://openstack1:8774/v2.1
openstack endpoint create --region RegionOne compute admin http://openstack1:8774/v2.1
5)
在keystone上注冊(cè)placement的用戶和service
注意,這里的密碼是placement
openstack user create --domain default --password=placement placement
openstack role add --project service --user placement admin
openstack service create --name placement --description "Placement API" placement
6)
創(chuàng)建placement服務(wù)的檢查點(diǎn):
openstack endpoint create --region RegionOne placement public http://openstack1:8778
openstack endpoint create --region RegionOne placement internal http://openstack1:8778
openstack endpoint create --region RegionOne placement admin http://openstack1:8778
整體查詢一下,service和endpoint:
4個(gè)service,12個(gè)endpoint
[root@openstack1 ~]# openstack service list
+----------------------------------+-----------+-----------+
| ID | Name | Type |
+----------------------------------+-----------+-----------+
| 629d817aa28d4579b08663529efc63e4 | placement | placement |
| 7aa0d862c3dc4ae884e7f02551b07630 | glance | image |
| 83721cda2dd94e8bbfad43e34657a6da | nova | compute |
| c187cea7ed9c46668a229a3278b1e434 | keystone | identity |
+----------------------------------+-----------+-----------+
[root@openstack1 ~]# openstack endpoint list
+----------------------------------+-----------+--------------+--------------+---------+-----------+-----------------------------+
| ID | Region | Service Name | Service Type | Enabled | Interface | URL |
+----------------------------------+-----------+--------------+--------------+---------+-----------+-----------------------------+
| 010363cc3b224811ab1c45d67f56d475 | RegionOne | placement | placement | True | public | http://openstack1:8778 |
| 09b682984f4d446b9624de291b27ba43 | RegionOne | keystone | identity | True | internal | http://openstack1:5000/v3/ |
| 168e152a5ecd471183d5772b0d582039 | RegionOne | glance | image | True | public | http://openstack1:9292 |
| 1d267eb74ab245958730f80b75c1abf3 | RegionOne | nova | compute | True | internal | http://openstack1:8774/v2.1 |
| 4cbde990b9ac4e5d8cb58ecea6591361 | RegionOne | placement | placement | True | admin | http://openstack1:8778 |
| 632410fddc98491496f54d93a9d13a96 | RegionOne | keystone | identity | True | public | http://openstack1:5000/v3/ |
| 63cf103027204a5d845c9da6a08f36e0 | RegionOne | nova | compute | True | public | http://openstack1:8774/v2.1 |
| 8bbfa274e32f4a069b172976a0e209e4 | RegionOne | placement | placement | True | internal | http://openstack1:8778 |
| 9f46fdd5d8a7498d8a12b047f21095ab | RegionOne | glance | image | True | admin | http://openstack1:9292 |
| a3610b51395e49d8898463136d24cec3 | RegionOne | nova | compute | True | admin | http://openstack1:8774/v2.1 |
| a57efb7be1664e9bae2ad823bef3ea5a | RegionOne | glance | image | True | internal | http://openstack1:9292 |
| a9e0562e0f5241b49c9106dadcf88db7 | RegionOne | keystone | identity | True | admin | http://openstack1:5000/v3/ |
+----------------------------------+-----------+--------------+--------------+---------+-----------+-----------------------------+
二,
安裝nova服務(wù)和配置文件的修改
1,
nova的yum安裝:
六個(gè)服務(wù)
yum install openstack-nova-api openstack-nova-conductor \
openstack-nova-console openstack-nova-novncproxy \
openstack-nova-scheduler openstack-nova-placement-api -y
2,
快速修改配置文件
#這里在強(qiáng)調(diào)一次,rabbitmq的密碼是RABBIT_PASS,主機(jī)名是openstack1,而不是官網(wǎng)文檔里的controller
# 默認(rèn)情況下,計(jì)算服務(wù)使用內(nèi)置的防火墻服務(wù)。由于網(wǎng)絡(luò)服務(wù)包含了防火墻服務(wù),必須使用``nova.virt.firewall.NoopFirewallDriver``防火墻服務(wù)來(lái)禁用掉計(jì)算服務(wù)內(nèi)置的防火墻服務(wù)(第四行的內(nèi)容)
openstack-config --set /etc/nova/nova.conf DEFAULT enabled_apis osapi_compute,metadata
openstack-config --set /etc/nova/nova.conf DEFAULT my_ip 192.168.123.130
openstack-config --set /etc/nova/nova.conf DEFAULT use_neutron true
openstack-config --set /etc/nova/nova.conf DEFAULT firewall_driver nova.virt.firewall.NoopFirewallDriver
openstack-config --set /etc/nova/nova.conf DEFAULT transport_url rabbit://openstack:RABBIT_PASS@openstack1
openstack-config --set /etc/nova/nova.conf api_database connection mysql+pymysql://nova:nova@openstack1/nova_api
openstack-config --set /etc/nova/nova.conf database connection mysql+pymysql://nova:nova@openstack1/nova
openstack-config --set /etc/nova/nova.conf placement_database connection mysql+pymysql://placement:placement@openstack1/placement
openstack-config --set /etc/nova/nova.conf api auth_strategy keystone
openstack-config --set /etc/nova/nova.conf keystone_authtoken auth_url http://openstack1:5000/v3
openstack-config --set /etc/nova/nova.conf keystone_authtoken memcached_servers openstack1:11211
openstack-config --set /etc/nova/nova.conf keystone_authtoken auth_type password
openstack-config --set /etc/nova/nova.conf keystone_authtoken project_domain_name default
openstack-config --set /etc/nova/nova.conf keystone_authtoken user_domain_name default
openstack-config --set /etc/nova/nova.conf keystone_authtoken project_name service
openstack-config --set /etc/nova/nova.conf keystone_authtoken username nova
openstack-config --set /etc/nova/nova.conf keystone_authtoken password nova
openstack-config --set /etc/nova/nova.conf vnc enabled true
openstack-config --set /etc/nova/nova.conf vnc server_listen '$my_ip'
openstack-config --set /etc/nova/nova.conf vnc server_proxyclient_address '$my_ip'
openstack-config --set /etc/nova/nova.conf glance api_servers http://openstack1:9292
openstack-config --set /etc/nova/nova.conf oslo_concurrency lock_path /var/lib/nova/tmp
openstack-config --set /etc/nova/nova.conf placement region_name RegionOne
openstack-config --set /etc/nova/nova.conf placement project_domain_name Default
openstack-config --set /etc/nova/nova.conf placement project_name service
openstack-config --set /etc/nova/nova.conf placement auth_type password
openstack-config --set /etc/nova/nova.conf placement user_domain_name Default
openstack-config --set /etc/nova/nova.conf placement auth_url http://openstack1:5000/v3
openstack-config --set /etc/nova/nova.conf placement username placement
openstack-config --set /etc/nova/nova.conf placement password placement
openstack-config --set /etc/nova/nova.conf scheduler discover_hosts_in_cells_interval 300
配置文件的修改具體內(nèi)容如下:
[root@openstack1 ~]# grep '^[a-z]' /etc/nova/nova.conf
enabled_apis = osapi_compute,metadata
my_ip = 192.168.123.130
use_neutron = true
firewall_driver = nova.virt.firewall.NoopFirewallDriver
transport_url = rabbit://openstack:RABBIT_PASS@openstack1
auth_strategy = keystone
connection = mysql+pymysql://nova:nova@openstack1/nova_api
connection = mysql+pymysql://nova:nova@openstack1/nova
api_servers = http://openstack1:9292
auth_url = http://openstack1:5000/v3
memcached_servers = openstack1:11211
auth_type = password
project_domain_name = default
user_domain_name = default
project_name = service
username = nova
password = nova
lock_path = /var/lib/nova/tmp
region_name = RegionOne
project_domain_name = Default
project_name = service
auth_type = password
user_domain_name = Default
auth_url = http://openstack1:5000/v3
username = placement
password = placement
connection = mysql+pymysql://placement:placement@openstack1/placement
discover_hosts_in_cells_interval = 300
enabled = true
server_listen = $my_ip
server_proxyclient_address = $my_ip
3,
由于某個(gè)包的bug,需要修改虛擬主機(jī)的配置文件,增加如下內(nèi)容:
vim /etc/httpd/conf.d/00-nova-placement-api.conf
<Directory /usr/bin>
<IfVersion >= 2.4>
Require all granted
</IfVersion>
<IfVersion < 2.4>
Order allow,deny
Allow from all
</IfVersion>
</Directory>
修改完畢后,重啟httpd服務(wù):
systemctl restart httpd
查看端口8778,可以發(fā)現(xiàn)表示正常:
root@openstack1 ~]# netstat -antup |grep 8778
tcp6 0 0 :::8778 :::* LISTEN 5522/httpd
4)
數(shù)據(jù)庫(kù)創(chuàng)建相關(guān)工作表
# nova_api有32張表,placement有32張表,nova_cell0有110張表,nova也有110張表
填充nova-api
?and?placement
?databases
su -s /bin/sh -c "nova-manage api_db sync" nova
#注,此命令無(wú)輸出,因此,請(qǐng)用echo $?查看是否正常執(zhí)行
注冊(cè)cell0
?database
su -s /bin/sh -c "nova-manage cell_v2 map_cell0" nova
#注,此命令無(wú)輸出,因此,請(qǐng)用echo $?查看是否正常執(zhí)行
創(chuàng)建cell1
?cell單元格
su -s /bin/sh -c "nova-manage cell_v2 create_cell --name=cell1 --verbose" nova
#注,此命令有輸出,本例是d8257cfe-e583-474c-b97c-03de5eba2b0e
填充nova這個(gè)數(shù)據(jù)庫(kù):
su -s /bin/sh -c "nova-manage db sync" nova
#注,此命令有輸出,會(huì)有警告,但警告可忽略。因此,請(qǐng)用echo $?查看是否正常執(zhí)行
#警告內(nèi)容如下:/usr/lib/python2.7/site-packages/pymysql/cursors.py:170: 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:170: Warning: (1831, u'Duplicate index `uniq_instances0uuid`. This is deprecated and will be disallowed in a future release.')
result = self._query(query)
確認(rèn)nova cell0 and cell1?是否正確注冊(cè):
su -s /bin/sh -c "nova-manage cell_v2 list_cells" nova
#輸出如下表示正確
[root@openstack1 ~]# su -s /bin/sh -c "nova-manage cell_v2 list_cells" nova
+-------+--------------------------------------+------------------------------------+-------------------------------------------------+----------+
| Name | UUID | Transport URL | Database Connection | Disabled |
+-------+--------------------------------------+------------------------------------+-------------------------------------------------+----------+
| cell0 | 00000000-0000-0000-0000-000000000000 | none:/ | mysql+pymysql://nova:****@openstack1/nova_cell0 | False |
| cell1 | d8257cfe-e583-474c-b97c-03de5eba2b0e | rabbit://openstack:****@openstack1 | mysql+pymysql://nova:****@openstack1/nova | False |
+-------+--------------------------------------+------------------------------------+-------------------------------------------------+----------+
查詢數(shù)據(jù)庫(kù)的表的數(shù)目是否正確(兩個(gè)110,兩個(gè)32):
[root@openstack1 ~]# mysql -h192.168.123.130 -unova -pnova -e "use nova;show tables;" |wc -l
111
[root@openstack1 ~]# mysql -h192.168.123.130 -unova -pnova -e "use nova_cell0;show tables;" |wc -l
111
[root@openstack1 ~]# mysql -h192.168.123.130 -unova -pnova -e "use nova_api;show tables;" |wc -l
33
[root@openstack1 ~]# mysql -h192.168.123.130 -uplacement -pplacement -e "use placement;show tables;" |wc -l
33
三,
控制節(jié)點(diǎn)的nova相關(guān)服務(wù)的啟動(dòng)和加入自啟:
但是,這里是只有5個(gè)服務(wù),前面yum安裝的是6個(gè),是怎么回事呢?
nova-consoleauth自18.0.0 (Rocky)起已被棄用,并將在即將發(fā)布的版本中刪除。因此,全新安裝的時(shí)候,此服務(wù)不需要啟動(dòng)。
systemctl enable openstack-nova-api.service openstack-nova-consoleauth.service \
openstack-nova-scheduler.service openstack-nova-conductor.service \
openstack-nova-novncproxy.service
systemctl start openstack-nova-api.service openstack-nova-consoleauth.service \
openstack-nova-scheduler.service openstack-nova-conductor.service \
openstack-nova-novncproxy.service
systemctl status openstack-nova-api.service openstack-nova-consoleauth.service \
openstack-nova-scheduler.service openstack-nova-conductor.service \
openstack-nova-novncproxy.service
OK,查看服務(wù)狀態(tài),確認(rèn)服務(wù)都正常啟動(dòng)后控制節(jié)點(diǎn)的nova就安裝完畢了,下面將在computer節(jié)點(diǎn)安裝nova
192.168.123.131服務(wù)器上安裝部署nova,此節(jié)點(diǎn)是computer節(jié)點(diǎn),也就是說(shuō)libvirt,qemu-kvm等等軟件都是安裝在此節(jié)點(diǎn)上的
基本環(huán)境搭建和controller是一致的,具體搭建過(guò)程見(jiàn):云計(jì)算|OpenStack|社區(qū)版OpenStack安裝部署文檔(二---OpenStack運(yùn)行環(huán)境搭建)_晚風(fēng)_END的博客-CSDN博客
1,
yum安裝nova-computer
yum install openstack-nova-compute python-openstackclient openstack-utils -y
這些虛擬軟件是以擴(kuò)展的形式安裝的?
2,
快速修改配置文件(/etc/nova/nova.conf)?
第一個(gè)IP地址是131,其它的仍然是使用openstack1這個(gè)主機(jī)名,例如,rabbitmq,這個(gè)服務(wù)是部署在130上的。
openstack-config --set /etc/nova/nova.conf DEFAULT my_ip 192.168.123.131
openstack-config --set /etc/nova/nova.conf DEFAULT use_neutron True
openstack-config --set /etc/nova/nova.conf DEFAULT firewall_driver nova.virt.firewall.NoopFirewallDriver
openstack-config --set /etc/nova/nova.conf DEFAULT enabled_apis osapi_compute,metadata
openstack-config --set /etc/nova/nova.conf DEFAULT transport_url rabbit://openstack:RABBIT_PASS@openstack1
openstack-config --set /etc/nova/nova.conf api auth_strategy keystone
openstack-config --set /etc/nova/nova.conf keystone_authtoken auth_url http://openstack1:5000/v3
openstack-config --set /etc/nova/nova.conf keystone_authtoken memcached_servers openstack1:11211
openstack-config --set /etc/nova/nova.conf keystone_authtoken auth_type password
openstack-config --set /etc/nova/nova.conf keystone_authtoken project_domain_name default
openstack-config --set /etc/nova/nova.conf keystone_authtoken user_domain_name default
openstack-config --set /etc/nova/nova.conf keystone_authtoken project_name service
openstack-config --set /etc/nova/nova.conf keystone_authtoken username nova
openstack-config --set /etc/nova/nova.conf keystone_authtoken password nova
openstack-config --set /etc/nova/nova.conf vnc enabled True
openstack-config --set /etc/nova/nova.conf vnc server_listen 0.0.0.0
openstack-config --set /etc/nova/nova.conf vnc server_proxyclient_address '$my_ip'
openstack-config --set /etc/nova/nova.conf vnc novncproxy_base_url http://openstack1:6080/vnc_auto.html
openstack-config --set /etc/nova/nova.conf glance api_servers http://openstack1:9292
openstack-config --set /etc/nova/nova.conf oslo_concurrency lock_path /var/lib/nova/tmp
openstack-config --set /etc/nova/nova.conf placement region_name RegionOne
openstack-config --set /etc/nova/nova.conf placement project_domain_name Default
openstack-config --set /etc/nova/nova.conf placement project_name service
openstack-config --set /etc/nova/nova.conf placement auth_type password
openstack-config --set /etc/nova/nova.conf placement user_domain_name Default
openstack-config --set /etc/nova/nova.conf placement auth_url http://openstack1:5000/v3
openstack-config --set /etc/nova/nova.conf placement username placement
openstack-config --set /etc/nova/nova.conf placement password placement
具體的內(nèi)容如下;
ain_name = default
user_domain_name = default
project_name = service
username = nova
password = nova
lock_path = /var/lib/nova/tmp
region_name = RegionOne
project_domain_name = Default
project_name = service
auth_type = password
user_domain_name = Default
auth_url = http://openstack1:5000/v3
username = placement
enabled = True
server_listen = 0.0.0.0
server_proxyclient_address = $my_ip
novncproxy_base_url = http://openstack1:6080/vnc_auto.html
3,
啟動(dòng)nova相關(guān)服務(wù),并配置為開機(jī)自啟動(dòng)
systemctl enable libvirtd.service openstack-nova-compute.service
systemctl start libvirtd.service openstack-nova-compute.service
4,
將計(jì)算節(jié)點(diǎn)增加到cell數(shù)據(jù)庫(kù)
Important
Run the following commands on the?controller?node.?也就是在130服務(wù)器上運(yùn)行以下命令:
獲取管理員憑據(jù)以啟用僅限管理員的CLI命令,然后確認(rèn)數(shù)據(jù)庫(kù)中有計(jì)算主機(jī):文章來(lái)源:http://www.zghlxwxcb.cn/news/detail-786214.html
openstack compute service list --service nova-compute
#輸出如下,表示發(fā)現(xiàn)了computer節(jié)點(diǎn)
[root@openstack1 ~]# openstack compute service list --service nova-compute
+----+--------------+------------+------+---------+-------+----------------------------+
| ID | Binary | Host | Zone | Status | State | Updated At |
+----+--------------+------------+------+---------+-------+----------------------------+
| 10 | nova-compute | openstack2 | nova | enabled | up | 2023-02-01T06:42:35.000000 |
+----+--------------+------------+------+---------+-------+----------------------------+
5,
手動(dòng)注冊(cè)computer節(jié)點(diǎn)單元格信息到nvoa數(shù)據(jù)庫(kù)內(nèi):
[root@openstack1 ~]# su -s /bin/sh -c "nova-manage cell_v2 discover_hosts --verbose" nova
#輸出如下:
Found 2 cell mappings.
Skipping cell0 since it does not contain hosts.
Getting computes from cell 'cell1': d8257cfe-e583-474c-b97c-03de5eba2b0e
Found 0 unmapped computes in cell: d8257cfe-e583-474c-b97c-03de5eba2b0e
6,
驗(yàn)證nova服務(wù)是否正確安裝(仍然是在130controller節(jié)點(diǎn)操作)
openstack compute service list
#輸出如下:
可以看到三個(gè)服務(wù)在130上,一個(gè)computer在131也就是openstack2上面
[root@openstack1 ~]# openstack compute service list
+----+------------------+------------+----------+---------+-------+----------------------------+
| ID | Binary | Host | Zone | Status | State | Updated At |
+----+------------------+------------+----------+---------+-------+----------------------------+
| 1 | nova-consoleauth | openstack1 | internal | enabled | up | 2023-02-01T06:47:42.000000 |
| 2 | nova-scheduler | openstack1 | internal | enabled | up | 2023-02-01T06:47:48.000000 |
| 6 | nova-conductor | openstack1 | internal | enabled | up | 2023-02-01T06:47:44.000000 |
| 10 | nova-compute | openstack2 | nova | enabled | up | 2023-02-01T06:47:45.000000 |
+----+------------------+------------+----------+---------+-------+----------------------------+
在身份認(rèn)證服務(wù)中列出API端點(diǎn)以驗(yàn)證其連接性?
openstack catalog list
#輸出如下:
可以看到四個(gè)服務(wù),每個(gè)服務(wù)有三個(gè)檢查點(diǎn)
[root@openstack1 ~]# openstack catalog list
+-----------+-----------+-----------------------------------------+
| Name | Type | Endpoints |
+-----------+-----------+-----------------------------------------+
| placement | placement | RegionOne |
| | | public: http://openstack1:8778 |
| | | RegionOne |
| | | admin: http://openstack1:8778 |
| | | RegionOne |
| | | internal: http://openstack1:8778 |
| | | |
| glance | image | RegionOne |
| | | public: http://openstack1:9292 |
| | | RegionOne |
| | | admin: http://openstack1:9292 |
| | | RegionOne |
| | | internal: http://openstack1:9292 |
| | | |
| nova | compute | RegionOne |
| | | internal: http://openstack1:8774/v2.1 |
| | | RegionOne |
| | | public: http://openstack1:8774/v2.1 |
| | | RegionOne |
| | | admin: http://openstack1:8774/v2.1 |
| | | |
| keystone | identity | RegionOne |
| | | internal: http://openstack1:5000/v3/ |
| | | RegionOne |
| | | public: http://openstack1:5000/v3/ |
| | | RegionOne |
| | | admin: http://openstack1:5000/v3/ |
| | | |
+-----------+-----------+-----------------------------------------+
檢查placement API和cell服務(wù)是否正常工作
nova-status upgrade check
#輸出如下,全是success即可:
root@openstack1 ~]# nova-status upgrade check
+-------------------------------------------------------------------+
| Upgrade Check Results |
+-------------------------------------------------------------------+
| Check: Cells v2 |
| Result: Success |
| Details: None |
+-------------------------------------------------------------------+
| Check: Placement API |
| Result: Success |
| Details: None |
+-------------------------------------------------------------------+
| Check: Resource Providers |
| Result: Warning |
| Details: There are no compute resource providers in the Placement |
| service but there are 1 compute nodes in the deployment. |
| This means no compute nodes are reporting into the |
| Placement service and need to be upgraded and/or fixed. |
| See |
| https://docs.openstack.org/nova/latest/user/placement.html |
| for more details. |
+-------------------------------------------------------------------+
| Check: Ironic Flavor Migration |
| Result: Success |
| Details: None |
+-------------------------------------------------------------------+
| Check: API Service Version |
| Result: Success |
| Details: None |
+-------------------------------------------------------------------+
| Check: Request Spec Migration |
| Result: Success |
| Details: None |
+-------------------------------------------------------------------+
| Check: Console Auths |
| Result: Success |
| Details: None |
+-------------------------------------------------------------------+
OK,雙節(jié)點(diǎn)的nova就安裝配置完成了。文章來(lái)源地址http://www.zghlxwxcb.cn/news/detail-786214.html
到了這里,關(guān)于云計(jì)算|OpenStack|社區(qū)版OpenStack安裝部署文檔(五 --- 計(jì)算服務(wù)nova安裝部署---Rocky版)的文章就介紹完了。如果您還想了解更多內(nèi)容,請(qǐng)?jiān)谟疑辖撬阉鱐OY模板網(wǎng)以前的文章或繼續(xù)瀏覽下面的相關(guān)文章,希望大家以后多多支持TOY模板網(wǎng)!