Debian 11 Bullseye
Sponsored Link

OpenStack Victoria : Configure Nova #32021/08/31

 
Install OpenStack Compute Service (Nova).
This example is based on the emvironment like follows.
If you'd like to install Nova Compute on another Host, 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 Host, refer to here.
It's unnecessarry to set Bridge networking on the section [2] of the link.
[2] Install Nova Compute.
root@dlp ~(keystone)#
apt -y install nova-compute nova-compute-kvm
# on Debian 11 default is set cgroup v2, however,

# specific feature does not work on Nova-Compute, so fall back to cgroup v1

root@dlp ~(keystone)#
vi /etc/default/grub
# line 10 : add

GRUB_DEFAULT=0
GRUB_TIMEOUT=5
GRUB_DISTRIBUTOR=`lsb_release -i -s 2> /dev/null || echo Debian`
GRUB_CMDLINE_LINUX_DEFAULT="quiet"
GRUB_CMDLINE_LINUX="
systemd.unified_cgroup_hierarchy=false systemd.legacy_systemd_cgroup_controller=false
"
root@dlp ~(keystone)#
update-grub
root@dlp ~(keystone)#
reboot
[3] In addition to basic settings of Nova, add following settings.
root@dlp ~(keystone)#
vi /etc/nova/nova.conf
# 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 

root@dlp ~(keystone)#
vi /etc/default/nova-consoleproxy
# line 6 : change

NOVA_CONSOLE_PROXY_TYPE=
novnc
[4] Start Nova Compute service.
root@dlp ~(keystone)#
systemctl restart nova-compute nova-novncproxy

root@dlp ~(keystone)#
systemctl enable nova-compute 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                 |
+----+----------------+---------------+----------+---------+-------+----------------------------+
|  1 | nova-conductor | dlp.srv.world | internal | enabled | up    | 2021-08-31T01:49:23.000000 |
|  3 | nova-scheduler | dlp.srv.world | internal | enabled | up    | 2021-08-31T01:49:24.000000 |
|  8 | nova-compute   | dlp.srv.world | nova     | enabled | up    | 2021-08-31T01:49:24.000000 |
+----+----------------+---------------+----------+---------+-------+----------------------------+
Matched Content