cinder/cinder/image
Brian Rosmaita 17565262da Check VMDK subformat against an allowed list
Also add a more general check to convert_image that the image format
reported by qemu-img matches what the caller says it is.

Change-Id: I3c60ee4c0795aadf03108ed9b5a46ecd116894af
Partial-bug: #1996188
(cherry picked from commit 930fc93e9f)
(cherry picked from commit ba37dc2ead)
Conflicts:
  cinder/image/image_utils.py
   - changed type annotations to use implicit Optional to be
     consistent with cinder yoga mypy usage
   - removed refs to image_conversion_disable in tests
(cherry picked from commit 2ae5d53526)
(cherry picked from commit e96415409d)
Conflicts:
  cinder/image/image_utils.py
   - removed type annotations
   - restored wallaby-era fetch_verify_image() function signature
(cherry picked from commit be11d54ac4)
Conflicts:
  cinder/tests/unit/test_image_utils.py
   - did not include extraneous test from be11d54ac's parent commit
Additions:
  cinder/image/image_utils.py
   - added code to handle oslo.utils<4.1.0,>=3.14.0
  cinder/tests/unit/test_image_utils.py
   - added a test for ^^
2023-01-14 07:06:27 -05:00
..
accelerators Leverage hw accelerator in image compression 2019-09-18 03:01:18 +00:00
__init__.py Empty files shouldn't contain copyright nor license 2013-12-26 22:45:17 -06:00
accelerator.py Leverage hw accelerator in image compression 2019-09-18 03:01:18 +00:00
cache.py Introduce flake8-import-order extension 2020-01-06 09:59:35 -06:00
glance.py Stop to use the __future__ module. 2020-06-11 15:30:09 +02:00
image_utils.py Check VMDK subformat against an allowed list 2023-01-14 07:06:27 -05:00