[openstack-dev] [api] [nova] microversion edge case query

Ed Leafe ed at leafe.com
Tue Oct 18 16:58:43 UTC 2016


On Oct 18, 2016, at 11:01 AM, Chris Dent <cdent+os at anticdent.org> wrote:
> 
> If the requested microversion is greater than the maximum, a 404 still
> makes some sense (no mapping _now_), but a 406 could as well because it
> provides a signal that if you used a different microversion the
> situation could be different and the time represented by the
> requested microversion has conceptual awareness of its past.
> 
> What do people think?
> 
> I think I recall there was some discussion of this sort of thing
> with regard to some of the proxy APIs at the nova midcycle but I
> can't remember the details of the outcome.

The only way that that could happen (besides a total collapse of the review process) is when a method is removed from the API. When that happens, the latest version has its max set to the last microversion where that method is supported. For microversions after that, 404 is the correct response. For all other methods, the latest version should not have a maximum specified.

-- Ed Leafe








More information about the OpenStack-dev mailing list