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

Bug 1588302

Summary: We should add CORS configuration in gnocchi.conf via tripleo installer.
Product: Red Hat OpenStack Reporter: Leonid Natapov <lnatapov>
Component: puppet-tripleoAssignee: Martin Magr <mmagr>
Status: CLOSED ERRATA QA Contact: Leonid Natapov <lnatapov>
Severity: medium Docs Contact:
Priority: medium    
Version: 13.0 (Queens)CC: apannu, asimonel, chris.smart, dbecker, dwojewod, jjoyce, jschluet, lmiccini, mburns, mmagr, morazi, mrunge, pkilambi, slinaber, tvignaud
Target Milestone: z11Keywords: Triaged, ZStream
Target Release: 13.0 (Queens)   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: puppet-gnocchi-12.4.0-4.el7ost puppet-tripleo-8.5.1-6.el7ost Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2020-03-10 11:18:29 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 Leonid Natapov 2018-06-07 04:59:30 UTC
Description of problem:

Currently we don't have a way to configure cors in gnocchi.conf via
tripleo installer. We should expose these in puppet-gnocchi and set
them from tripleo to make it persistent. Otherwise if you manually
change these config, they will get wiped after the container reboots.

Comment 5 Martin Magr 2018-11-22 21:07:33 UTC
Changing back as we don't have tripleo support yet.

Comment 29 Martin Magr 2019-12-11 16:31:07 UTC
Fixed in puppet-gnocchi-12.4.0-4.el7ost and puppet-tripleo-8.5.1-6.el7ost

Comment 35 Leonid Natapov 2020-02-11 12:00:36 UTC
Hu,Martin. Please,provide instructions for QE regarding what and how should be tested.

Comment 36 Martin Magr 2020-02-11 13:31:40 UTC
Test instructions:

  1. Use GnocchiCorsAllowedOrigin configuration parameter during overcloud deploy. (Example value: "foobar") and enable Gnocchi deploy
  2. After deploy, Gnocchi configuration file should contain following configuration in [cors] namespace:
    allowed_origin=foobar
    expose_headers=Content-Type,Cache-Control,Content-Language,Expires,Last-Modified,Pragma
    max_age=3600
    allow_methods=GET,POST,PUT,DELETE,OPTIONS,PATCH
    allow_headers=Content-Type,Cache-Control,Content-Language,Expires,Last-Modified,Pragma,X-Auth-Token

Comment 38 errata-xmlrpc 2020-03-10 11:18:29 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://access.redhat.com/errata/RHBA-2020:0760