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

OpenShift Console's "Start Job" action overrides configured "backoffLimit" to "6"

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Major Major
    • 4.20.0
    • 4.19
    • Management Console
    • None
    • Quality / Stability / Reliability
    • False
    • Hide

      None

      Show
      None
    • None
    • Important
    • None
    • None
    • None
    • None
    • Proposed
    • None
    • Hide
      Before this update, starting a job from the console always reset its `backoffLimit` to 6, overriding your configured value. This update preserves the configured `backoffLimit` when you start a job in the console. As a result, jobs behave consistently between the console and the CLI. (link:https://issues.redhat.com/browse/OCPBUGS-59382[OCPBUGS-59382])
      Show
      Before this update, starting a job from the console always reset its `backoffLimit` to 6, overriding your configured value. This update preserves the configured `backoffLimit` when you start a job in the console. As a result, jobs behave consistently between the console and the CLI. (link: https://issues.redhat.com/browse/OCPBUGS-59382 [ OCPBUGS-59382 ])
    • None
    • None
    • None
    • None

      Description of problem:

      When a Job is manually started via the OpenShift Console's using "Start Job" functionality, its spec.backoffLimit is unexpectedly set to 6, even if the underlying Job definition or template is configured with backoffLimit: 0. 
      
      In contrast, when the same Job is manually initiated via the oc CLI, it correctly adheres to the backoffLimit: 0 specified in its configuration.
      
      This behavior creates an inconsistency, where the console's manual trigger overrides explicit configuration.

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

          4.19.Z

      How reproducible:

          100%

      Steps to Reproduce:

          1. Manually start the Job via the OpenShift Console. 
             Go to "Workloads" -> "Jobs" and click the "Start Job" 
      
          2. Note the name of the new Job run generated by the console and check the backofflimit paramater. (It is giving 6)
           
          

      Actual results:

          The newly created Job run shows backoffLimit: 6, overriding the configured in the base definition.

      Expected results:

          It should obey the defined backofflimit in the job. 

      Additional info:

      - From the CLI it is working as expected --> whatever the backofflimit is define job is obeying that
      
      - From the console it is getting "backofflimit: 6"
      
      1. Job created manually via cli.
       
      $ oc get job image-pruner-29210400 -o yaml | grep -i backofflimit
        backoffLimit: 0
      
      
      2. Job created manually via console
      
      $ oc get job image-pruner-1752640975985 -o yaml | grep -i backofflimit
        backoffLimit: 6

       

              rh-ee-mziska Marek Ziska (Inactive)
              rhn-support-arbhagat Arpit Bhagat
              None
              None
              YaDan Pei YaDan Pei
              Jocelyn Sese Jocelyn Sese
              Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

                Created:
                Updated: