The cinder.api.microversions Module

The cinder.api.microversions Module

API Microversion definitions.

All new microversions should have a constant added here to be used throughout the code instead of the specific version number. Until patches land, it’s common to end up with merge conflicts with other microversion changes. Merge conflicts will be easier to handle via the microversion constants defined here as the version number will only need to be changed in a single location.

Actual version numbers should be used:

  • In this file
  • In cinder/api/openstack/rest_api_version_history.rst
  • In cinder/api/openstack/
  • In release notes describing the new functionality
  • In updates to api-ref

Nearly all microversion changes should include changes to all of those locations. Make sure to add relevant documentation, and make sure that documentation includes the final version number used.


Gets a APIVersionRequest instance.

Parameters:version – The microversion needed.
Returns:The APIVersionRequest instance.

Gets a formatted HTTP microversion header.

Parameters:version – The microversion needed.
Returns:A tuple containing the microversion header with the requested version value.

Gets the microversion before the given version.

Mostly useful for testing boundaries. This gets the microversion defined just prior to the given version.

Parameters:version – The version of interest.
Returns:The version just prior to the given version.
Creative Commons Attribution 3.0 License

Except where otherwise noted, this document is licensed under Creative Commons Attribution 3.0 License. See all OpenStack Legal Documents.