Dan Smith b8a3d56f2e Check images with format_inspector for safety
It has been asserted that we should not be calling qemu-img info
on untrusted files. That means we need to know if they have a
backing_file, data_file or other unsafe configuration *before* we use
qemu-img to probe or convert them.

This grafts glance's format_inspector module into nova/images so we
can use it to check the file early for safety. The expectation is that
this will be moved to oslo.utils (or something) later and thus we will
just delete the file from nova and change our import when that happens.

NOTE: This includes whitespace changes from the glance version of
format_inspector.py because of autopep8 demands.

Conflicts:
  nova/conf/workarounds.py

NOTE(elod.illes): conflict is due to the following patch that is only
present in zed: Iab92124b5776a799c7f90d07281d28fcf191c8fe

Change-Id: Iaefbe41b4c4bf0cf95d8f621653fdf65062aaa59
Closes-Bug: #2059809
(cherry picked from commit 9cdce715945619fc851ab3f43c97fab4bae4e35a)
(cherry picked from commit f07fa55fd86726eeafcd4c0c687bc49dd4df9f4c)
(cherry picked from commit 0acf5ee7b5dfb6ff0f9a9745f5ad2a0ed2bf65bf)
(cherry picked from commit 67e5376dd64407f5aaf1ea5f8c896e356064a2c9)
(cherry picked from commit da352edceb74dbd715268f94516503042b48cc90)
2024-07-12 15:54:07 +02:00
..
2020-09-11 14:09:06 +01:00
2020-08-18 11:43:31 -05:00
2019-07-05 15:04:47 +00:00
2021-08-27 14:52:01 +01:00
2018-07-02 14:00:12 +01:00
2022-06-18 18:18:06 +00:00
2022-06-18 18:18:06 +00:00
2017-07-18 00:38:24 +00:00
2021-05-19 10:29:56 +02:00
2022-06-18 18:18:06 +00:00
2020-10-30 04:33:13 +00:00
2019-04-28 20:06:15 +00:00
2018-06-13 11:48:30 -05:00
2022-06-18 18:18:06 +00:00
2017-07-18 00:38:24 +00:00
2022-06-18 18:18:06 +00:00
2020-01-14 21:25:56 +00:00
2022-01-13 19:22:29 +00:00
2018-11-26 23:42:18 +00:00