-
Bug
-
Resolution: Unresolved
-
Normal
-
None
-
4.20.z
-
None
-
Quality / Stability / Reliability
-
False
-
-
None
-
Moderate
-
None
-
None
-
None
-
None
-
None
-
None
-
None
-
None
-
None
-
None
-
None
Description of problem:
In the Prow CI jobs, the hosted cluster resources are not included in the dump file because of the failure shown below:
+ CLUSTER_NAME=fe04f8b95fedb4d68b67
+ bin/hypershift dump cluster --artifact-dir=/logs/artifacts --dump-guest-cluster=true --name=fe04f8b95fedb4d68b67
{"level":"info","ts":"2025-11-03T06:43:07Z","msg":"dumping container logs","namespace":"clusters-fe04f8b95fedb4d68b67"}
{"level":"info","ts":"2025-11-03T06:44:21Z","msg":"dumping container logs","namespace":"hypershift"}
{"level":"info","ts":"2025-11-03T06:44:24Z","msg":"Dumping guestcluster","target":"/logs/artifacts/hostedcluster-fe04f8b95fedb4d68b67"}
{"level":"error","ts":"2025-11-03T06:44:24Z","msg":"Failed to dump guest cluster","error":"failed to dump guest cluster: failed to resolve GVK for *v1.EC2NodeClass: no kind is registered for the type v1.EC2NodeClass in scheme \"/hypershift/support/api/scheme.go:59\"","stacktrace":"github.com/openshift/hypershift/cmd/cluster/core.DumpCluster\n\t/hypershift/cmd/cluster/core/dump.go:451\ngithub.com/openshift/hypershift/cmd/cluster/core.NewDumpCommand.func1\n\t/hypershift/cmd/cluster/core/dump.go:164\ngithub.com/spf13/cobra.(*Command).execute\n\t/hypershift/vendor/github.com/spf13/cobra/command.go:1015\ngithub.com/spf13/cobra.(*Command).ExecuteC\n\t/hypershift/vendor/github.com/spf13/cobra/command.go:1148\ngithub.com/spf13/cobra.(*Command).Execute\n\t/hypershift/vendor/github.com/spf13/cobra/command.go:1071\ngithub.com/spf13/cobra.(*Command).ExecuteContext\n\t/hypershift/vendor/github.com/spf13/cobra/command.go:1064\nmain.main\n\t/hypershift/main.go:78\nruntime.main\n\t/usr/lib/golang/src/runtime/proc.go:283"}
{"level":"info","ts":"2025-11-03T06:44:24Z","msg":"Archiving dump","command":"tar","args":["-cvzf","hypershift-dump.tar.gz","aggregated-discovery-api.yaml","aggregated-discovery-apis.yaml","cluster-scoped-resources","event-filter.html","namespaces","network_logs","timestamp"]}
Version-Release number of selected component (if applicable):
4.21.z
How reproducible:
100%
Steps to Reproduce:
See prow jobs, e.g.
Actual results:
dump directory does not contain the guest resources
Expected results:
there is a directory for the guest cluster dump information
Additional info: