Ubuntu 22.04
Sponsored Link

OpenStack Bobcat : Trove कॉन्फ़िगर करें (नेटवर्क नोड)2023/10/10

 
OpenStack डेटाबेस सेवा (Trove) स्थापित करें।
यह उदाहरण निम्न प्रकार से पर्यावरण पर आधारित है।
------------+--------------------------+--------------------------+------------
            |                          |                          |
        eth0|10.0.0.30             eth0|10.0.0.50             eth0|10.0.0.51
+-----------+-----------+  +-----------+-----------+  +-----------+-----------+
|   [ dlp.srv.world ]   |  | [ network.srv.world ] |  |  [ node01.srv.world ] |
|     (Control Node)    |  |     (Network Node)    |  |     (Compute Node)    |
|                       |  |                       |  |                       |
|  MariaDB    RabbitMQ  |  |      Open vSwitch     |  |        Libvirt        |
|  Memcached  Nginx     |  |     Neutron Server    |  |      Nova Compute     |
|  Keystone   httpd     |  |      OVN-Northd       |  |      Open vSwitch     |
|  Glance     Nova API  |  |  Nginx  iSCSI Target  |  |   OVN Metadata Agent  |
|  Cinder API           |  |     Cinder Volume     |  |     OVN-Controller    |
|                       |  |     Trove Services    |  |                       |
+-----------------------+  +-----------------------+  +-----------------------+

[1] नेटवर्क नोड पर Trove सेवाएँ स्थापित करें।
root@network:~#
apt -y install trove-api trove-conductor trove-taskmanager python3-troveclient
[2] Trove कॉन्फ़िगर करें।
root@network:~#
mv /etc/trove/trove.conf /etc/trove/trove.conf.org

root@network:~#
vi /etc/trove/trove.conf
# नया निर्माण

[DEFAULT]
bind_host = 127.0.0.1
bind_port = 8779
log_dir = /var/log/trove
# RabbitMQ कनेक्शन जानकारी
transport_url = rabbit://openstack:password@dlp.srv.world
control_exchange = trove
default_datastore = mysql
cinder_volume_type = lvm-trove
cloudinit_location = /etc/trove/cloudinit

# MariaDB कनेक्शन जानकारी
[database]
connection = mysql+pymysql://trove:password@dlp.srv.world/trove

[mariadb]
tcp_ports = 3306,4444,4567,4568

[mysql]
tcp_ports = 3306

[postgresql]
tcp_ports = 5432

[redis]
tcp_ports = 6379,16379

# Keystone प्रामाणिक जानकारी
[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 = trove
password = servicepassword

[service_credentials]
auth_url = https://dlp.srv.world:5000
region_name = RegionOne
project_domain_name = default
user_domain_name = default
project_name = service
username = trove
password = servicepassword

root@network:~#
mv /etc/trove/trove-guestagent.conf /etc/trove/trove-guestagent.conf.org

root@network:~#
vi /etc/trove/trove-guestagent.conf
# नया निर्माण

[DEFAULT]
log_dir = /var/log/trove
log_file = trove-guestagent.log
ignore_users = os_admin
control_exchange = trove
transport_url = rabbit://openstack:password@dlp.srv.world
use_syslog = False

[service_credentials]
auth_url = https://dlp.srv.world:5000
region_name = RegionOne
project_domain_name = default
user_domain_name = default
project_name = service
username = trove
password = servicepassword

root@network:~#
chmod 640 /etc/trove/{trove.conf,trove-guestagent.conf}

root@network:~#
chgrp trove /etc/trove/{trove.conf,trove-guestagent.conf}

[3] प्रॉक्सी सेटिंग्स के लिए Nginx कॉन्फ़िगर करें।
root@network:~#
vi /etc/nginx/nginx.conf
# [stream] अनुभाग में जोड़ें

stream {
    upstream neutron-api {
        server 127.0.0.1:9696;
    }
    server {
        listen 10.0.0.50:9696 ssl;
        proxy_pass neutron-api;
    }
    upstream trove-api {
        server 127.0.0.1:8779;
    }
    server {
        listen 10.0.0.50:8779 ssl;
        proxy_pass trove-api;
    }
    ssl_certificate "/etc/letsencrypt/live/network.srv.world/fullchain.pem";
    ssl_certificate_key "/etc/letsencrypt/live/network.srv.world/privkey.pem";
}
[4] डेटाबेस में डेटा जोड़ें और Trove सेवाएँ प्रारंभ करें।
root@network:~#
su -s /bin/bash trove -c "trove-manage db_sync"

root@network:~#
systemctl restart trove-api trove-taskmanager trove-conductor nginx

root@network:~#
systemctl enable trove-api trove-taskmanager trove-conductor
[5] नियंत्रण नोड पर Trove स्थिति सत्यापित करें। यदि कोई त्रुटि नहीं दिखाई गई तो यह ठीक है।
root@dlp ~(keystone)#
apt -y install python3-troveclient
root@dlp ~(keystone)#
trove list
+----+------+-----------+-------------------+--------+-----------+------+--------+
| ID | Name | Datastore | Datastore Version | Status | Flavor ID | Size | Region |
+----+------+-----------+-------------------+--------+-----------+------+--------+
+----+------+-----------+-------------------+--------+-----------+------+--------+
मिलान सामग्री