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

IBU: negative number is accepted for autoRollbackOnFailure.initMonitorTimeoutSeconds

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Undefined Undefined
    • None
    • 4.15
    • LCA operator
    • No
    • CNF RAN Sprint 250
    • 1
    • False
    • Hide

      None

      Show
      None

      I'm able to set a negative value for autoRollbackOnFailure.initMonitorTimeoutSeconds

       

       

      oc patch imagebasedupgrades.lca.openshift.io upgrade -p='{"spec": {"autoRollbackOnFailure": {"disabledForPostRebootConfig": true, "disabledInitMonitor": true, "disabledForUpgradeCompletion": true, "initMonitorTimeoutSeconds": -3}}}' --type=merge -n openshift-lifecycle-agent
      imagebasedupgrade.lca.openshift.io/upgrade patched
      
      
      
      
      
      oc get ibu upgrade -o yaml
      apiVersion: lca.openshift.io/v1alpha1
      kind: ImageBasedUpgrade
      metadata:
        annotations:
          kubectl.kubernetes.io/last-applied-configuration: |
            {"apiVersion":"lca.openshift.io/v1alpha1","kind":"ImageBasedUpgrade","metadata":{"annotations":{},"name":"upgrade"},"spec":{"extraManifests":[{"name":"extra-manifests-cm0","namespace":"openshift-lifecycle-agent"},{"name":"extra-manifests-cm1","namespace":"openshift-lifecycle-agent"}],"oadpContent":[{"name":"oadp-cm-backup","namespace":"openshift-adp"}],"seedImageRef":{"image":"quay.io/achuzhoy/ibu-seedimage-sno0:4.15.0-rc.5-oadp","version":"4.15.0-rc.5"},"stage":"Idle"}}
        creationTimestamp: "2024-02-14T19:28:44Z"
        generation: 18
        name: upgrade
        resourceVersion: "43263"
        uid: e80cd38a-285d-45fe-a03b-5ed4f808c215
      spec:
        additionalImages:
          name: ""
          namespace: ""
        autoRollbackOnFailure:
          disabledForPostRebootConfig: true
          disabledForUpgradeCompletion: true
          disabledInitMonitor: true
          initMonitorTimeoutSeconds: -3
        extraManifests:
        - name: extra-manifests-cm0
          namespace: openshift-lifecycle-agent
        - name: extra-manifests-cm1
          namespace: openshift-lifecycle-agent
        oadpContent:
        - name: oadp-cm-backup
          namespace: openshift-adp
        seedImageRef:
          image: quay.io/achuzhoy/ibu-seedimage-sno0:4.15.0-rc.5-oadp
          version: 4.15.0-rc.5
        stage: Idle
      status:
        conditions:
        - lastTransitionTime: "2024-02-14T19:57:06Z"
          message: Idle
          observedGeneration: 18
          reason: Idle
          status: "True"
          type: Idle
        observedGeneration: 18
       

            lochoa@redhat.com Leo Ochoa
            achuzhoy@redhat.com Alexander Chuzhoy
            Alexander Chuzhoy Alexander Chuzhoy
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated: