-
Bug
-
Resolution: Unresolved
-
Normal
-
None
-
4.21.0
-
Quality / Stability / Reliability
-
False
-
-
2
-
Moderate
-
None
-
None
-
None
-
None
-
OAPE Sprint 283, OAPE Sprint 284
-
2
-
None
-
None
-
None
-
None
-
None
-
None
-
None
Description of problem:
SubPath is Used (Not Empty)It looks like it will overwrite the old stuff, which I don't think is perfect the same SubPath is used more than once, it will be overwritten. causing confusion in the collection results
Version-Release number of selected component (if applicable):
How reproducible:
the same SubPath is used more than once, it will be overwritten.
Steps to Reproduce:
1.Create a MG CR with PVC
2.Get the log in pvc and create a new file in it
jitli@jitlideMacBook-Pro:~/work/src/test/must-gather$ oc exec data-reader-pod -c reader-container -- touch /data/must-gather-bundles/case-04230315/keenon.log
jitli@jitlideMacBook-Pro:~/work/src/test/must-gather$ oc exec data-reader-pod -c reader-container -- ls -l /data/must-gather-bundles/case-04230315
total 256
-rw-r--r-- 1 1000790000 1000790000 9818 Jan 16 15:15 aggregated-discovery-api.yaml
-rw-r--r-- 1 1000790000 1000790000 140507 Jan 16 15:15 aggregated-discovery-apis.yaml
drwxr-sr-x 5 1000790000 1000790000 4096 Jan 16 15:15 cluster-scoped-resources
-rw-r--r-- 1 1000790000 1000790000 3336 Jan 16 15:15 event-filter.html
drwxr-sr-x 3 1000790000 1000790000 4096 Jan 16 15:15 host_service_logs
drwxr-sr-x 2 1000790000 1000790000 4096 Jan 16 15:15 ingress_controllers
drwxr-sr-x 2 1000790000 1000790000 4096 Jan 16 15:15 insights-data
-rw-r--r-- 1 root 1000790000 0 Jan 16 15:24 keenon.log
drwxr-sr-x 2 1000790000 1000790000 4096 Jan 16 15:15 machine_config_ondisk
drwxr-sr-x 2 1000790000 1000790000 4096 Jan 16 15:15 machine_config_termination_logs
drwxr-sr-x 4 1000790000 1000790000 4096 Jan 16 15:15 monitoring
-rw-r--r-- 1 1000790000 1000790000 38565 Jan 16 15:21 must-gather.log
drwxr-sr-x 3 1000790000 1000790000 4096 Jan 16 15:15 namespaces
drwxr-sr-x 2 1000790000 1000790000 4096 Jan 16 15:15 network_logs
drwxr-sr-x 2 1000790000 1000790000 4096 Jan 16 15:15 nodes
drwxr-sr-x 2 1000790000 1000790000 4096 Jan 16 15:15 pod_network_connectivity_check
drwxr-sr-x 3 1000790000 1000790000 4096 Jan 16 15:15 static-pods
-rw-r--r-- 1 1000790000 1000790000 110 Jan 16 15:15 timestamp
-rw-r--r-- 1 1000790000 1000790000 82 Jan 16 15:15 version
jitli@jitlideMacBook-Pro:~/work/src/test/must-gather$ oc exec data-reader-pod -c reader-container -- date Fri Jan 16 15:24:42 UTC 2026 jitli@jitlideMacBook-Pro:~/work/src/test/must-gather$ oc delete -f supportloggather-pvc.yaml mustgather.operator.openshift.io "support-log-gather-jitli" deleted jitli@jitlideMacBook-Pro:~/work/src/test/must-gather$ oc create -f supportloggather-pvc.yaml mustgather.operator.openshift.io/support-log-gather-jitli created jitli@jitlideMacBook-Pro:~/work/src/test/must-gather$ oc get pods NAME READY STATUS RESTARTS AGE data-reader-pod 1/1 Running 0 11m must-gather-operator-6b9b84dfb4-rpmtd 1/1 Running 0 59m support-log-gather-jitli-mvnmd 2/2 Running 0 5s
3.get the time jitli@jitlideMacBook-Pro:~/work/src/test/must-gather$ oc exec data-reader-pod -c reader-container -- date Fri Jan 16 15:24:42 UTC 2026
4, re-create a MG CR with same subpath to check the log in pvc get the log ,The system reused an existing path, which also included my own file keenon.log, and uploaded it to SFTP, causing log confusion. jitli@jitlideMacBook-Pro:~/work/src/test/must-gather$ oc exec data-reader-pod -c reader-container -- ls -l /data/must-gather-bundles/case-04230315 total 256 -rw-rw-r-- 1 1000790000 1000790000 9818 Jan 16 15:26 aggregated-discovery-api.yaml -rw-rw-r-- 1 1000790000 1000790000 140507 Jan 16 15:26 aggregated-discovery-apis.yaml drwxrwsr-x 5 1000790000 1000790000 4096 Jan 16 15:15 cluster-scoped-resources -rw-rw-r-- 1 1000790000 1000790000 3336 Jan 16 15:26 event-filter.html drwxrwsr-x 3 1000790000 1000790000 4096 Jan 16 15:15 host_service_logs drwxrwsr-x 2 1000790000 1000790000 4096 Jan 16 15:15 ingress_controllers drwxrwsr-x 2 1000790000 1000790000 4096 Jan 16 15:15 insights-data -rw-rw-r-- 1 root 1000790000 0 Jan 16 15:24 keenon.log drwxrwsr-x 2 1000790000 1000790000 4096 Jan 16 15:15 machine_config_ondisk drwxrwsr-x 2 1000790000 1000790000 4096 Jan 16 15:15 machine_config_termination_logs drwxrwsr-x 4 1000790000 1000790000 4096 Jan 16 15:15 monitoring -rw-rw-r-- 1 1000790000 1000790000 38565 Jan 16 15:31 must-gather.log drwxrwsr-x 3 1000790000 1000790000 4096 Jan 16 15:15 namespaces drwxrwsr-x 2 1000790000 1000790000 4096 Jan 16 15:15 network_logs drwxrwsr-x 2 1000790000 1000790000 4096 Jan 16 15:15 nodes drwxrwsr-x 2 1000790000 1000790000 4096 Jan 16 15:15 pod_network_connectivity_check drwxrwsr-x 3 1000790000 1000790000 4096 Jan 16 15:15 static-pods -rw-rw-r-- 1 1000790000 1000790000 220 Jan 16 15:26 timestamp -rw-rw-r-- 1 1000790000 1000790000 82 Jan 16 15:25 version
jitli@jitlideMacBook-Pro:~/work/src/test/must-gather$ oc logs pod/support-log-gather-jitli-mvnmd -c upload -f 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) Archiving files from /must-gather to /must-gather-upload/must-gather-20260116_153429Z.tar.gz tar: Removing leading `/' from member names Uploading 'must-gather-20260116_153429Z.tar.gz' to Red Hat Customer SFTP Server for case 04230315 Uploading /must-gather-upload/must-gather-20260116_153429Z.tar.gz... Warning: Permanently added 'sftp.access.redhat.com' (RSA) to the list of known hosts. sftp> put /must-gather-upload/must-gather-20260116_153429Z.tar.gz rhn-support-jitli/04230315_must-gather-20260116_153429Z.tar.gz sftp> bye Successfully uploaded 'must-gather-20260116_153429Z.tar.gz' to Red Hat SFTP Server for case 04230315!
5 Download the must-gather-20260116_153429Z.tar.gz tar -zxvf jitli@jitlideMacBook-Pro:~/Downloads/must-gather/must-gather-bundles/case-04230315$ ll total 408 drwxrwxr-x@ 21 jitli staff 672B 1 16 23:24 . drwxrwxr-x@ 4 jitli staff 128B 1 16 23:36 .. -rw-rw-r--@ 1 jitli staff 9.6K 1 16 23:26 aggregated-discovery-api.yaml -rw-rw-r--@ 1 jitli staff 137K 1 16 23:26 aggregated-discovery-apis.yaml drwxrwxr-x@ 5 jitli staff 160B 1 16 23:15 cluster-scoped-resources -rw-rw-r--@ 1 jitli staff 3.3K 1 16 23:26 event-filter.html drwxrwxr-x@ 3 jitli staff 96B 1 16 23:15 host_service_logs drwxrwxr-x@ 2 jitli staff 64B 1 16 23:15 ingress_controllers drwxrwxr-x@ 2 jitli staff 64B 1 16 23:15 insights-data -rw-rw-r--@ 1 jitli staff 0B 1 16 23:24 keenon.log // include file I created drwxrwxr-x@ 2 jitli staff 64B 1 16 23:15 machine_config_ondisk drwxrwxr-x@ 2 jitli staff 64B 1 16 23:15 machine_config_termination_logs drwxrwxr-x@ 4 jitli staff 128B 1 16 23:15 monitoring -rw-rw-r--@ 1 jitli staff 38K 1 16 23:31 must-gather.log drwxrwxr-x@ 3 jitli staff 96B 1 16 23:15 namespaces drwxrwxr-x@ 7 jitli staff 224B 1 16 23:15 network_logs drwxrwxr-x@ 3 jitli staff 96B 1 16 23:15 nodes drwxrwxr-x@ 3 jitli staff 96B 1 16 23:15 pod_network_connectivity_check drwxrwxr-x@ 3 jitli staff 96B 1 16 23:15 static-pods -rw-rw-r--@ 1 jitli staff 220B 1 16 23:26 timestamp -rw-rw-r--@ 1 jitli staff 82B 1 16 23:25 version
Actual results:
jitli@RedHat:~/work/src/test/must-gather$ oc exec data-reader-pod -c reader-container -- ls -l /data/must-gather-bundles/case-04230315 total 828 -rw-r--r-- 1 root root 9644 Oct 28 16:48 aggregated-discovery-api.yaml -rw-r--r-- 1 root root 142625 Oct 28 16:48 aggregated-discovery-apis.yaml drwxr-xr-x 21 root root 4096 Oct 28 16:38 cluster-scoped-resources drwxr-xr-x 2 root root 4096 Oct 28 16:36 etcd_info -rw-r--r-- 1 root root 581826 Oct 28 16:49 event-filter.html drwxr-xr-x 3 root root 4096 Oct 28 16:36 host_service_logs drwxr-xr-x 3 root root 4096 Oct 28 16:36 ingress_controllers drwxr-xr-x 2 root root 4096 Oct 28 16:36 insights-data drwxr-xr-x 3 root root 4096 Oct 28 16:36 istio drwxr-xr-x 2 root root 4096 Oct 28 16:36 machine_config_ondisk drwxr-xr-x 2 root root 4096 Oct 28 16:36 machine_config_termination_logs drwxr-xr-x 4 root root 4096 Oct 28 16:37 monitoring -rw-r--r-- 1 root root 32524 Oct 28 16:53 must-gather.log drwxr-xr-x 80 root root 4096 Oct 28 16:36 namespaces drwxr-xr-x 2 root root 4096 Oct 28 16:48 network_logs drwxr-xr-x 2 root root 4096 Oct 28 16:37 nodes drwxr-xr-x 2 root root 4096 Oct 28 16:36 pod_network_connectivity_check drwxr-xr-x 3 root root 4096 Oct 28 16:36 static-pods -rw-r--r-- 1 root root 5495 Oct 28 16:49 timestamp -rw-r--r-- 1 root root 36 Oct 28 16:47 version jitli@RedHat:~/work/src/test/must-gather$ oc exec data-reader-pod -c reader-container -- date Tue Oct 28 16:53:42 UTC 2025
Expected results:
Create a unique path to ensure that it is a completely new path and not a duplicate.
Additional info: