Bug 1972785

Summary: Rebase swtpm for rhel-9.0
Product: Red Hat Enterprise Linux 9 Reporter: Jaroslav Suchanek <jsuchane>
Component: swtpmAssignee: Marc-Andre Lureau <marcandre.lureau>
Status: CLOSED CURRENTRELEASE QA Contact: Yanqiu Zhang <yanqzhan>
Severity: medium Docs Contact:
Priority: medium    
Version: 9.0CC: abologna, coli, jferlan, marcandre.lureau, qcheng, virt-bugs, virt-maint, xuzhang, yanqzhan
Target Milestone: betaKeywords: FutureFeature, Triaged
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: swtpm-0.6.0-2.20210607gitea627b3.el9 Doc Type: Enhancement
Doc Text:
Story Points: ---
Clone Of: 1972783
: 2021580 (view as bug list) Environment:
Last Closed: 2021-12-07 21:18:41 UTC Type: Feature Request
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On: 1940893    
Bug Blocks: 2021580, 2029612    

Description Jaroslav Suchanek 2021-06-16 15:42:43 UTC
+++ 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.

Comment 1 Marc-Andre Lureau 2021-06-16 19:17:00 UTC
scratch-build fails because of bug 1940893:
https://kojihub.stream.rdu2.redhat.com/kojifiles/work/tasks/4328/314328/root.log

Comment 3 Marc-Andre Lureau 2021-06-28 09:46:48 UTC
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

Comment 8 Yanqiu Zhang 2021-06-30 13:12:48 UTC
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 ~]#

Comment 9 Yanqiu Zhang 2021-07-15 01:36:56 UTC
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.