事象内容

Gnocchi の API ログ( /var/log/gnocchi/api.log )に、以下の警告が出力される。

WARNING  gnocchi.cli.api: No need to pass `--' in gnocchi-api command line anymore, please remove
[root@controller ~]# tail -F /var/log/gnocchi/api.log 
2018-12-01 03:31:50,236 [10283] INFO     gnocchi.service: Gnocchi version 4.3.0
2018-12-01 03:31:50,240 [10283] WARNING  gnocchi.cli.api: No need to pass `--' in gnocchi-api command line anymore, please remove
2018-12-01 03:31:50,240 [10283] ERROR    gnocchi.cli.api: Unable to find `uwsgi'.
Be sure it is installed and in $PATH.
2018-12-01 03:31:51,064 [10300] INFO     gnocchi.service: Gnocchi version 4.3.0
2018-12-01 03:31:51,068 [10300] WARNING  gnocchi.cli.api: No need to pass `--' in gnocchi-api command line anymore, please remove
2018-12-01 03:31:51,068 [10300] ERROR    gnocchi.cli.api: Unable to find `uwsgi'.
Be sure it is installed and in $PATH.
2018-12-01 03:31:52,137 [10310] INFO     gnocchi.service: Gnocchi version 4.3.0
2018-12-01 03:31:52,142 [10310] WARNING  gnocchi.cli.api: No need to pass `--' in gnocchi-api command line anymore, please remove
Be sure it is installed and in $PATH.
2018-12-01 03:31:53,115 [10319] INFO     gnocchi.service: Gnocchi version 4.3.0
2018-12-01 03:31:53,122 [10319] WARNING  gnocchi.cli.api: No need to pass `--' in gnocchi-api command line anymore, please remove
Be sure it is installed and in $PATH.
2018-12-01 03:31:54,057 [10329] INFO     gnocchi.service: Gnocchi version 4.3.0
2018-12-01 03:31:54,062 [10329] WARNING  gnocchi.cli.api: No need to pass `--' in gnocchi-api command line anymore, please remove
Be sure it is installed and in $PATH.

解決方法

gnocchi-apiの起動スクリプト( /usr/lib/systemd/system/openstack-gnocchi-api.service )を編集し、以下設定を修正します。

[root@controller ~]# vi /usr/lib/systemd/system/openstack-gnocchi-api.service 

[ Service ] セクションで、ExecStart の設定を修正します。

[Service]
(修正前)
ExecStart=/usr/bin/gnocchi-api -- --log-file /var/log/gnocchi/api.log
(修正後)
ExecStart=/usr/bin/gnocchi-api --log-file /var/log/gnocchi/api.log

修正した起動スクリプトを反映します。

[root@controller ~]# systemctl daemon-reload