To add a little more of the back story:


VERSION="16.04.4 LTS (Xenial Xerus)"
PRETTY_NAME="Ubuntu 16.04.4 LTS"


gnocchi-api/xenial-updates,now 3.1.2-0ubuntu1~cloud0 all [installed]

Errors in syslog:
Mar  6 03:01:25 pod2controller-admin gnocchi-api[100950]: usage: gnocchi-api 
[-h] [--port PORT] -- [passed options]
Mar  6 03:01:25 pod2controller-admin gnocchi-api[100950]: gnocchi-api: error: 
unrecognized arguments: --config-file=/etc/gnocchi/gnocchi.conf 

The comment in `/etc/init.d/gnocchi-api` seems to suggest that this init
script is auto-generated.

# The content after this line comes from openstack-pkg-tools
# and has been automatically added to a script, which
# contains only the descriptive part for the daemon. Everything
# else is standardized as a single unique script.

So this standardized script is setting $DAEMON_ARGS with the above
arguments while `/usr/bin/gnocchi-api` is expecting only a port number
to listen on.

I am able to execute `/etc/bin/gnocchi-api` and sucessfully test the api

[root@controller gnocchi(admin)]$ /usr/bin/gnocchi-api --port 8041
STARTING test server
Available at
DANGER! For testing only, do not use in production
******************************************************************************** - - [06/Mar/2018 22:26:53] "GET / HTTP/1.1" 200 150

[root@controller gnocchi(admin)]$ -a gnocchi -c controller-int -d
Mar 06 22:26:53 pod2controller /usr/local/bin/ INFO: gnocchi test 
passed on http://pod2controller-int:8041/
    "versions": [
            "id": "v1.0",
            "links": [
                    "href": "http://controller-int:8041/v1/";,
                    "rel": "self"
            "status": "CURRENT",
            "updated": "2015-03-19"
[root@controller gnocchi(admin)]$ 

I also am able to use uwsgi with this ini file
http =
wsgi-file = /usr/bin/gnocchi-api
master = true
die-on-term = true
threads = 32
processes = 32
enabled-threads = true
thunder-lock = true
plugins = python
buffer-size = 65535
lazy-apps = true
add-header = Connection: close

Perhaps @zigo can chime in here?

You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

  Broken systemd unit for gnocchi-api

To manage notifications about this bug go to:

ubuntu-bugs mailing list

Reply via email to