+++ This bug was initially created as a clone of Bug #1972783 +++ Please rebase swtpm to latest upstream version, currently 0.6.0. It is specifically desired due to python dependency removal, https://github.com/stefanberger/swtpm/issues/437 This has significant benefit for OpenShift Virtualization product. It shrinks the installation image as this is the only components which pulls in all python set.
scratch-build fails because of bug 1940893: https://kojihub.stream.rdu2.redhat.com/kojifiles/work/tasks/4328/314328/root.log
scratch-build ok: https://kojihub.stream.rdu2.redhat.com/koji/taskinfo?taskID=316257 MR: https://gitlab.com/redhat/centos-stream/rpms/swtpm/-/merge_requests/6 please qa_ack
koji build is done since last week: https://kojihub.stream.rdu2.redhat.com/koji/buildinfo?buildID=9127 What's the process to move to on_qa? thanks
Basic test with kojihub swtpm pkg pass. Pkgs version: swtpm-libs-0.6.0-1.20210607gitea627b3.el9.x86_64 swtpm-0.6.0-1.20210607gitea627b3.el9.x86_64 swtpm-tools-0.6.0-1.20210607gitea627b3.el9.x86_64 libtpms-0.8.2-0.20210301git729fc6a4ca.el9.4.x86_64 edk2-ovmf-20200602gitca407c7246bf-2.el9.noarch libvirt-7.4.0-1.el9.x86_64 qemu-kvm-6.0.0-7.el9.x86_64 kernel-5.13.0-0.rc7.51.el9.x86_64 Steps: # virsh start avocado-vt-vm1 Domain 'avocado-vt-vm1' started # virsh dumpxml avocado-vt-vm1|grep /tpm -B4 </input> <tpm model='tpm-crb'> <backend type='emulator' version='2.0'/> <alias name='tpm0'/> </tpm> # virsh console avocado-vt-vm1 Connected to domain 'avocado-vt-vm1' Escape character is ^] (Ctrl + ]) Red Hat Enterprise Linux 8.4 (Ootpa) Kernel 4.18.0-305.el8.x86_64 on an x86_64 localhost login: root Password: Last login: Wed Jun 30 20:52:33 on ttyS0 [root@localhost ~]# ls /dev|grep tpm tpm0 tpmrm0 [root@localhost ~]# tpm2_getrandom 16 --hex 052e8019e5f486ce6874f952c989429d[root@localhost ~]#
Verified on: swtpm-0.6.0-2.20210607gitea627b3.el9.x86_64 libtpms-0.8.2-0.20210301git729fc6a4ca.el9.5 libvirt-7.4.0-1.el9.x86_64 qemu-kvm-6.0.0-8.el9.x86_64 kernel-5.13.0-1.el9.x86_64 https://libvirt-jenkins.rhev-ci-vms.eng.rdu2.redhat.com/view/Gating/job/swtpm-RHEL-9.0-runtest-x86_64-acceptance-gating/31/testReport 2 skipped by bz1969354.