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

NodePool CRD validation fails with 'no such key: imageType' when creating AWS ARM64 clusters

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Major Major
    • None
    • 4.21
    • HyperShift
    • None
    • Quality / Stability / Reliability
    • False
    • Hide

      None

      Show
      None
    • None
    • Critical
    • None
    • None
    • Rejected
    • None
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      Description of problem:

      When creating an AWS HyperShift cluster with ARM64 architecture, the NodePool creation fails during CRD validation with the following error:
      NodePool.hypershift.openshift.io "939ae839d0524c0822c8-us-east-1a" is invalid:
      spec: Invalid value: "object": no such key: imageType evaluating rule:
      ImageType 'Windows' requires arch 'amd64' (AWS only)
      The root cause is a CEL validation rule in {{api/hypershift/v1beta1/nodepool_types.go:103}} that attempts to access the optional {{imageType}} field without first checking if it exists. 
      
          

      Version-Release number of selected component (if applicable):

      Introduced in PR #6746 (commit fd07723d4), merged November 5, 2025
      
          

      How reproducible:

      always
          

      Steps to Reproduce:

      1. Ensure you have a cluster with the NodePool CRD from commit fd07723d4 or later
      2. Attempt to create an AWS cluster with ARM64 architecture:
      {code:bash}
      hypershift create cluster aws \
        --name test-cluster \
        --node-pool-replicas 2 \
        --instance-type m6g.xlarge \
        --region us-east-1 \
        --zones us-east-1a \
        --arch=arm64 \
        --base-domain example.com \
        [... other required flags ...]
      3. Observe the NodePool creation failure with the "no such key: imageType" error
      
          

      Actual results:

      * NodePool creation is blocked
      * Error message: "no such key: imageType evaluating rule: ImageType 'Windows' requires arch 'amd64' (AWS only)"
          

      Expected results:

      * NodePool is created
      * Hostedcluster is created successfully
          

      Additional info:
      https://qe-private-deck-ci.apps.ci.l2s4.p1.openshiftapps.com/view/gs/qe-private-deck/pr-logs/pull/openshift_release/70893/rehearse-70893-periodic-ci-openshift-openshift-tests-private-release-4.21-multi-nightly-aws-ipi-ovn-arm-mixarch-mto-hypershift-arm-mgmt-f14/1986742833662398464

              rh-ee-xiuwang XiuJuan Wang
              rh-ee-xiuwang XiuJuan Wang
              None
              None
              XiuJuan Wang XiuJuan Wang
              None
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

                Created:
                Updated: