CentOS Stream 9
Sponsored Link

OpenStack Dalmatian : Configure Nova #32024/10/09

 

Install OpenStack Compute Service (Nova).

This example is based on the environment like follows.
If you'd like to install Nova Compute on another Node, refer to here.

        eth0|10.0.0.30 
+-----------+-----------+
|   [ dlp.srv.world ]   |
|     (Control Node)    |
|                       |
|  MariaDB    RabbitMQ  |
|  Memcached  Nginx     |
|  Keystone   httpd     |
|  Glance     Nova API  |
|  Nova Compute         |
+-----------------------+

[1]
Install KVM HyperVisor on Compute Node Host, refer to here.
It's unnecessary to set Bridge networking on the section [2] of the link.
[2] Install Nova Compute.
# install from Dalmatian, EPEL, CRB

[root@dlp ~(keystone)]#
dnf --enablerepo=centos-openstack-dalmatian,epel,crb -y install openstack-nova-compute
[3] In addition to basic settings of Nova, add following settings.
[root@dlp ~(keystone)]#
vi /etc/nova/nova.conf
# add into the [DEFAULT] section
compute_driver = libvirt.LibvirtDriver

# add into the [vnc] section
# IP address compute instances listen
[vnc]
enabled = True
server_listen = 10.0.0.30
server_proxyclient_address = 10.0.0.30
novncproxy_host = 127.0.0.1
novncproxy_port = 6080
novncproxy_base_url = https://dlp.srv.world:6080/vnc_auto.html
[4] If SELinux is enabled, change policy.
[root@dlp ~(keystone)]#
dnf --enablerepo=centos-openstack-dalmatian -y install openstack-selinux

[5] If Firewalld is running, allow ports for services.
[root@dlp ~(keystone)]#
firewall-cmd --add-port=5900-5999/tcp

success
[root@dlp ~(keystone)]#
firewall-cmd --runtime-to-permanent

success
[6] Start Nova Compute.
[root@dlp ~(keystone)]#
systemctl enable --now openstack-nova-compute
# discover Compute Node

[root@dlp ~(keystone)]#
su -s /bin/bash nova -c "nova-manage cell_v2 discover_hosts"
# show status

[root@dlp ~(keystone)]#
openstack compute service list

+--------------------------------------+----------------+---------------+----------+---------+-------+----------------------------+
| ID                                   | Binary         | Host          | Zone     | Status  | State | Updated At                 |
+--------------------------------------+----------------+---------------+----------+---------+-------+----------------------------+
| de300d77-76e6-47c1-9015-ccffdfb1925c | nova-scheduler | dlp.srv.world | internal | enabled | up    | 2024-10-09T07:56:04.000000 |
| e3f6d0c7-d55e-40c7-a466-5d52502a8c5f | nova-conductor | dlp.srv.world | internal | enabled | up    | 2024-10-09T07:56:09.000000 |
| a2fa2107-090f-418e-9342-ac648a33e517 | nova-compute   | dlp.srv.world | nova     | enabled | up    | 2024-10-09T07:56:04.000000 |
+--------------------------------------+----------------+---------------+----------+---------+-------+----------------------------+
Matched Content