Ubuntu 24.04
Sponsored Link

OpenStack Dalmatian : Add Compute Nodes2024/10/04

 

Add Compute Nodes to run more instances.

Following setting example is only for Nova Compute.
However, it also needs Network components for Compute Nodes, refer to follows for it.
Neutron with ML2 or Neutron with OVN

This example is based on the environment like follows.

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

[1]

Install KVM Hypervisor on Compute Node, refer to here.
It's unnecessary to set Bridge networking on the section [2] of the link.

[2] Configure OpenStack Dalmatian repository on Compute Node, refer to [3] of here, and Install Nova-Compute.
root@node01:~#
apt -y install nova-compute nova-compute-kvm qemu-system-data
[3] Configure Nova.
root@node01:~#
mv /etc/nova/nova.conf /etc/nova/nova.conf.org

root@node01:~#
vi /etc/nova/nova.conf
# create new

[DEFAULT]
state_path = /var/lib/nova
enabled_apis = osapi_compute,metadata
log_dir = /var/log/nova
# RabbitMQ connection info
transport_url = rabbit://openstack:password@dlp.srv.world:5672

[api]
auth_strategy = keystone

[vnc]
enabled = True
# IP address compute instances listen
# specify this node's IP
server_listen = 10.0.0.51
server_proxyclient_address = 10.0.0.51
novncproxy_base_url = https://dlp.srv.world:6080/vnc_auto.html

# Glance connection info
[glance]
api_servers = https://dlp.srv.world:9292

[oslo_concurrency]
lock_path = $state_path/tmp

# Keystone auth info
[keystone_authtoken]
www_authenticate_uri = https://dlp.srv.world:5000
auth_url = https://dlp.srv.world:5000
memcached_servers = dlp.srv.world:11211
auth_type = password
project_domain_name = Default
user_domain_name = Default
project_name = service
username = nova
password = servicepassword
# if using self-signed certs on Apache2 Keystone, turn to [true]
insecure = false

[placement]
auth_url = https://dlp.srv.world:5000
os_region_name = RegionOne
auth_type = password
project_domain_name = Default
user_domain_name = Default
project_name = service
username = placement
password = servicepassword
# if using self-signed certs on Apache2 Keystone, turn to [true]
insecure = false

[wsgi]
api_paste_config = /etc/nova/api-paste.ini

[oslo_policy]
enforce_new_defaults = true

root@node01:~#
chmod 640 /etc/nova/nova.conf

root@node01:~#
chgrp nova /etc/nova/nova.conf

root@node01:~#
systemctl restart nova-compute
[5] Confirm the status of Nova services on Control Node. If all State is [up], they are running normally.
# discover Compute Nodes

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

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

+-----------+-----------+-----------+----------+---------+-------+-------------+
| ID        | Binary    | Host      | Zone     | Status  | State | Updated At  |
+-----------+-----------+-----------+----------+---------+-------+-------------+
| a09abbba- | nova-     | dlp.srv.w | internal | enabled | up    | 2024-10-    |
| 18a6-     | conductor | orld      |          |         |       | 04T04:26:22 |
| 4ec1-     |           |           |          |         |       | .000000     |
| 814b-     |           |           |          |         |       |             |
| dd60f9588 |           |           |          |         |       |             |
| dad       |           |           |          |         |       |             |
| e1b7fc76- | nova-     | dlp.srv.w | internal | enabled | up    | 2024-10-    |
| 40cf-     | scheduler | orld      |          |         |       | 04T04:26:20 |
| 409c-     |           |           |          |         |       | .000000     |
| 85c7-     |           |           |          |         |       |             |
| c6044afc0 |           |           |          |         |       |             |
| b87       |           |           |          |         |       |             |
| 9d971f0c- | nova-     | dlp.srv.w | nova     | enabled | up    | 2024-10-    |
| 89bb-     | compute   | orld      |          |         |       | 04T04:26:25 |
| 4d73-     |           |           |          |         |       | .000000     |
| ab09-     |           |           |          |         |       |             |
| fafe77a95 |           |           |          |         |       |             |
| aa4       |           |           |          |         |       |             |
| 6376632d- | nova-     | node01.sr | nova     | enabled | up    | 2024-10-    |
| 8319-     | compute   | v.world   |          |         |       | 04T04:26:17 |
| 4f54-     |           |           |          |         |       | .000000     |
| 9e74-     |           |           |          |         |       |             |
| 6a39ddf68 |           |           |          |         |       |             |
| 835       |           |           |          |         |       |             |
+-----------+-----------+-----------+----------+---------+-------+-------------+
Matched Content