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

userDataSecret.name should be a Required value on AWS

XMLWordPrintable

    • Quality / Stability / Reliability
    • False
    • Hide

      None

      Show
      None
    • None
    • Low
    • None
    • None
    • None
    • None
    • Proposed
    • Bug Fix
    • Hide
      Before this update, {aws-short} `machinesets` could have a null `userDataSecret` name, leading to machines remaining in a provisioning state. With this release, a non-empty `userDataSecret` name is required, preventing unexpected machine behavior. (link:https://issues.redhat.com/browse/OCPBUGS-60427[OCPBUGS-60427])
      Show
      Before this update, {aws-short} `machinesets` could have a null `userDataSecret` name, leading to machines remaining in a provisioning state. With this release, a non-empty `userDataSecret` name is required, preventing unexpected machine behavior. (link: https://issues.redhat.com/browse/OCPBUGS-60427 [ OCPBUGS-60427 ])
    • None
    • None
    • None
    • None

      This is a clone of issue OCPBUGS-55135. The following is the description of the original issue:

      Description of problem:

      On aws update machineset userDataSecret.name with empty value and scale up machineset, new machine stuck in Provisioning status, should have webhook denied the request.

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

      4.19.0-0.nightly-2025-04-17-154552

      How reproducible:

      100%

      Steps to Reproduce:

          1. Update machineset userDataSecret.name with empty value and scale up machineset.
       $ oc edit machineset zhsunaws1-k4gwv-worker-us-east-2c
                userDataSecret:
                  name: ""
          2.
          3.
          

      Actual results:

      Machine stuck in Provisioning status.
      $ oc get machine  
      NAME                                      PHASE          TYPE         REGION      ZONE         AGE
      zhsunaws1-k4gwv-worker-us-east-2c-z9bcr   Provisioning                                         4m52s    

      Expected results:

      admission webhook "validation.machineset.machine.openshift.io" denied the request: providerSpec.userDataSecret.name: Required value: name must be provided

      Additional info:

      on gcp: 
      $ oc edit machineset minmli-041801-4qwv6-worker-f  
      error: machinesets.machine.openshift.io "minmli-041801-4qwv6-worker-f" could not be patched: admission webhook "validation.machineset.machine.openshift.io" denied the request: providerSpec.userDataSecret.name: Required value: name must be provided
      
      on azure: 
      $ oc edit machineset qe-uidaily-0418-qgkjk-worker-eastus3        
      error: machinesets.machine.openshift.io "qe-uidaily-0418-qgkjk-worker-eastus3" could not be patched: admission webhook "validation.machineset.machine.openshift.io" denied the request: providerSpec.userDataSecret.name: Required value: name must be provide

              rhn-support-gparente German Parente
              rhn-support-zhsun Zhaohua Sun
              None
              None
              Huali Liu Huali Liu
              None
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Created:
                Updated:
                Resolved: