https://progress.opensuse.org/
https://progress.opensuse.org/themes/openSUSE/favicon/favicon.ico?1582917784
2023-02-01T16:40:43Z
openSUSE Project Management Tool
openQA Tests - action #123682: [security] aarch64 Failed to connect to '/tmp/mytpm12/swtpm-sock': Connection refused
https://progress.opensuse.org/issues/123682?journal_id=598053
2023-02-01T16:40:43Z
szarate
<ul><li><strong>Category</strong> set to <i>Bugs in existing tests</i></li></ul>
openQA Tests - action #123682: [security] aarch64 Failed to connect to '/tmp/mytpm12/swtpm-sock': Connection refused
https://progress.opensuse.org/issues/123682?journal_id=599064
2023-02-07T16:47:33Z
amanzini
<ul><li><strong>Related to</strong> <i><a class="issue tracker-4 status-6 priority-4 priority-default closed" href="/issues/124011">action #124011</a>: [security] test fails in tpm2_measured_boot</i> added</li></ul>
openQA Tests - action #123682: [security] aarch64 Failed to connect to '/tmp/mytpm12/swtpm-sock': Connection refused
https://progress.opensuse.org/issues/123682?journal_id=599076
2023-02-07T16:58:43Z
amanzini
<ul></ul><p>according to <a href="https://qemu.readthedocs.io/en/latest/specs/tpm.html#the-qemu-tpm-emulator-device">https://qemu.readthedocs.io/en/latest/specs/tpm.html#the-qemu-tpm-emulator-device</a></p>
<p>"The TPM emulator device uses an external TPM emulator called ‘swtpm’ for sending TPM commands to and receiving responses from. The swtpm program must have been started before trying to access it through the TPM emulator with QEMU."</p>
<p>checkin if swtpm is running on openQA workers :</p>
<pre><code>_openqa+ 52457 0.0 0.0 9904 3724 ? Ss 11:01 0:00 swtpm socket --tpmstate dir=/tmp/mytpm18 --ctrl type=unixio,path=/tmp/mytpm18/swtpm-sock --log level=20 -d --tpm2
_openqa+ 52458 95.0 0.6 2580112 796960 ? Sl 11:01 1:33 /usr/bin/qemu-system-aarch64 -device virtio-gpu-pci,edid=on,xres=1024,yres=768 -only-migratable -chardev ringbuf,id=serial0,logfile=serial0,logappend=on -serial chardev:serial0 -audiodev none,id=snd0 -device intel-hda -device hda-output,audiodev=snd0 -m 1024 -machine virt,usb=off,gic-version=3,its=off -cpu host -netdev user,id=qanet0 -device virtio-net,netdev=qanet0,mac=52:54:00:12:34:56 -object rng-random,filename=/dev/urandom,id=rng0 -device virtio-rng-pci,rng=rng0 -chardev socket,id=chrtpm,path=/tmp/mytpm18/swtpm-sock -tpmdev emulator,id=tpm0,chardev=chrtpm -device tpm-tis-device,tpmdev=tpm0 -boot menu=on,splash-time=5000 -device nec-usb-xhci -device usb-tablet -device usb-kbd -smp 2 -enable-kvm -no-shutdown -vnc :108,share=force-shared -device virtio-serial -chardev pipe,id=virtio_console,path=virtio_console,logfile=virtio_console.log,logappend=on -device virtconsole,chardev=virtio_console,name=org.openqa.console.virtio_console -chardev pipe,id=virtio_console_user,path=virtio_console_user,logfile=virtio_console_user.log,logappend=on -device virtconsole,chardev=virtio_console_user,name=org.openqa.console.virtio_console_user -chardev socket,path=qmp_socket,server=on,wait=off,id=qmp_socket,logfile=qmp_socket.log,logappend=on -qmp chardev:qmp_socket -S -device virtio-scsi-pci,id=scsi0 -blockdev driver=file,node-name=hd0-overlay0-file,filename=/var/lib/openqa/pool/18/raid/hd0-overlay0,cache.no-flush=on -blockdev driver=qcow2,node-name=hd0-overlay0,file=hd0-overlay0-file,cache.no-flush=on,discard=unmap -device virtio-blk-device,id=hd0-device,drive=hd0-overlay0,bootindex=0,serial=hd0 -blockdev driver=file,node-name=cd0-overlay0-file,filename=/var/lib/openqa/pool/18/raid/cd0-overlay0,cache.no-flush=on -blockdev driver=qcow2,node-name=cd0-overlay0,file=cd0-overlay0-file,cache.no-flush=on,discard=unmap -device scsi-cd,id=cd0-device,drive=cd0-overlay0,serial=cd0 -drive id=pflash-code-overlay0,if=pflash,file=/var/lib/openqa/pool/18/raid/pflash-code-overlay0,unit=0,readonly=on -drive id=pflash-vars-overlay0,if=pflash,file=/var/lib/openqa/pool/18/raid/pflash-vars-overlay0,unit=1
amanzini@openqaworker-arm-2:~> cd /tmp/mytpm18
amanzini@openqaworker-arm-2:/tmp/mytpm18> ll
total 4
srwxrwx--- 1 _openqa-worker nogroup 0 Feb 8 11:01 swtpm-sock
-rw-r----- 1 _openqa-worker nogroup 1187 Feb 8 11:02 tpm2-00.permall
</code></pre>
<p>from SUT: </p>
<pre><code># dmesg | grep tpm
reports
"A TPM error (256) occured attempting the self test"
# lsmod | grep tpm
tpm_tis 16384 0
tpm_tis_core 28672 1 tpm_tis
- on the bios setting there is no TPM device detected/configured
</code></pre>
openQA Tests - action #123682: [security] aarch64 Failed to connect to '/tmp/mytpm12/swtpm-sock': Connection refused
https://progress.opensuse.org/issues/123682?journal_id=604277
2023-02-20T14:25:46Z
pstivanin
pstivanin@suse.com
<ul><li><strong>Status</strong> changed from <i>New</i> to <i>Rejected</i></li></ul><p>duplicate of <a href="https://progress.opensuse.org/issues/115919" class="external">https://progress.opensuse.org/issues/115919</a></p>
openQA Tests - action #123682: [security] aarch64 Failed to connect to '/tmp/mytpm12/swtpm-sock': Connection refused
https://progress.opensuse.org/issues/123682?journal_id=605375
2023-02-22T14:00:04Z
tjyrinki_suse
tjyrinki+redmine@suse.de
<ul><li><strong>Is duplicate of</strong> <i><a class="issue tracker-4 status-15 priority-3 priority-lowest" href="/issues/115919">action #115919</a>: [security] test fails in tpm2_measured_boot</i> added</li></ul>