Add qcow2 format to upload image test
When we test uploading a volume to image, we have a config option
to specify the disk format. Currently the default disk format is
'raw' but most cinder backends store the volume in 'raw' format
and we end up avoiding the conversion workflow which becomes an
untested code path and could lead to bugs as recently discovered
with [1].
This patch adds the 'raw' and 'qcow2' as the default formats.
The config option is also updated to List so we have add multiple
formats to be tested by the same test.
[1] https://bugs.launchpad.net/cinder/+bug/2092534
Depends-On: https://review.opendev.org/c/openstack/cinder/+/938265
Related-Bug: #2092534
Change-Id: I5f0f005d9487d7cf59dfa818e2a327f6d3956d1b
diff --git a/releasenotes/notes/change-default-disk-format-0d5230cbb19e3d44.yaml b/releasenotes/notes/change-default-disk-format-0d5230cbb19e3d44.yaml
new file mode 100644
index 0000000..57c5319
--- /dev/null
+++ b/releasenotes/notes/change-default-disk-format-0d5230cbb19e3d44.yaml
@@ -0,0 +1,8 @@
+---
+upgrade:
+ - |
+ The default value for ``[volume] disk_format``, which specifies the
+ disk format of the image in a copy a volume to image operation,
+ is changed from ``raw`` to ``[raw, qcow2]`` for which the type of
+ the config option also needed to change from ``string`` type to
+ ``list`` type i.e. it accepts multiple values now.