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

Move all Keylime web components to Tornado #835

Closed
wants to merge 6 commits into from

Conversation

THS-on
Copy link
Member

@THS-on THS-on commented Jan 14, 2022

We are currently using Tornado for the verifier, but not for the agent and registrar.
This PR moves the agent and registrar to Tornado and unifies the utilities used for Tornado in the tornado_helpers module.

Signed-off-by: Thore Sommer <mail@thson.de>
The code is shared between registrar and verifier.

Signed-off-by: Thore Sommer <mail@thson.de>
Instead of using the builtin HTTP server implementation of Python, Keylime
now uses also the Tornado framework for the registrar.

Signed-off-by: Thore Sommer <mail@thson.de>
This function is Tornado specific and is not required for configuration of
Keylime, so it is moved into the tornado_helpers module.

Signed-off-by: Thore Sommer <mail@thson.de>
tornado_response was renamed to TornadoResponse.

The json and yaml methods were removed because they were unsed.

Signed-off-by: Thore Sommer <mail@thson.de>
The response object might not have error as a member.

Signed-off-by: Thore Sommer <mail@thson.de>
@THS-on
Copy link
Member Author

THS-on commented Jan 14, 2022

@kkaarreell the test fails, but all individual steps have a PASS and 0 bad are reported, do you know why?

@THS-on
Copy link
Member Author

THS-on commented Jan 14, 2022

/packit test

@THS-on
Copy link
Member Author

THS-on commented Jan 14, 2022

Ok it seems that the tests reach a timeout of 15min, but I don't know why.

@kkaarreell
Copy link
Contributor

@THS-on I can reproduce the problem locally. keylime_agent hung and didn't react on kill signal. However, I can reproduce it using this branch but not using the keylime master branch. Is there something in this PR that would explain it?

@kkaarreell
Copy link
Contributor

I have update the test suite. It won't timeout but better check the test log to see that there hasn't been any traceback when the process has been terminated.

@THS-on THS-on marked this pull request as draft January 15, 2022 08:54
@THS-on
Copy link
Member Author

THS-on commented Jan 15, 2022

@kkaarreell It is fine for me if the CI fails when stopping the services fails for some reason, but it should be visible in the logs.

Moving the registrar and agent to Tornado seems to cause some timeouts, that I cannot get rid off.
I'll revert those changes and just keep the general improvements in this PR.

@kkaarreell
Copy link
Contributor

OK, I will partially revert the test update on Monday. I have realized that the former version could have masked some issues so it is possible those will become visible.

@THS-on
Copy link
Member Author

THS-on commented Jan 16, 2022

Superseded by #837

@THS-on THS-on closed this Jan 16, 2022
@kkaarreell
Copy link
Contributor

@THS-on I have updated tests and also provided basic instructions on how to run them locally on a test system.
https://github.com/RedHat-SP-Security/keylime-tests/blob/main/TESTING.md

@THS-on THS-on deleted the move-to-tornado branch February 6, 2022 18:26
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.

None yet

5 participants