[all] Gate status: All devstack based jobs are failing for placement url issue in devstack

melanie witt melwittt at gmail.com
Tue Sep 28 05:59:45 UTC 2021

On Mon Sep 27 2021 21:30:54 GMT-0700 (Pacific Daylight Time), Ghanshyam 
Mann <gmann at ghanshyammann.com> wrote:
> Yeah.  To find out who is corrupting the PATH_INFO and SCRIPT_NAME,
> I tried to trace the environ (could not finish it) in webob layer and while
> building the Request in webob, environ variables are already corrupted.
> 'PATH_INFO': '//resource_providers'
>   '/placement/resource_providers?in_tree=baba07a8-3c17-474c-82e6-5d63308a1f9d',
>   'SCRIPT_NAME': '/placemen',
> Below log is from webob.des.py->__call__method
> - https://paste.opendev.org/show/809639/
> There is no change in webob recently and as it is only failing in placement (nova,
> keystone request works fine) so webob or wsgi is less doubtful and it might be only
> in placement server-side in our Request/Response objects ?

I looked at this some more and I think I found where the environ gets 
populated in wsgiref.simple_server [1][2][3][4] in the case of devstack. 
(pbr generates the WSGI run script which ends up at 
/usr/local/bin/placement-api in a devstack env and this script uses 
wsgiref.simple_server as the WSGI server).

I can't tell whether there is anything that could now be wrong in [3] or 
[4] given the recent apache upgrade in focal that Ian found is connected 
to the change in behavior (thank you Ian!).

Maybe someone else can spot something.



More information about the openstack-discuss mailing list