-
Notifications
You must be signed in to change notification settings - Fork 389
tpm: T7713: T7717: Multiple TPM fixes #4669
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
Conversation
👍 |
@sarthurdev please check the following scenario (TPM emulation is on):
encryption disable fails with the following error:
the actual error:
It seems like at this point the |
@sarthurdev when disabling encryption - if we choose not to overwrite the existing config backup
|
@sarthurdev add system image fails if we choose not to copy the active configuration:
Exception occurs at this step of the process |
@sarthurdev in case we have image1 and image2 |
Thanks Alex, I'll update the PR this week. |
9b08d47
to
868f7f0
Compare
637cfd7
to
70629c7
Compare
@alexk37 Hey Alex, if you have any time to check the new integration ISO? I've done testing on the scenarios you've described and I think they should all be addressed now. |
@sarthurdev Hi Simon, kindly check the following issues, they reproduce in
Detailed testing log is available in Jira - https://internal.jira.vyos.com/browse/VD-1447?focusedCommentId=28569 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Rolling is a good candidate for check fixes.
@sever-sever apart from some tpm issues, currently there is an issue which causes 'add system image' to fail if we choose not to copy the active config, just wanted to inform in case this is major issue for rolling |
I'm not sure that issue relates to the TPM code or changes in this PR? When I had a quick look it might be relating to this commit 3fe5f8f and might be better suited as a separate task. Edit: From latest rolling
|
@sarthurdev you are right, the error itself is related to another commit. With TPM changes the failing line of code was moved up so the image installation code is not executed anymore ![]() UPD: |
This pull request has conflicts, please resolve those before we can evaluate the pull request. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There are conflicts
src/helpers/vyos-config-encrypt.py
5 conflicts
<<<<<<< tpm_fixes
from vyos.utils.process import cmd, run
=======
from vyos.utils.process import cmd
from vyos.defaults import directories
>>>>>>> current
<<<<<<< tpm_fixes
for path in mount_paths:
run(f'umount -l {path}')
cmd(f'mount /dev/mapper/vyos_config {path}')
cmd(f'chgrp -R vyattacfg {path}')
=======
cmd(f'mount /dev/mapper/vyos_config {mount_path}')
cmd(f'chgrp -R vyattacfg {mount_path}')
>>>>>>> current
70629c7
to
90f97d8
Compare
Conflicts have been resolved. A maintainer will review the pull request shortly. |
fc5ef6e
to
ac01dc7
Compare
This pull request has conflicts, please resolve those before we can evaluate the pull request. |
Move encrypted volume check before key input Unmount any conflicting config bind mounts
ac01dc7
to
080f8f7
Compare
Conflicts have been resolved. A maintainer will review the pull request shortly. |
080f8f7
to
36d9d70
Compare
CI integration 👍 passed! Details
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Rolling is a good candidate for check fixes.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't see any issues and now all suggestions are implemented, so let's give it a try.
Change summary
vyattacfg
group on mounted config directoryadd system image
Includes minor formatting changes, single-line imports.
Types of changes
Related Task(s)
Related PR(s)
How to test / Smoketest result
make testtpm
passes and all error steps reported in Phorge now succeed.Checklist: