Bug 1395783 - Document that api-paste.ini when touched will not update during upgrade from RHOS-9 to RHOS-10 and needs to be merged [NEEDINFO]
Summary: Document that api-paste.ini when touched will not update during upgrade from ...
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Red Hat OpenStack
Classification: Red Hat
Component: documentation
Version: 10.0 (Newton)
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: rc
: 10.0 (Newton)
Assignee: Dan Macpherson
QA Contact: RHOS Documentation Team
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2016-11-16 16:13 UTC by Yurii Prokulevych
Modified: 2018-08-06 05:08 UTC (History)
8 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2018-08-06 05:08:17 UTC
Target Upstream Version:
dmacpher: needinfo? (pkilambi)


Attachments (Terms of Use)

Description Yurii Prokulevych 2016-11-16 16:13:10 UTC
Description of problem:
-----------------------
During upgrade from RHOS-9 to RHOS-10 the api-paste.ini file is not updated for gnocchi.

There were fixes in bz 1371625 which ain't reflected.

 diff -u /etc/gnocchi/api-paste.ini /etc/gnocchi/api-paste.ini.rpmnew 
--- /etc/gnocchi/api-paste.ini  2016-11-16 10:42:58.196264000 +0000
+++ /etc/gnocchi/api-paste.ini.rpmnew   2016-10-19 13:51:20.000000000 +0000
@@ -1,19 +1,25 @@
 # Use gnocchi+auth in the pipeline if you want to use keystone authentication
 [pipeline:main]
-pipeline = gnocchi+auth
+pipeline = gnocchi+noauth
 
 [composite:gnocchi+noauth]
 use = egg:Paste#urlmap
-/ = gnocchiversions
-/v1 = gnocchiv1
+/ = gnocchiversions_pipeline
+/v1 = gnocchiv1+noauth
 
 [composite:gnocchi+auth]
 use = egg:Paste#urlmap
-/ = gnocchiversions
+/ = gnocchiversions_pipeline
 /v1 = gnocchiv1+auth
 
+[pipeline:gnocchiv1+noauth]
+pipeline = http_proxy_to_wsgi gnocchiv1
+
 [pipeline:gnocchiv1+auth]
-pipeline = keystone_authtoken gnocchiv1
+pipeline = http_proxy_to_wsgi keystone_authtoken gnocchiv1
+
+[pipeline:gnocchiversions_pipeline]
+pipeline = http_proxy_to_wsgi gnocchiversions
 
 [app:gnocchiversions]
 paste.app_factory = gnocchi.rest.app:app_factory
@@ -27,6 +33,6 @@
 paste.filter_factory = keystonemiddleware.auth_token:filter_factory
 oslo_config_project = gnocchi
 
-[filter:cors]
-paste.filter_factory = oslo_middleware.cors:filter_factory
+[filter:http_proxy_to_wsgi]
+paste.filter_factory = oslo_middleware.http_proxy_to_wsgi:HTTPProxyToWSGI.factory
 oslo_config_project = gnocchi


Version-Release number of selected component (if applicable):
-------------------------------------------------------------
python-gnocchi-3.0.1-1.3.el7ost.noarch
openstack-gnocchi-api-3.0.1-1.3.el7ost.noarch
openstack-gnocchi-indexer-sqlalchemy-3.0.1-1.3.el7ost.noarch
openstack-gnocchi-metricd-3.0.1-1.3.el7ost.noarch
openstack-gnocchi-carbonara-3.0.1-1.3.el7ost.noarch
openstack-gnocchi-statsd-3.0.1-1.3.el7ost.noarch
python-gnocchiclient-2.6.0-1.el7ost.noarch
puppet-gnocchi-9.4.1-1.el7ost.noarch
openstack-gnocchi-common-3.0.1-1.3.el7ost.noarch


Steps to Reproduce:
-------------------
1. Upgrade from RHOS-9 to RHOS-10.
2. After controllers upgrade check /etc/gnocchi/api-paste.ini

Comment 3 Jon Schlueter 2016-11-22 17:46:56 UTC
changing back to prior version 3.0.2-1

Comment 7 Dan Macpherson 2017-09-26 05:37:06 UTC
Hi Pradeep,

Going through my backlog and saw this BZ. At the end of the upgrade procedure there's the following note:

"Review the resulting configuration files. The upgraded packages might have installed .rpmnew files appropriate to the Red Hat OpenStack Platform 10 version of the service."

Link: https://access.redhat.com/documentation/en-us/red_hat_openstack_platform/10/html/upgrading_red_hat_openstack_platform/chap-upgrading_the_environment#sect-Major-Upgrading_the_Overcloud-PostNotes

This is pretty much a catch-all for all services and their rpmnew files.

Was there anything else required for this BZ?

Comment 8 Dan Macpherson 2018-08-06 05:08:17 UTC
Closing thsi BZ as it appears to be resolved.


Note You need to log in before you can comment on or make changes to this bug.