Broken systemd unit for gnocchi-api
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
gnocchi (Ubuntu) |
Confirmed
|
Undecided
|
Unassigned |
Bug Description
gnocchi-api is a developer wrapper arount a test server.
The Gnocchi documentation (http://
Anyway the systemd unit is broken because gnocchi-api is called with the wrong options:
Jul 31 14:34:00 bfeb systemd[1]: Started OpenStack Gnocchi Api.
Jul 31 14:34:02 bfeb gnocchi-api[10203]: usage: gnocchi-api [-h] [--port PORT] -- [passed options]
Jul 31 14:34:02 bfeb gnocchi-api[10203]: gnocchi-api: error: unrecognized arguments: --config-
Jul 31 14:34:02 bfeb systemd[1]: gnocchi-
Jul 31 14:34:02 bfeb systemd[1]: gnocchi-
Jul 31 14:34:02 bfeb systemd[1]: gnocchi-
Jul 31 14:34:02 bfeb systemd[1]: gnocchi-
Jul 31 14:34:02 bfeb systemd[1]: Stopped OpenStack Gnocchi Api.
Jul 31 14:34:02 bfeb systemd[1]: gnocchi-
Jul 31 14:34:02 bfeb systemd[1]: Failed to start OpenStack Gnocchi Api.
This is Ubuntu Xenial with the Ocata cloud archive for openstack.
I am having the same problem:
* gnocchi-api.service - OpenStack Gnocchi Api system/ gnocchi- api.service; disabled; vendor preset: enabled)
Loaded: loaded (/lib/systemd/
Active: inactive (dead)
Sep 02 04:53:57 neutron1 gnocchi-api[19591]: usage: gnocchi-api [-h] [--port PORT] -- [passed options] file=/etc/ gnocchi/ gnocchi. conf --log-file= /var/log/ gnocchi/ gnocchi- api.log api.service: Main process exited, code=exited, status= 2/INVALIDARGUME NT api.service: Unit entered failed state. api.service: Failed with result 'exit-code'. api.service: Service hold-off time over, scheduling restart. api.service: Start request repeated too quickly.
Sep 02 04:53:57 neutron1 gnocchi-api[19591]: gnocchi-api: error: unrecognized arguments: --config-
Sep 02 04:53:57 neutron1 systemd[1]: gnocchi-
Sep 02 04:53:57 neutron1 systemd[1]: gnocchi-
Sep 02 04:53:57 neutron1 systemd[1]: gnocchi-
Sep 02 04:53:57 neutron1 systemd[1]: gnocchi-
Sep 02 04:53:57 neutron1 systemd[1]: Stopped OpenStack Gnocchi Api.
Sep 02 04:53:57 neutron1 systemd[1]: gnocchi-
Sep 02 04:53:57 neutron1 systemd[1]: Failed to start OpenStack Gnocchi Api.
Sep 04 16:24:03 neutron1 systemd[1]: Stopped OpenStack Gnocchi Api.
Is there any workaround for this?