[openstack-dev] [api][nova] Why we return a redirect (302) when request to 'GET /v2.1'?

Sean Dague sean at dague.net
Thu Nov 2 12:42:38 UTC 2017


On 11/01/2017 11:04 PM, Alex X wrote:
> There is bug complain about the redirect which returned by the 'GET 
> /v2.1' https://launchpad.net/bugs/1728732
> 
> 'GET /v2.1' will return a redirect to the 'GET /v2.1/'. The response of 
> 'GET /v2.1/' is the API version info. This seems nova API behaviour for 
> a long time.
> 
> In the keystone catalog, the endpoint should be the version API I think. 
> For nova, it is 'GET /v2.1' which return a redirect instead of version info.
> 
> Is there anybody knowing that why we return a redirect?

I thought it was an artifact of the way that paste builds pipelines, and 
the way our resources need urls. I was trying to see if we generate it 
on our side, but I'm not seeing it, so I suspect this is just a 
consequence of the resource mapper and paste.

	-Sean

-- 
Sean Dague
http://dague.net



More information about the OpenStack-dev mailing list