cinder/cinder
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
..
api Fix: Schema validation for attachment create API 2022-04-06 10:01:42 +02:00
backup Don't destroy existing backup by mistake on import 2022-07-06 12:17:09 +00:00
brick LVM: Retry lvextend commands on code 139 2021-09-15 18:11:25 +00:00
cmd Merge "Remove "cinder-manage shell" commands" 2020-09-04 17:18:49 +00:00
common Change 'host' option from HostAddressOpt to StrOpt 2021-09-10 11:57:18 -04:00
compute Fix instance locality scheduler filter 2021-08-24 10:53:02 +00:00
db Fix: Race between attachment and volume deletion 2022-01-18 12:11:31 +01:00
group Use resource_backend for volumes and groups 2020-08-14 08:13:42 +00:00
image Check VMDK subformat against an allowed list 2023-01-14 07:06:27 -05:00
interface Move get_volume_stats impl to the base volume driver 2020-07-01 12:41:20 +03:00
keymgr Introduce flake8-import-order extension 2020-01-06 09:59:35 -06:00
locale Imported Translations from Zanata 2020-09-13 06:31:50 +00:00
message Add user messages for some volume snapshot actions 2019-04-26 17:02:05 -04:00
objects Expose volume_attachments in Volume OVO 2022-01-18 12:11:31 +01:00
policies Correct group:reset_group_snapshot_status policy 2021-01-06 18:16:21 +00:00
privsep Enable flake8-logging-format extension 2020-01-09 14:35:20 -06:00
scheduler Fix instance locality scheduler filter 2021-08-24 10:53:02 +00:00
tests Check VMDK subformat against an allowed list 2023-01-14 07:06:27 -05:00
transfer Fix: show volume transfer by name for non-admins 2020-08-03 12:46:31 +00:00
volume Use the json format output of qemu-img info 2023-01-12 09:56:44 -05:00
wsgi Introduce flake8-import-order extension 2020-01-06 09:59:35 -06:00
zonemanager Brocade: Fix lookup UnboundLocalError 2020-08-07 15:24:44 +02:00
__init__.py
context.py Reduce deprecation warnings 2020-04-14 15:53:27 -05:00
coordination.py Remove deprecated heartbeat options 2017-10-03 14:41:18 -05:00
exception.py Default type overrides 2020-09-16 14:05:31 +00:00
flow_utils.py
i18n.py Replace http with https for doc links in cinder 2017-10-17 11:14:01 +08:00
manager.py Merge "Publish backup capabilities to a scheduler" 2020-01-14 19:50:21 +00:00
opts.py Merge "Backup: Limit number of concurent operations" 2020-08-07 17:54:37 +00:00
policy.py Default type overrides 2020-09-16 14:05:31 +00:00
quota.py Bump hacking version to 1.1.x 2019-05-30 15:06:02 -04:00
quota_utils.py Add support for system and domain scoped tokens 2020-09-30 13:47:42 +00:00
rpc.py Replace assert to raise AssertionError 2019-06-05 18:41:21 +03:00
service.py Fix typo on service cluster change method 2020-05-06 19:36:07 -05:00
service_auth.py Add service_token for cinder-nova interaction 2017-12-15 12:04:23 +05:30
ssh_utils.py Stop a connections leak when freeing an SSHPool 2018-02-14 18:16:55 -06:00
utils.py LVM: Fix delete volume error due to lvs failure 2021-04-08 17:15:03 +02:00
version.py