Bug 1283755

Summary: gnocchi/api-paste.ini is missing
Product: Red Hat OpenStack Reporter: Yurii Prokulevych <yprokule>
Component: openstack-gnocchiAssignee: Pradeep Kilambi <pkilambi>
Status: CLOSED ERRATA QA Contact: Yurii Prokulevych <yprokule>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 8.0 (Liberty)CC: apevec, jschluet, lhh, ohochman, pkilambi, sasha
Target Milestone: betaKeywords: Triaged
Target Release: 8.0 (Liberty)   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: openstack-gnocchi-1.3.0-5.el7ost Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-04-07 21:13:07 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 Yurii Prokulevych 2015-11-19 18:06:56 UTC
Description of problem:
File /etc/gnocchi/api-paste.ini is missing.
This leads to error:
2015-11-19 12:55:35.159 27205 INFO werkzeug [-] 192.0.2.9 - - [19/Nov/2015 12:55:35] "GET /v1/metrics HTTP/1.1" 500 -
2015-11-19 12:55:35.165 27205 ERROR werkzeug [-] Error on request:
Traceback (most recent call last):
  File "/usr/lib/python2.7/site-packages/werkzeug/serving.py", line 177, in run_wsgi
    execute(self.server.app)
  File "/usr/lib/python2.7/site-packages/werkzeug/serving.py", line 165, in execute
    application_iter = app(environ, start_response)
  File "/usr/lib/python2.7/site-packages/gnocchi/rest/app.py", line 160, in __call__
    self.app = load_app(self.conf)
  File "/usr/lib/python2.7/site-packages/gnocchi/rest/app.py", line 91, in load_app
    raise cfg.ConfigFilesNotFoundError([conf.api.paste_config])
ConfigFilesNotFoundError: Failed to find some config files: api-paste.ini

rpm -qf /etc/gnocchi/api-paste.ini 
file /etc/gnocchi/api-paste.ini is not owned by any package


Version-Release number of selected component (if applicable):

openstack-gnocchi-common-1.3.0-1.el7ost.noarch
openstack-gnocchi-api-1.3.0-1.el7ost.noarch
openstack-gnocchi-carbonara-1.3.0-1.el7ost.noarch
openstack-gnocchi-indexer-sqlalchemy-1.3.0-1.el7ost.noarch
openstack-gnocchi-statsd-1.3.0-1.el7ost.noarch
openstack-gnocchi-metricd-1.3.0-1.el7ost.noarch
python-gnocchi-1.3.0-1.el7ost.noarch

Expected results:
File is part of gnocchi*

Additional info:
HA virtual setup

Regards,
Yurii

Comment 4 Alexander Chuzhoy 2015-11-19 20:29:15 UTC
the file should be there after the package is installed.

Comment 6 Alan Pevec 2015-11-20 01:07:02 UTC
Cherry picked to rdo-liberty distgit branch:
https://github.com/openstack-packages/gnocchi/commit/47bfd15368f9a367376722464976dad52fba6f0f

openstack-gnocchi-1.3.0-5.el7 built in CBS and pushed to RDO Liberty testing repo.

Comment 7 Yurii Prokulevych 2015-11-20 15:17:54 UTC
rpm -qf /etc/gnocchi/api-paste.ini 
openstack-gnocchi-common-1.3.0-5.el7ost.noarch

Comment 8 errata-xmlrpc 2016-04-07 21:13:07 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/RHEA-2016-0603.html