internal NotFound error can lead to 500 error in modern devstack setup

Bug #1800124 reported by Chris Dent
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Identity (keystone)
Fix Released
Critical
Morgan Fainberg

Bug Description

I'm using a recent devstack in late October 2018, no special keystone configuration, it is running under uwsgi and apache2.

If I make a request of the service to a bogus URL:

====
curl -v http://localhost/identity/v3/narf

> GET /identity/v3/narf HTTP/1.1
> Host: localhost
> User-Agent: curl/7.58.0
> Accept: */*
>
< HTTP/1.1 500 INTERNAL SERVER ERROR
< Date: Fri, 26 Oct 2018 10:08:34 GMT
< Server: Apache/2.4.29 (Ubuntu)
< Content-Type: application/json
< Content-Length: 138
< Vary: X-Auth-Token
< x-openstack-request-id: req-cfafa26b-75a9-4573-9076-61ff9290c6a7
< Connection: close
<
{"error":{"code":500,"message":"An unexpected error prevented the server from fulfilling your request.","title":"Internal Server Error"}}
====

I stumbled upon this because I was experimenting with pulling the catalog and requests /v3/catalog instead of /v3/services

Which doesn't seem ideal :)

Revision history for this message
Colleen Murphy (krinkle) wrote :

git bisect shows this is the commit that introduced it https://review.openstack.org/609796

Changed in keystone:
status: New → Confirmed
importance: Undecided → High
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to keystone (master)

Fix proposed to branch: master
Review: https://review.openstack.org/613961

Changed in keystone:
assignee: nobody → Morgan Fainberg (mdrnstm)
status: Confirmed → In Progress
Changed in keystone:
importance: High → Critical
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to keystone (master)

Reviewed: https://review.openstack.org/613961
Committed: https://git.openstack.org/cgit/openstack/keystone/commit/?id=ee490d82262804ce1d6cee301594294733a71b79
Submitter: Zuul
Branch: master

commit ee490d82262804ce1d6cee301594294733a71b79
Author: Morgan Fainberg <email address hidden>
Date: Mon Oct 29 08:26:31 2018 -0700

    Unregister "Exception" from flask handler

    Unregister the default Exception from the flask error handler. This
    is to allow flask 404 to bubble up outside of test cases normally with
    out raising a 500 error.

    Change-Id: I2159952acae0234472ee3fea7f387278cbefa6c3
    Closes-Bug: #1800124

Changed in keystone:
status: In Progress → Fix Released
Changed in keystone:
milestone: none → stein-2
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/keystone 15.0.0.0rc1

This issue was fixed in the openstack/keystone 15.0.0.0rc1 release candidate.

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.