OpenStack Bobcat : Heat 設定 (Network ノード)2023/10/25 |
OpenStack Orchestration Service(Heat)をインストールします。
当例では以下のような環境を例に Orchestration サービスをインストールします。
------------+--------------------------+--------------------------+------------ | | | 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 | | | | Heat API/Engine | | | +-----------------------+ +-----------------------+ +-----------------------+ |
[1] | Network ノード に Heat サービスをインストールします。 |
[root@network ~]# dnf --enablerepo=centos-openstack-bobcat,epel,crb -y install openstack-heat-api openstack-heat-api-cfn openstack-heat-engine python3-heatclient
|
[2] | ネットワークノード用の SSL/TLS 証明書を取得 または 自己署名の証明書を作成して、Heat サービスを設定します。 |
[root@network ~]# cp /etc/letsencrypt/live/network.srv.world/{fullchain.pem,privkey.pem} /etc/heat/ [root@network ~]# chown heat /etc/heat/{fullchain.pem,privkey.pem} [root@network ~]# mv /etc/heat/heat.conf /etc/heat/heat.conf.org
[root@network ~]#
vi /etc/heat/heat.conf # 新規作成 [DEFAULT] deferred_auth_method = trusts trusts_delegated_roles = heat_stack_owner # Heat API ホストを指定 heat_metadata_server_url = https://network.srv.world:8000 heat_waitcondition_server_url = https://network.srv.world:8000/v1/waitcondition heat_stack_user_role = heat_stack_user # Heat ドメイン名を指定 stack_user_domain_name = heat # Heat ドメイン管理ユーザー名 stack_domain_admin = heat_domain_admin # Heat ドメイン管理ユーザーのパスワード stack_domain_admin_password = servicepassword # RabbitMQ 接続情報 transport_url = rabbit://openstack:password@dlp.srv.world # MariaDB 接続情報 [database] connection = mysql+pymysql://heat:password@dlp.srv.world/heat # Keystone ホストを指定 [clients_keystone] auth_uri = https://dlp.srv.world:5000 [heat_api] bind_host = 10.0.0.50 bind_port = 8004 cert_file = /etc/heat/fullchain.pem key_file = /etc/heat/privkey.pem [heat_api_cfn] bind_host = 10.0.0.50 bind_port = 8000 cert_file = /etc/heat/fullchain.pem key_file = /etc/heat/privkey.pem # 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 = heat password = servicepassword # Apache2 Keystone で自己署名の証明書を使用の場合は [true] insecure = false [trustee] auth_url = https://dlp.srv.world:5000 auth_type = password user_domain_name = default username = heat password = servicepassword [oslo_policy] enforce_new_defaults = false chgrp heat /etc/heat/heat.conf [root@network ~]# chmod 640 /etc/heat/heat.conf [root@network ~]# su -s /bin/bash heat -c "heat-manage db_sync" [root@network ~]# systemctl enable --now openstack-heat-api openstack-heat-api-cfn openstack-heat-engine |
[3] | Firewalld を有効にしている場合は、サービスポートの許可が必要です。 |
[root@network ~]# firewall-cmd --add-port={8000/tcp,8004/tcp} success [root@network ~]# firewall-cmd --runtime-to-permanent success |
Sponsored Link |