To add a little more of the back story: /etc/os_release:
NAME="Ubuntu" VERSION="16.04.4 LTS (Xenial Xerus)" ID=ubuntu ID_LIKE=debian PRETTY_NAME="Ubuntu 16.04.4 LTS" VERSION_ID="16.04" HOME_URL="http://www.ubuntu.com/" SUPPORT_URL="http://help.ubuntu.com/" BUG_REPORT_URL="http://bugs.launchpad.net/ubuntu/" VERSION_CODENAME=xenial UBUNTU_CODENAME=xenial Package: 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 --log-file=/var/log/gnocchi/gnocchi-api.log 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 .init.in 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 gnocchi.rest.app.build_wsgi_app Available at http://10.3.35.40:8041/ DANGER! For testing only, do not use in production ******************************************************************************** 192.168.100.40 - - [06/Mar/2018 22:26:53] "GET / HTTP/1.1" 200 150 [root@controller gnocchi(admin)]$ api-test.sh -a gnocchi -c controller-int -d ... Mar 06 22:26:53 pod2controller /usr/local/bin/api-test.sh: 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 [uwsgi] http = 0.0.0.0:8041 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. https://bugs.launchpad.net/bugs/1707642 Title: Broken systemd unit for gnocchi-api To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/gnocchi/+bug/1707642/+subscriptions -- ubuntu-bugs mailing list [email protected] https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
