cinder/cinder/message
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
..
__init__.py User messages API for error cases 2016-04-29 18:41:10 +00:00
api.py Add user messages for backup operations 2021-08-27 05:44:42 -04:00
defined_messages.py Disallow unmanaging encrypted volumes 2017-11-29 10:43:32 -05:00
message_field.py Add image_conversion_disable config 2022-06-01 03:56:02 +08:00