-
Notifications
You must be signed in to change notification settings - Fork 34
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
Mantle test cl.cloudinit.basic
sometimes fails on Azure
#1505
Labels
Comments
I could always reproduce the issue by forcing the diff --git a/kola/harness.go b/kola/harness.go
index cb59f5f5..fd9bfde4 100644
--- a/kola/harness.go
+++ b/kola/harness.go
@@ -437,17 +437,6 @@ func RunTests(patterns []string, channel, offering, pltfrm, outputDir string, ss
// If the version is > 3033, we can safely use user-data instead of custom-data for
// provisioning the instance on Azure.
- if !version.LessThan(semver.Version{Major: 3034}) && pltfrm == "azure" {
- // Using reflection is a bit hacky, but it seems to be the only way to
- // access the field we want to set.
- f := reflect.ValueOf(flight).Elem()
- api := f.FieldByName("Api")
- opts := api.Elem().FieldByName("Opts")
- userData := opts.Elem().FieldByName("UseUserData")
- // At this point, this field can be set.
- userData.SetBool(true)
- }
-
versionStr = version.String()
// one more filter pass now that we know real version
@@ -456,6 +445,12 @@ func RunTests(patterns []string, channel, offering, pltfrm, outputDir string, ss
plog.Fatal(err)
}
}
+ f := reflect.ValueOf(flight).Elem()
+ api := f.FieldByName("Api")
+ optsField := api.Elem().FieldByName("Opts")
+ userData := optsField.Elem().FieldByName("UseUserData")
+ // At this point, this field can be set.
+ userData.SetBool(true)
opts := harness.Options{
OutputDir: outputDir,
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
Description
As this issue appears only sometimes, it might be the case that there is a concurrency / transient issue type, stemming from either Ignition or Wagent.
Passing test journalctl logs: https://bincache.flatcar-linux.net/testing/4046.0.0+nightly-20240729-2100/amd64/azure/_kola_temp/azure-2024-07-30-0555-15/cl.cloudinit.basic/ci-4046.0.0-n-f9594f212a/journal.txt
Failing test journalctl logs: https://bincache.flatcar-linux.net/testing/4046.0.0+nightly-20240729-2100/amd64/azure/_kola_temp/azure-2024-07-30-0537-54/cl.cloudinit.basic/ci-4046.0.0-n-8bf0e4f56d/journal.txt
The difference between a passing test and a failing test seems to be how Ignition handles Azure metadata:
PASSING - code branch https://github.com/coreos/ignition/blob/main/internal/providers/azure/azure.go#L106:
FAILING - code branch https://github.com/coreos/ignition/blob/main/internal/providers/azure/azure.go#L98:
Impact
The issue might hide something more serious and it should be investigated and fixed upstream.
Environment and steps to reproduce
Expected behavior
cl.cloudinit.basic should not fail
The text was updated successfully, but these errors were encountered: