panko-api is not working

Bug #1836636 reported by Angie Wang
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
StarlingX
Fix Released
Medium
Angie Wang

Bug Description

Brief Description
-----------------
Although panko-api is running, but Panko related openstack commands fail due to the following panko-api internal error. This root cause is due to the openstack-helm rebase on April 2019 https://opendev.org/starlingx/upstream/commit/f4a111125f8989a4492c7e70d94ea8bc098497cc.

2019-07-15 17:51:22.777331 2019-07-15 17:51:22,777.777 9 INFO panko.api.app [-] Full WSGI config used: /etc/panko/api_paste.ini
2019-07-15 17:51:22.777917 mod_wsgi (pid=9): Target WSGI script '/var/www/cgi-bin/panko/panko-api' cannot be loaded as Python module.
2019-07-15 17:51:22.777926 mod_wsgi (pid=9): Exception occurred processing WSGI script '/var/www/cgi-bin/panko/panko-api'.
2019-07-15 17:51:22.777938 Traceback (most recent call last):
2019-07-15 17:51:22.777946 File "/var/www/cgi-bin/panko/panko-api", line 52, in <module>
2019-07-15 17:51:22.777983 application = build_wsgi_app()
2019-07-15 17:51:22.777999 File "/var/lib/openstack/lib/python2.7/site-packages/panko/api/app.py", line 75, in build_wsgi_app
2019-07-15 17:51:22.778046 return load_app(service.prepare_service(argv=argv))
2019-07-15 17:51:22.778050 File "/var/lib/openstack/lib/python2.7/site-packages/panko/api/app.py", line 71, in load_app
2019-07-15 17:51:22.778076 global_conf={'configkey': configkey})
2019-07-15 17:51:22.778079 File "/var/lib/openstack/lib/python2.7/site-packages/paste/deploy/loadwsgi.py", line 253, in loadapp
2019-07-15 17:51:22.778271 return loadobj(APP, uri, name=name, **kw)
2019-07-15 17:51:22.778295 File "/var/lib/openstack/lib/python2.7/site-packages/paste/deploy/loadwsgi.py", line 277, in loadobj
2019-07-15 17:51:22.778306 global_conf=global_conf)
2019-07-15 17:51:22.778311 File "/var/lib/openstack/lib/python2.7/site-packages/paste/deploy/loadwsgi.py", line 302, in loadcontext
2019-07-15 17:51:22.778319 global_conf=global_conf)
2019-07-15 17:51:22.778322 File "/var/lib/openstack/lib/python2.7/site-packages/paste/deploy/loadwsgi.py", line 326, in _loadconfig
2019-07-15 17:51:22.778329 return loader.get_context(object_type, name, global_conf)
2019-07-15 17:51:22.778334 File "/var/lib/openstack/lib/python2.7/site-packages/paste/deploy/loadwsgi.py", line 414, in get_context
2019-07-15 17:51:22.778341 object_type, name=name)
2019-07-15 17:51:22.778345 File "/var/lib/openstack/lib/python2.7/site-packages/paste/deploy/loadwsgi.py", line 592, in find_config_section
2019-07-15 17:51:22.778352 self.filename))
2019-07-15 17:51:22.778370 LookupError: No section 'panko+keystone' (prefixed by 'app' or 'application' or 'composite' or 'composit' or 'pipeline' or 'filter-app') found in config /etc/panko/api_paste.ini

Severity
--------
Major

Steps to Reproduce
------------------
1.system application-apply stx-openstack
2.openstack event list

Expected Behavior
------------------
Return openstack events

Actual Behavior
----------------
Internal server error

Reproducibility
---------------
Reproducible

System Configuration
--------------------
All configs with panko chart deployed

Branch/Pull Time/Commit
-----------------------
Master branch; ISO: 2019-07-08 23:30:00 +0000

Last Pass
---------
n/a

Timestamp/Logs
--------------
n/a

Test Activity
-------------
Other

Angie Wang (angiewang)
Changed in starlingx:
assignee: nobody → Angie Wang (angiewang)
Angie Wang (angiewang)
description: updated
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to config (master)

Fix proposed to branch: master
Review: https://review.opendev.org/670905

Changed in starlingx:
status: New → In Progress
Ghada Khalil (gkhalil)
tags: added: stx.config
Ghada Khalil (gkhalil)
Changed in starlingx:
importance: Undecided → Medium
tags: added: stx.2.0
Revision history for this message
Ghada Khalil (gkhalil) wrote :

Marking as stx.2.0 gating as this issue was recently introduced by a rebase activity and results in panki openstack cmds failing

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to config (master)

Reviewed: https://review.opendev.org/670905
Committed: https://git.openstack.org/cgit/starlingx/config/commit/?id=09221afcbab587af453f96ab102c0b780be59446
Submitter: Zuul
Branch: master

commit 09221afcbab587af453f96ab102c0b780be59446
Author: Angie Wang <email address hidden>
Date: Mon Jul 15 15:18:06 2019 -0400

    Update panko api configuration in Armada manifest

    Panko API is not actually working due to the default api configuration
    doesn't work with stein Panko. This commit updates the Armada manifest
    to override it.

    Change-Id: Ic75a92bd95ab6a7300f9ac7c2562d3ff07a2ef6a
    Closes-Bug: 1836636
    Signed-off-by: Angie Wang <email address hidden>

Changed in starlingx:
status: In Progress → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.