-
Notifications
You must be signed in to change notification settings - Fork 17
[BLOCKED] kola: enable Azure vTPM feature and TPM tests #723
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
base: main
Are you sure you want to change the base?
Conversation
a3b1da8 to
f139207
Compare
cmd/kola/options.go
Outdated
| sv(&kola.AzureOptions.Version, "azure-version", "", "Azure image version") | ||
| sv(&kola.AzureOptions.Location, "azure-location", "westus", "Azure location (default \"westus\"") | ||
| sv(&kola.AzureOptions.Size, "azure-size", "Standard_DS2_v2", "Azure machine size (default \"Standard_DS2_v2\")") | ||
| sv(&kola.AzureOptions.Size, "azure-size", "Standard_DS2_v5", "Azure machine size") |
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.
Is this some kind of typo here? In scripts/ci-automation/ci-config.env we're using:
Standard_D2s_v4
(DS2 vs D2s) ?
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.
Looks like that typo has been there forever (we always explicitly specify the instance type when running tests). Will fix.
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.
Yeah and we did not detected it because ci-config.env is the source of trust here.
Thanks for confirming, instance types on Azure are confusing me.
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.
This wasn't a typo - the v2 instances were actually called that way DSX_v2: https://learn.microsoft.com/en-us/azure/virtual-machines/sizes/general-purpose/dsv2-series?tabs=sizebasic.
This change enables Azure's vTPM feature via a command line flag (defaults to enabled). It also allowlists 6 TPM tests to run on Azure. We also change the default instance family/size to Standard_DS2_v5 as the previously used Standard_DS2_v2 has been deprecated a long time ago. Signed-off-by: Thilo Fromm <thilofromm@microsoft.com>
4ea9e6c to
218c461
Compare
Status
This PR is blocked by secure boot / trusted launch support for Azure. Azure refuses to launch a VM with vTPM if the image does not support trusted launch:
Secure boot support is blocked by CNCF SHIM signing, tracked in https://cncfservicedesk.atlassian.net/servicedesk/customer/portal/1/CNCFSD-2581.
Summary
This change enables Azure's vTPM feature via a command line flag (defaults to enabled). It also allowlists 6 TPM tests to run on Azure. It also updates the default instance type / size to Standard_DS2_v5 as the previously used Standard_DS2_v2 was deprecated some time ago.
This tackles some of the tests from flatcar/Flatcar#1978 but not all.
How to use
Run cl.tpm.* tests on Azure.
Testing done
In progress - running cl.tpm.* tests in Azure.