Description of problem:
MustGather silently fails when the caseManagementAccountSecretRef field points to a Secret that doesn’t exist in the cluster. When the Secret cannot be found, it will be stuck
There is no error logging in MustGather.Error logs can only be found in the Operator log.2025-10-16T07:52:33Z INFO mustgather-controller Error getting secret (case-management-creds)!
Version-Release number of selected component (if applicable):
4.21 4.20
How reproducible:
Steps to Reproduce:
1. Create a CR with a fake secret
jitli@RedHat:~/work/src/test/must-gather$ oc get csv
NAME DISPLAY VERSION REPLACES PHASE
support-log-gather-operator.v4.20.0 support log gather 4.20.0 Succeeded
jitli@RedHat:~/work/src/test/must-gather$ cat supportloggather-uploadTarget.yaml apiVersion: operator.openshift.io/v1alpha1 kind: MustGather metadata: name: support-log-gather-jitli namespace: must-gather-operator spec: serviceAccountRef: name: must-gather-operator uploadTarget: type: SFTP sftp: caseID: "04230315" caseManagementAccountSecretRef: name: mustgather-creds
jitli@RedHat:~/work/src/test/must-gather$ oc get secret NAME TYPE DATA AGE builder-dockercfg-hvsws kubernetes.io/dockercfg 1 71m default-dockercfg-m6clc kubernetes.io/dockercfg 1 71m deployer-dockercfg-4h5zs kubernetes.io/dockercfg 1 71m must-gather-operator-catalog-dockercfg-4bplv kubernetes.io/dockercfg 1 69m must-gather-operator-dockercfg-nqnc6 kubernetes.io/dockercfg 1 48m
jitli@RedHat:~/work/src/test/must-gather$ oc create -f supportloggather-uploadTarget.yaml mustgather.operator.openshift.io/support-log-gather-jitli created
2. Nothing happens, no pod is created, no error message, just stuck
jitli@RedHat:~/work/src/test/must-gather$ oc get mustgather support-log-gather-jitli -o yaml
apiVersion: operator.openshift.io/v1alpha1
kind: MustGather
metadata:
creationTimestamp: "2025-10-28T06:10:28Z"
finalizers:
- finalizer.mustgathers.operator.openshift.io
generation: 2
name: support-log-gather-jitli
namespace: must-gather-operator
resourceVersion: "115716"
uid: 1a96101c-7a1b-4607-b41e-b40b56d4c355
spec:
audit: false
mustGatherTimeout: 0s
proxyConfig:
httpProxy: ""
httpsProxy: ""
retainResourcesOnCompletion: false
serviceAccountRef:
name: must-gather-operator
uploadTarget:
sftp:
caseID: "04230315"
caseManagementAccountSecretRef:
name: mustgather-creds
host: sftp.access.redhat.com
internalUser: true
type: SFTP
3. Get err logs from pod
jitli@RedHat:~/work/src/test/must-gather$ oc logs must-gather-operator-74c94859b9-wrsns
2025-10-28T06:10:29Z ERROR mustgather-controller the secret mustgather-creds was not found in namespace must-gather-operator {"error": "Secret \"mustgather-creds\" not found"}
Actual results:
Nothing happens, no pod is created, no error message, just stuck
Expected results:
When the Secret specified in the MustGather CR does not exist, I expect an error message to be returned directly.
Additional info:
- blocks
-
OCPBUGS-64572 MustGather CR stuck when the caseManagementAccountSecretRef field points to a Secret that doesn’t exist
-
- Closed
-
- is cloned by
-
OCPBUGS-64572 MustGather CR stuck when the caseManagementAccountSecretRef field points to a Secret that doesn’t exist
-
- Closed
-
- links to