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

The gather job restart loop when username/password field is missing in the Secret

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Normal Normal
    • None
    • 4.21.0
    • must-gather
    • None
    • False
    • Hide

      None

      Show
      None
    • None
    • Moderate
    • None
    • None
    • None
    • None
    • None
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      Description of problem:

          If the password field is missing in the Secret, the pod will restart repeatedly.
      mustgather-83956-figl-b5v2s            0/2     Completed   0          10m
      mustgather-83956-figl-hl4rh            0/2     Completed   0          18m
      mustgather-83956-figl-rq7m8            2/2     Running     0          81s
      jitli@jitlideMacBook-Pro:~/work/src/test/must-gather$ oc logs -f pod/mustgather-83956-figl-hl4rh -c upload
      waiting for gathers to complete ...
      waiting for gathers to complete ...
      waiting for gathers to complete ...
      no gather is running (0 / 4)
      no gather is running (1 / 4)
      no gather is running (2 / 4)
      no gather is running (3 / 4)
      no gather is running (4 / 4)
      Error: Required Parameters have not been provided. Exiting...
      build/bin/upload:63-67
      if [ -z "${caseid}" ] || [ -z "${username}" ] || [ -z "${password}" ];
      then
      echo "Error: Required Parameters have not been provided. Exiting..."
      exit 1
      fi
      The script checks three variables: caseid, username, and password. If any one of them is empty, it will exit and trigger a restart loop.

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

          

      How reproducible:

          Create a MustGather CR with a no-password Secret 

      Steps to Reproduce:

          1.
          2.
          3.
          

      Actual results:

      mustgather-83956-figl-b5v2s 0/2 Completed 0 10m 
      mustgather-83956-figl-hl4rh 0/2 Completed 0 18m 
      mustgather-83956-figl-rq7m8 2/2 Running 0 81s

      Expected results:

          

      Additional info:

          

              tgeer@redhat.com Trilok Geer
              rhn-support-jitli Keenon Lee
              None
              None
              Keenon Lee Keenon Lee
              None
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated: