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
This commit is contained in:
parent
5e28820195
commit
947e541fc0
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user