cinder/cinder/volume/flows
ricolin a719525c1c Add image_conversion_disable config
Add new config option `image_conversion_disable`, when it's set to
`True`, image disk_format and volume format must be the same format.
Otherwise will raise ImageUnacceptable exception.
`image_conversion_disable` config is bool option, default to `False`.

The idea behind this was that in certain high scale environments,
it is possible that a cloud allows both qcow2 and raw image uploads.

However, uploading a qcow2 image and creating a large number of
volumes can cause a tremendous amount of conversions that will kill
cinder-volume. It may be undesirable to have this, so a cloud
operator can opt to disallow conversions and enforce that the user
uploads the correct image type if they want to have volumes (aka
raw in rbd case).

Closes-Bug: #1970115
Change-Id: Ic481d68639d9460d1fd14225bc17a0d8287d5fd9
2022-06-01 03:56:02 +08:00
..
api Use modern type annotation format for collections 2022-05-18 10:01:18 -04:00
manager Add image_conversion_disable config 2022-06-01 03:56:02 +08:00
__init__.py Empty files shouldn't contain copyright nor license 2013-12-26 22:45:17 -06:00
common.py mypy: create_volume flows 2021-08-10 10:26:39 -04:00