From 947e541fc0f7c0fc2b759898ab8b9401d152f3d0 Mon Sep 17 00:00:00 2001 From: Andre Aranha Date: Mon, 11 Oct 2021 10:20:38 +0000 Subject: [PATCH] Update qcow test to use qcow2 instead qemu-img package for Centos 8 doesn't support qcow disk format anymore, due to this, tests using qcow are failing with `Unknown file format 'qcow'`. This patch updates the qcow tests for qcow2 instead. Closes-Bug: #1946457 Change-Id: If488ae4299a6cab521eec9c5e9ce4f29f94057e1 --- glance/tests/functional/v2/test_images.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/glance/tests/functional/v2/test_images.py b/glance/tests/functional/v2/test_images.py index 6ad8cfdb64..414574fe9f 100644 --- a/glance/tests/functional/v2/test_images.py +++ b/glance/tests/functional/v2/test_images.py @@ -905,9 +905,9 @@ class TestImages(functional.FunctionalTest): def _create_qcow(self, size): fn = tempfile.mktemp(prefix='glance-unittest-images-', - suffix='.qcow') + suffix='.qcow2') subprocess.check_output( - 'qemu-img create -f qcow %s %i' % (fn, size), + 'qemu-img create -f qcow2 %s %i' % (fn, size), shell=True) return fn