このセクションでは、テレメトリーの通知を使ってオーケストレーションサービスメーターを収集する方法について紹介します。この作業は、コントローラノードで実施します。

テレメトリーの設定

Heat 設定ファイル( /etc/heat/heat.conf )を編集し、以下の設定をします。

[root@controller ~]# vi /etc/heat/heat.conf 

[ oslo_messaging_notifications ] セクションで、通知を設定します。

[oslo_messaging_notifications]
...
driver = messagingv2

インストールの最後

オーケストレーションサービス( Heat )を再起動します。

■ 再起動
[root@controller ~]# systemctl restart openstack-heat-api.service \
>   openstack-heat-api-cfn.service openstack-heat-engine.service
[root@controller ~]# 

■ 起動状態の確認 
[root@controller ~]# systemctl status openstack-heat-api.service   openstack-heat-api-cfn.service openstack-heat-engine.service● openstack-heat-api.service - OpenStack Heat API Service
   Loaded: loaded (/usr/lib/systemd/system/openstack-heat-api.service; enabled; vendor preset: disabled)
   Active: active (running) since 土 2018-12-01 20:31:43 JST; 14s ago
 Main PID: 9796 (heat-api)
   CGroup: /system.slice/openstack-heat-api.service
           ├─9796 /usr/bin/python /usr/bin/heat-api --config-file /usr/share/heat/heat-dist.conf --config-file /etc/heat/heat...
           ├─9820 /usr/bin/python /usr/bin/heat-api --config-file /usr/share/heat/heat-dist.conf --config-file /etc/heat/heat...
           └─9821 /usr/bin/python /usr/bin/heat-api --config-file /usr/share/heat/heat-dist.conf --config-file /etc/heat/heat...

12月 01 20:31:43 controller systemd[1]: Started OpenStack Heat API Service.
12月 01 20:31:43 controller systemd[1]: Starting OpenStack Heat API Service...

● openstack-heat-api-cfn.service - Openstack Heat CFN-compatible API Service
   Loaded: loaded (/usr/lib/systemd/system/openstack-heat-api-cfn.service; enabled; vendor preset: disabled)
   Active: active (running) since 土 2018-12-01 20:31:43 JST; 14s ago
 Main PID: 9793 (heat-api-cfn)
   CGroup: /system.slice/openstack-heat-api-cfn.service
           └─9793 /usr/bin/python /usr/bin/heat-api-cfn --config-file /usr/share/heat/heat-dist.conf --config-file /etc/heat/...

12月 01 20:31:43 controller systemd[1]: Started Openstack Heat CFN-compatible API Service.
12月 01 20:31:43 controller systemd[1]: Starting Openstack Heat CFN-compatible API Service...

● openstack-heat-engine.service - Openstack Heat Engine Service
   Loaded: loaded (/usr/lib/systemd/system/openstack-heat-engine.service; enabled; vendor preset: disabled)
   Active: active (running) since 土 2018-12-01 20:31:44 JST; 13s ago
 Main PID: 9811 (heat-engine)
   CGroup: /system.slice/openstack-heat-engine.service
           ├─9811 /usr/bin/python /usr/bin/heat-engine --config-file /usr/share/heat/heat-dist.conf --config-file /etc/heat/h...
           ├─9830 /usr/bin/python /usr/bin/heat-engine --config-file /usr/share/heat/heat-dist.conf --config-file /etc/heat/h...
           ├─9831 /usr/bin/python /usr/bin/heat-engine --config-file /usr/share/heat/heat-dist.conf --config-file /etc/heat/h...
           ├─9832 /usr/bin/python /usr/bin/heat-engine --config-file /usr/share/heat/heat-dist.conf --config-file /etc/heat/h...
           └─9833 /usr/bin/python /usr/bin/heat-engine --config-file /usr/share/heat/heat-dist.conf --config-file /etc/heat/h...

12月 01 20:31:44 controller systemd[1]: Started Openstack Heat Engine Service.
12月 01 20:31:44 controller systemd[1]: Starting Openstack Heat Engine Service...
12月 01 20:31:46 controller heat-engine[9811]: /usr/lib64/python2.7/site-packages/sqlalchemy/sql/sqltypes.py:226: SAWar...nces)
12月 01 20:31:46 controller heat-engine[9811]: (util.ellipses_string(value),))
12月 01 20:31:46 controller heat-engine[9811]: /usr/lib64/python2.7/site-packages/sqlalchemy/sql/sqltypes.py:226: SAWar...nces)
12月 01 20:31:46 controller heat-engine[9811]: (util.ellipses_string(value),))
12月 01 20:31:46 controller heat-engine[9811]: /usr/lib64/python2.7/site-packages/sqlalchemy/sql/sqltypes.py:226: SAWar...nces)
12月 01 20:31:46 controller heat-engine[9811]: (util.ellipses_string(value),))
12月 01 20:31:46 controller heat-engine[9811]: /usr/lib64/python2.7/site-packages/sqlalchemy/sql/sqltypes.py:226: SAWar...nces)
12月 01 20:31:46 controller heat-engine[9811]: (util.ellipses_string(value),))
Hint: Some lines were ellipsized, use -l to show in full.
[root@controller ~]#