Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

kola: Run qemu and swtpm with the machine folder as working dir #526

Merged
merged 1 commit into from
Apr 17, 2024

Conversation

pothos
Copy link
Member

@pothos pothos commented Apr 16, 2024

The long UNIX socket path caused problems and the workaround was to shorten the test names but a real solution is to ensure that the path is always short. This can be done by setting the current working directory for the swtpm process to the machine folder which also holds the socket and, in addition, setting the current working directory for the qemu process to the same folder. Then we can use 'tpm/socket' as path which is ensured to be below the limit of 108 characters.

How to use

Testing done

Tests passed on GitHub Actions in this test PR

platform/local/tpm.go Outdated Show resolved Hide resolved
The long UNIX socket path caused problems and the workaround was to
shorten the test names but a real solution is to ensure that the path
is always short. This can be done by setting the current working
directory for the swtpm process to the machine folder which also holds
the socket and, in addition, setting the current working directory for
the qemu process to the same folder. Then we can use 'tpm/socket' as
path which is ensured to be below the limit of 108 characters.
Copy link
Member

@jepio jepio left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

these names are long 😆

@pothos pothos merged commit d5a3a25 into flatcar-master Apr 17, 2024
3 checks passed
@pothos pothos deleted the kai/tpmcwd branch April 17, 2024 10:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants