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

Fix SEV CAPABLE function #273

Merged
merged 3 commits into from
Oct 20, 2020
Merged

Fix SEV CAPABLE function #273

merged 3 commits into from
Oct 20, 2020

Conversation

smarlowucf
Copy link
Collaborator

  • Add a test
  • And remove multipath check from base description for now.

I went with the full string match for SEV test. If it turns out to be troublesome we can make it less explicit.

The config is not set in all images yet.
There are multiples flags that need to be set to enable the
feature in an instance.
Checks dmesg output to confirm confidential compute is active in
an instance.
@@ -0,0 +1,4 @@
def test_sles_gce_sev(host):
expected = 'AMD Secure Encrypted Virtualization (SEV) active'
Copy link
Collaborator

Choose a reason for hiding this comment

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

Let's see how long this let's, maybe we get lucky and the message will stick. If not we can simplify and look for "SEV" and "active" rather than matching the hole string.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Right, if we want to make it simpler now that seems good but it's nice to be as expressive as possible without causing us any false negatives. Since the command is already grepping on SEV we really only need to expect active to be in the output.

@rjschwei rjschwei merged commit b858a68 into master Oct 20, 2020
@smarlowucf smarlowucf deleted the sev-test branch October 20, 2020 21:27
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