Ubuntu 20.04
Sponsored Link

OpenStack Victoria : Configure Magnum (Network Node)2020/10/24

 
Install OpenStack Container Infrastructure Management Service (Magnum).
This example is based on the environment like follows.
Install Magnum services on Network Node.
------------+---------------------------+---------------------------+------------
            |                           |                           |
        eth0|10.0.0.30              eth0|10.0.0.50              eth0|10.0.0.51
+-----------+-----------+   +-----------+-----------+   +-----------+-----------+
|    [ Control Node ]   |   |    [ Network Node ]   |   |    [ Compute Node ]   |
|                       |   |                       |   |                       |
|  MariaDB    RabbitMQ  |   |      Linux Bridge     |   |        Libvirt        |
|  Memcached  httpd     |   |   L2 Agent L3 Agent   |   |     Nova Compute      |
|  Keystone   Glance    |   |     Metadata Agent    |   |      Linux Bridge     |
|  Nova API  Cinder API |   |     Cinder Volume     |   |        L2 Agent       |
|  Neutron Server       |   |        Heat API       |   |                       |
|  Metadata Agent       |   |      Heat Engine      |   |                       |
|  Barbican API         |   |       Magnum API      |   |                       |
|                       |   |                       |   |                       |
+-----------------------+   +-----------------------+   +-----------------------+

[1] Install Magnum services on Network Node. For questions during the installation, it's OK with [No] to All.
root@network:~#
apt -y install magnum-api magnum-conductor python3-magnumclient
[2] Configure Magnum.
root@network:~#
mv /etc/magnum/magnum.conf /etc/magnum/magnum.conf.org

root@network:~#
vi /etc/magnum/magnum.conf
# create new

[DEFAULT]
state_path = /var/lib/magnum
log_dir = /var/log/magnum
# RabbitMQ connection info
transport_url = rabbit://openstack:password@10.0.0.30

[api]
host = 10.0.0.50
port = 9511
enabled_ssl = False

[database]
# MariaDB connection info
connection = mysql+pymysql://magnum:password@10.0.0.30/magnum

[barbican_client]
region_name = RegionOne

[certificates]
cert_manager_type = barbican

[cinder]
default_docker_volume_type = lvm-magnum

[cinder_client]
region_name = RegionOne

[magnum_client]
region_name = RegionOne

[glance_client]
region_name = RegionOne

[nova_client]
region_name = RegionOne

[neutron_client]
region_name = RegionOne

[heat_client]
region_name = RegionOne

# Keystone auth info
[keystone_authtoken]
www_authenticate_uri = http://10.0.0.30:5000/v3
auth_url = http://10.0.0.30:5000
memcached_servers = 10.0.0.30:11211
auth_type = password
auth_version = v3
project_domain_name = default
user_domain_name = default
project_name = service
username = magnum
password = servicepassword

admin_user = magnum
admin_password = servicepassword
admin_tenant_name = service

[oslo_messaging_notifications]
driver = messagingv2

[trust]
trustee_domain_name = magnum
trustee_domain_admin_name = magnum_domain_admin
trustee_domain_admin_password = servicepassword
trustee_keystone_interface = public

root@network:~#
chmod 640 /etc/magnum/magnum.conf

root@network:~#
chgrp magnum /etc/magnum/magnum.conf

root@network:~#
mkdir /var/lib/magnum/{tmp,certificates}

root@network:~#
chown magnum. /var/lib/magnum/{tmp,certificates}

root@network:~#
su -s /bin/bash magnum -c "magnum-db-manage upgrade"

root@network:~#
systemctl restart magnum-api magnum-conductor

[3] Verify Magnum status on Control Node. It's OK if state is [up].
Also Create a Cinder volume type configured in [magnum.conf].
root@dlp ~(keystone)#
apt -y install python3-magnumclient
root@dlp ~(keystone)#
openstack coe service list

+----+------+------------------+-------+----------+-----------------+---------------------------+---------------------------+
| id | host | binary           | state | disabled | disabled_reason | created_at                | updated_at                |
+----+------+------------------+-------+----------+-----------------+---------------------------+---------------------------+
|  1 | None | magnum-conductor | up    | False    | None            | 2020-10-24T06:40:48+00:00 | 2020-10-24T06:41:34+00:00 |
+----+------+------------------+-------+----------+-----------------+---------------------------+---------------------------+

root@dlp ~(keystone)#
openstack volume type create lvm-magnum --public

+-------------+--------------------------------------+
| Field       | Value                                |
+-------------+--------------------------------------+
| description | None                                 |
| id          | 93e2dd6e-3f25-4b17-8312-ec387db0819c |
| is_public   | True                                 |
| name        | lvm-magnum                           |
+-------------+--------------------------------------+
Matched Content