nova-api running under apache mod_wsgi raises 500

Bug #1155585 reported by Alvaro Lopez
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Compute (nova)
Fix Released
Medium
Alvaro Lopez

Bug Description

The Opensack api returns the 'Retry-After' header as an integer. If nova is running behind apache using mod_wsgi, an error 500 is raised, instead of the actual exception because it expects the headers to be strings, not integers. The apache logs shows the following error:

   TypeError: expected byte string object for header value, value of type int found

Alvaro Lopez (aloga)
Changed in nova:
assignee: nobody → Alvaro Lopez (aloga)
status: New → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to nova (master)

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

Revision history for this message
Sean Dague (sdague) wrote :

given that we are in rc freeze, this is going to need to be prioritized to go in

Changed in nova:
importance: Undecided → Medium
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to nova (master)

Reviewed: https://review.openstack.org/24518
Committed: http://github.com/openstack/nova/commit/1c46788b3e36f8d3d79b6f73e5b98d3ed6b48fbd
Submitter: Jenkins
Branch: master

commit 1c46788b3e36f8d3d79b6f73e5b98d3ed6b48fbd
Author: Alvaro Lopez Garcia <email address hidden>
Date: Tue Mar 19 15:04:25 2013 +0100

    Ensure that headers are returned as strings, not integers.

    The 'Retry-After' header was set as an integer, and it was causing that
    mod_wsgi failed with a 500 error, instead of the actual error. This
    ensures that the headers are converted to str.

    Fixes bug 1155585
    Change-Id: If1b1de2308ccdc6f0588c8df5dc896fe5f767dbe

Changed in nova:
status: In Progress → Fix Committed
Thierry Carrez (ttx)
Changed in nova:
milestone: none → grizzly-rc1
status: Fix Committed → Fix Released
Thierry Carrez (ttx)
Changed in nova:
milestone: grizzly-rc1 → 2013.1
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.