Actions
action #123682
closed[security] aarch64 Failed to connect to '/tmp/mytpm12/swtpm-sock': Connection refused
Status:
Rejected
Priority:
Normal
Assignee:
-
Category:
Bugs in existing tests
Target version:
-
Start date:
Due date:
% Done:
0%
Estimated time:
16.00 h
Difficulty:
Tags:
Description
See https://openqa.suse.de/tests/10375321 or always the latest at https://openqa.suse.de/tests/latest?arch=aarch64&distri=sle&flavor=Online&machine=aarch64&test=security_tpm2_swtpm&version=15-SP5
Swtpm device is incorrectly defined?
Updated by amanzini almost 2 years ago
- Related to action #124011: [security] test fails in tpm2_measured_boot added
Updated by amanzini almost 2 years ago
according to https://qemu.readthedocs.io/en/latest/specs/tpm.html#the-qemu-tpm-emulator-device
"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."
checkin if swtpm is running on openQA workers :
_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
from SUT:
# 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
Updated by pstivanin almost 2 years ago
- Status changed from New to Rejected
duplicate of https://progress.opensuse.org/issues/115919
Updated by tjyrinki_suse almost 2 years ago
- Is duplicate of action #115919: [security] test fails in tpm2_measured_boot added
Actions