Functional test fails with a: "Unknown file format 'qcow'" error on Centos8
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Glance |
Fix Released
|
High
|
Andre Aranha |
Bug Description
This issue was discovered on tests with FIPS enabled[1], but without FIPS the same issue happens.
When running glance functional tests on a Centos8 server, the following issue happens:
{1} glance.
Captured traceback:
~~~~~~~~~~~~~~~~~~~
Traceback (most recent call last):
File "/home/
fn = self._create_
File "/home/
shell=True)
File "/usr/lib64/
**kwargs)
File "/usr/lib64/
output=stdout, stderr=stderr)
subprocess.
~~~
Trying to run this command manually on a Centos8 server with qemu-img installed (qemu-img-
Initially it fails due to a gcrypt issue:
~~~
$ qemu-img create -f qcow /tmp/glance-
qemu-img: Unable to initialize gcrypt
~~~
There is a bug for this that[2] and the solution is to update the libgcrypt package. Previously I had 'libgcrypt-1.8.3-4' and updated to: 'libgcrypt-
After this, I got the "Unknown file format 'qcow'" error:
~~~
$ qemu-img create -f qcow /tmp/glance-
qemu-img: /tmp/glance-
$ qemu-img create -f qcow2 /tmp/glance-
Formatting '/tmp/glance-
~~~
Looking at our documentation I believe we don't support qcow format anymore[3], so should we still keep this test? Or maybe, change it to use qcow2 instead of qcow?
I believe that the reason we didn't see this issue on the CI's, is because they are testing on a Ubuntu server (At least for the patch I analysed).
[1] https:/
[2] https:/
[3] https:/
Changed in glance: | |
assignee: | nobody → Andre Aranha (afariasa) |
I think we should change it to use qcow2