Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.

Bug 1417697

Summary: Unable start gnocchi-api service via systemd as a stand-alone service
Product: Red Hat OpenStack Reporter: Attila Fazekas <afazekas>
Component: openstack-gnocchiAssignee: Pradeep Kilambi <pkilambi>
Status: CLOSED ERRATA QA Contact: Sasha Smolyak <ssmolyak>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 10.0 (Newton)CC: apevec, jschluet, lhh, mlopes, nlevinki, pkilambi
Target Milestone: z2Keywords: Triaged, ZStream
Target Release: 10.0 (Newton)   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: openstack-gnocchi-3.0.4-2.el7ost Doc Type: Bug Fix
Doc Text:
Cause: gnocchi-api standalone script does not start correctly Consequence: Due to a bug in systemd service script, gnocchi api stand alone script fails to start. Though note that its recommended that gnocchi api is used under apache wsgi anyway. Fix: The service script has been fixed to ensure gnocchi api starts correctly at package install time. Result: service script for gnocchi api starts as expected without any errors.
Story Points: ---
Clone Of: Environment:
Last Closed: 2017-03-01 13:38:46 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Attila Fazekas 2017-01-30 16:57:08 UTC
Description of problem:
/usr/lib/systemd/system/openstack-gnocchi-api.service has the
ExecStart=/usr/bin/gnocchi-api --logfile /var/log/gnocchi/api.log .

openstack-gnocchi-api refuses the --logfile argument in this form.

Version-Release number of selected component (if applicable):
openstack-gnocchi-api-3.0.3-1.el7ost.noarch

How reproducible:
always

Actual results:
Jan 30 09:00:26 afazekas-1485784488.localdomain gnocchi-api[10133]: usage: gnocchi-api [-h] [--port PORT] -- [passed options]
Jan 30 09:00:26 afazekas-1485784488.localdomain gnocchi-api[10133]: gnocchi-api: error: unrecognized arguments: --logfile


Expected results:
systemctl start openstack-gnocchi-api.service
working .

Additional info:
/usr/bin/gnocchi-api -- --logfile /var/log/gnocchi/api.log seams to be working.

Looks like enough to add '--' to the service file, and the option is respected.

Comment 8 errata-xmlrpc 2017-03-01 13:38:46 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://rhn.redhat.com/errata/RHBA-2017-0355.html