CentOS Stream 8
Sponsored Link

OpenStack Xena : Configure Nova #32021/11/22

 
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 
+-----------+-----------+
|    [ Control Node ]   |
|                       |
|  MariaDB    RabbitMQ  |
|  Memcached  httpd     |
|  Keystone   Glance    |
|   Nova API,Compute    |
+-----------------------+

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

[root@dlp ~(keystone)]#
dnf --enablerepo=centos-openstack-xena,epel,powertools -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 follows (enable VNC)

[vnc]
enabled = True
server_listen = 0.0.0.0
server_proxyclient_address = 10.0.0.30
novncproxy_base_url = http://10.0.0.30:6080/vnc_auto.html 
[4] If SELinux is enabled, change policy.
[root@dlp ~(keystone)]#
dnf --enablerepo=centos-openstack-xena -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 openstack-nova-novncproxy
# 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                 |
+----+----------------+---------------+----------+---------+-------+----------------------------+
|  6 | nova-conductor | dlp.srv.world | internal | enabled | up    | 2021-11-22T03:32:30.000000 |
| 10 | nova-scheduler | dlp.srv.world | internal | enabled | up    | 2021-11-22T03:32:30.000000 |
| 14 | nova-compute   | dlp.srv.world | nova     | enabled | up    | 2021-11-22T03:32:28.000000 |
+----+----------------+---------------+----------+---------+-------+----------------------------+
Matched Content