Bug 1998452 - qemu-img-6.1.0-2.fc36 has no TLS support: error: qemu-nbd: TLS credentials support requires GNUTLS
Summary: qemu-img-6.1.0-2.fc36 has no TLS support: error: qemu-nbd: TLS credentials su...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: qemu
Version: rawhide
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Fedora Virtualization Maintainers
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2021-08-27 09:20 UTC by Richard W.M. Jones
Modified: 2021-09-24 20:10 UTC (History)
10 users (show)

Fixed In Version: qemu-6.1.0-4.fc35
Clone Of:
Environment:
Last Closed: 2021-09-24 20:10:13 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Richard W.M. Jones 2021-08-27 09:20:46 UTC
Description of problem:

qemu-img-6.1.0-2.fc36 seems to be compiled without TLS (gnutls)
support.  Simple qemu-nbd commands fail with errors like:

qemu-nbd: TLS credentials support requires GNUTLS

Also inspecting the build log shows gnutls-devel was not
installed at build time and --disable-gnutls is passed
to configure.

Version-Release number of selected component (if applicable):

qemu-img-6.1.0-2.fc36

How reproducible:

100%

Steps to Reproduce:
1. In libnbd: make -C interop check

qemu last root.log:
https://kojipkgs.fedoraproject.org//packages/qemu/6.1.0/2.fc36/data/logs/s390x/root.log
and build.log:
https://kojipkgs.fedoraproject.org//packages/qemu/6.1.0/2.fc36/data/logs/x86_64/build.log

libnbd build failure showing the error:
https://kojipkgs.fedoraproject.org//work/tasks/828/74610828/build.log

Comment 1 Richard W.M. Jones 2021-08-27 09:22:25 UTC
I would guess it's something to do with this commit which
I don't understand:
https://src.fedoraproject.org/rpms/qemu/c/a06059bd4d3b89e46c0c155c8430a7a13bd128f4?branch=rawhide

I'm going to revert it and see if that fixes the problem.

Comment 2 Daniel Berrangé 2021-08-27 09:33:02 UTC
Yes, that commit is totally bogus and doesn't match the $subject.

It needs to disable *gcrypt*  not gnutls.

Comment 3 Richard W.M. Jones 2021-08-27 09:37:49 UTC
I'm doing builds of qemu with the commit reverted:
https://koji.fedoraproject.org/koji/taskinfo?taskID=74613023 rawhide
https://koji.fedoraproject.org/koji/taskinfo?taskID=74613145 f35

However that's just to get libnbd working again.  Those
builds don't fix the problem completely because as Dan
says we need to still disable gcrypt.

Comment 4 Richard W.M. Jones 2021-08-27 12:01:51 UTC
This (should be) a scratch build of qemu with gcrypt disabled for real:

https://koji.fedoraproject.org/koji/taskinfo?taskID=74620666

If it works I will test it locally first and then push this change.

Comment 5 Richard W.M. Jones 2021-08-27 12:09:57 UTC
The scratch build has:

  Crypto
    TLS priority                 : "@QEMU,SYSTEM"
    GNUTLS support               : YES
    GNUTLS crypto                : YES
    libgcrypt                    : NO
    nettle                       : NO
    crypto afalg                 : NO
    rng-none                     : NO
    Linux keyring                : YES

I believe from reading https://www.gnutls.org/manual/html_node/Cryptographic-Backend.html
that this means we're using only the internal "default crypto provider
– a software crypto library".  I don't know if that's what we're intending
but that's likely what we're going to get.

Comment 6 Fedora Update System 2021-08-27 18:28:26 UTC
FEDORA-2021-23daee315d has been submitted as an update to Fedora 35. https://bodhi.fedoraproject.org/updates/FEDORA-2021-23daee315d

Comment 7 Fedora Update System 2021-08-28 18:34:19 UTC
FEDORA-2021-23daee315d has been pushed to the Fedora 35 testing repository.
Soon you'll be able to install the update with the following command:
`sudo dnf upgrade --enablerepo=updates-testing --advisory=FEDORA-2021-23daee315d`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2021-23daee315d

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.

Comment 8 Fedora Update System 2021-09-24 20:10:13 UTC
FEDORA-2021-23daee315d has been pushed to the Fedora 35 stable repository.
If problem still persists, please make note of it in this bug report.


Note You need to log in before you can comment on or make changes to this bug.