Files
cyborg/releasenotes
Sean Mooney 7faf80e098 Fix microversion header parsing for service type prefix
The OpenStack API-WG microversion specification defines the standard
header format as:

  OpenStack-API-Version: <service-type> <version>

For the accelerator service this means clients should send:

  OpenStack-API-Version: accelerator 2.1

Commit 279a260b removed the microversion_parse library call that handled
this format and replaced it with a bare headers.get() lookup. That does
not strip the service type prefix, so clients following the standard
format, including keystoneauth and openstacksdk, could not request newer
Cyborg API microversions correctly.

The response header was also changed to omit the service type, returning
bare "2.1" instead of the standard "accelerator 2.1".

Restore service-type-aware parsing for the standard prefixed format.
Keep bare version strings accepted for compatibility, and return the
service type prefix in OpenStack-API-Version response headers.

Related-Bug: #2049489
Change-Id: Ibf4c2a0e1d3b5a7f9c8e6d4b2a0f8e6d4c2b0a8e
Signed-off-by: Sean Mooney <work@seanmooney.info>
Assisted-By: pi opus 4.6
2026-07-15 14:39:28 +05:30
..
2026-03-17 14:41:53 +00:00