Uploaded image for project: 'OpenShift Node'
  1. OpenShift Node
  2. OCPNODE-4040

kubeletconfig status is very confusing

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Undefined Undefined
    • None
    • None
    • None
    • None
    • None
    • False
    • Hide

      None

      Show
      None
    • None
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      This is very confusing:

       

      tus:
        Conditions:
          Last Transition Time:  2026-01-16T09:26:47Z
          Message:               Success
          Status:                True
          Type:                  Success
          Last Transition Time:  2026-01-16T09:31:57Z
          Message:               Error: KubeletConfiguration: swapBehavior is not allowed to be set, but contains: LimitedSwap
          Status:                False
          Type:                  Failure
        Observed Generation:     4
      Events:                    <none> 

       

       

      There is both Success and Failure reported in this case. Based on the time stamp, the user can find which is the latest, but its still confusing

       

      Steps to reproduce:

      1. Create and apply a valid kubeletconfig
      2. Create an invalid kubeletconfig and apply

       

       

      apiVersion: machineconfiguration.openshift.io/v1
      kind: KubeletConfig
      metadata:
        name: 80-custom
      spec:
        machineConfigPoolSelector:
          matchLabels:
            pools.operator.machineconfiguration.openshift.io/worker: ""  kubeletConfig:
          apiVersion: kubelet.config.k8s.io/v1beta1
          kind: KubeletConfiguration
          memorySwap:
           swapBehavior: LimitedSwap 

       

      Identified while working on https://github.com/openshift/machine-config-operator/pull/5542

       

              rh-ee-ngopalak Neeraj Krishna Gopalakrishna
              rh-ee-ngopalak Neeraj Krishna Gopalakrishna
              None
              None
              None
              None
              None
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated: