Uploaded image for project: 'OpenShift Bugs'
  1. OpenShift Bugs
  2. OCPBUGS-64576

hypershift dump command fails due to unregistered EC2NodeClass resource

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Normal Normal
    • None
    • 4.20.z
    • HyperShift
    • None
    • Quality / Stability / Reliability
    • False
    • Hide

      None

      Show
      None
    • 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.

      https://gcsweb-qe-private-deck-ci.apps.ci.l2s4.p1.openshiftapps.com/gcs/qe-private-deck/logs/periodic-ci-openshift-openshift-tests-private-release-4.21-amd64-nightly-aws-ipi-ovn-hypershift-arm-nodepool-guest-efs-f7/1985205424625815552/artifacts/aws-ipi-ovn-hypershift-arm-nodepool-guest-efs-f7/dump/build-log.txt

      Actual results:

         dump directory does not contain the guest resources

      Expected results:

        there is a directory for the guest cluster dump information  

      Additional info:

          

              rhn-support-heli He Liu
              rhn-support-heli He Liu
              None
              None
              He Liu He Liu
              None
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Created:
                Updated: