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

[azure] uninitialized taint couldn't be removed if user defined taints in machineset

XMLWordPrintable

    • Important
    • Yes
    • CLOUD Sprint 239
    • 1
    • Approved
    • False
    • Hide

      This would break users upgrading as they would not be able to successfully scale a MachineSet if there were any taints defined within the MachineSet

      Show
      This would break users upgrading as they would not be able to successfully scale a MachineSet if there were any taints defined within the MachineSet

      Description of problem:

      User defined taints in machineset, then scale up machineset, instance can join the cluster and Node will be Ready but pod couldn't be deployed, checked node yaml file uninitialized taint was not removed.

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

      4.14.0-0.nightly-2023-07-20-215234

      How reproducible:

      Always

      Steps to Reproduce:

      1.Setup a cluster on Azure
      2.Create a machineset with taint
            taints:
            - effect: NoSchedule
              key: mapi
              value: mapi_test
      3.Check node yaml file
      

      Actual results:

      uninitialized taint still in node, but no providerID in node.
      $ oc get node 
      NAME                                              STATUS   ROLES                  AGE   VERSION
      zhsun724-mh4dt-master-0                           Ready    control-plane,master   9h    v1.27.3+4aaeaec
      zhsun724-mh4dt-master-1                           Ready    control-plane,master   9h    v1.27.3+4aaeaec
      zhsun724-mh4dt-master-2                           Ready    control-plane,master   9h    v1.27.3+4aaeaec
      zhsun724-mh4dt-worker-westus21-8rzqw              Ready    worker                 21m   v1.27.3+4aaeaec
      zhsun724-mh4dt-worker-westus21-additional-q58zp   Ready    worker                 9h    v1.27.3+4aaeaec
      zhsun724-mh4dt-worker-westus21-additional-vwwhh   Ready    worker                 9h    v1.27.3+4aaeaec
      zhsun724-mh4dt-worker-westus21-v7k7s              Ready    worker                 9h    v1.27.3+4aaeaec
      zhsun724-mh4dt-worker-westus22-ggxql              Ready    worker                 9h    v1.27.3+4aaeaec
      zhsun724-mh4dt-worker-westus23-zf8l5              Ready    worker                 9h    v1.27.3+4aaeaec
      
      $ oc edit node zhsun724-mh4dt-worker-westus21-8rzqw
      spec:
        taints:
        - effect: NoSchedule
          key: node.cloudprovider.kubernetes.io/uninitialized
          value: "true"
        - effect: NoSchedule
          key: mapi
          value: mapi_test

      Expected results:

      uninitialized taint is removed, providerID is set in node.

      Additional info:

      must-gather: https://drive.google.com/file/d/12ypYmHN98j9lyWCS9Dgaqq5MLpftqEkS/view?usp=sharing

              joelspeed Joel Speed
              rhn-support-zhsun Zhaohua Sun
              Zhaohua Sun Zhaohua Sun
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

                Created:
                Updated:
                Resolved: