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

Print err when serviceAccountName Pointing to a no-exist SA

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Normal Normal
    • 4.21
    • 4.20.z
    • must-gather
    • None
    • None
    • False
    • Hide

      None

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

      Description of problem:

          Hi team, When serviceAccountName Pointing to a non-existent SA, Stuck and unable to create pod
      
      serviceAccountName: fake-must-gather-operator
      
      operator pod no err log; mustgather no err log
      
      Misspelled words will increase the difficulty of troubleshooting.
      
      I hope print the err message in status (SA ******* not found in namespace ***)

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

          

      How reproducible:

      Create MustGather with fake SA
      serviceAccountName: fake-must-gather-operator

      Steps to Reproduce:

          1.
          2.
          3.
          

      Actual results:

          jitli@jitlideMacBook-Pro:~/work/src/test/must-gather$ oc get mustgather support-log-gather-jitli -o yaml
      apiVersion: operator.openshift.io/v1alpha1
      kind: MustGather
      metadata:
        creationTimestamp: "2026-01-13T07:58:03Z"
        finalizers:
        - finalizer.mustgathers.operator.openshift.io
        generation: 1
        name: support-log-gather-jitli
        namespace: must-gather-operator
        resourceVersion: "108536"
        uid: 6a30dab7-7a2a-4bed-9c95-58af7d80e960
      spec:
        audit: false
        retainResourcesOnCompletion: false
        serviceAccountName: fake-must-gather-operator
        uploadTarget:
          sftp:
            caseID: "04230315"
            caseManagementAccountSecretRef:
              name: mustgather-creds
            host: sftp.access.redhat.com
            internalUser: true
          type: SFTP
      status:
        completed: false
        conditions:
        - lastTransitionTime: "2026-01-13T07:58:03Z"
          message: ""
          observedGeneration: 1
          reason: LastReconcileCycleSucceded
          status: "True"
          type: ReconcileSuccess
      
      
      
      Stuck and unable to create pod

       

      Expected results:

          I hope print the err message in status (SA ******* not found in namespace ***)

      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: