Bug 1856317

Summary: must-gather creates empty files occasionally
Product: OpenShift Container Platform Reporter: Artyom <alukiano>
Component: Performance Addon OperatorAssignee: Martin Sivák <msivak>
Status: CLOSED ERRATA QA Contact: Gowrishankar Rajaiyan <grajaiya>
Severity: high Docs Contact:
Priority: unspecified    
Version: 4.5CC: alukiano, aos-bugs, dshchedr, fromani, grajaiya
Target Milestone: ---   
Target Release: 4.5.z   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: performance-addon-operator-must-gather-rhel8-container-v4.5.0-14 Doc Type: No Doc Update
Doc Text:
This is the first release, the bug was found internally.
Story Points: ---
Clone Of: 1852619 Environment:
Last Closed: 2020-07-30 18:56:59 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On: 1852619    
Bug Blocks:    

Description Artyom 2020-07-13 11:54:18 UTC
+++ This bug was initially created as a clone of Bug #1852619 +++

Description of problem:
 Sometimes (rarely) must-gather creates empty files:

[root@dell-r640-004 ~]# ls -la nodes/worker-0/lscpu
-rw-r--r--. 1 root root 0 Jun 30 14:29 nodes/worker-0/lscpu


Version-Release number of selected component (if applicable):
# oc version
Client Version: 4.4.10
Server Version: 4.4.10

must-gather image:
        "url": "https://access.redhat.com/containers/#/registry.access.redhat.com/openshift4/performance-addon-operator-must-gather-rhel8/images/v4.4.0-6"

--- Additional comment from Francesco Romani on 2020-07-01 09:34:06 UTC ---

(In reply to Denys Shchedrivyi from comment #0)
> Description of problem:
>  Sometimes (rarely) must-gather creates empty files:
> 
> [root@dell-r640-004 ~]# ls -la nodes/worker-0/lscpu
> -rw-r--r--. 1 root root 0 Jun 30 14:29 nodes/worker-0/lscpu
> 
> 
> Version-Release number of selected component (if applicable):
> # oc version
> Client Version: 4.4.10
> Server Version: 4.4.10
> 
> must-gather image:
>         "url":
> "https://access.redhat.com/containers/#/registry.access.redhat.com/
> openshift4/performance-addon-operator-must-gather-rhel8/images/v4.4.0-6"

How often does this happen? Say 1 in 10 times, 1 in 5, 1 in 20?

--- Additional comment from Denys Shchedrivyi on 2020-07-02 13:52:50 UTC ---

hm, I can't reproduce issue with empty files, but I see another behavior: on every 3-4 runs it does not collect lscpu, lspci and proc_cmdline files for some of worker nodes:

# ls -la nodes/worker-0
total 96876
drwxr-xr-x.  2 root root       81 Jul  2 09:48 .
drwxr-xr-x. 10 root root      159 Jul  2 09:48 ..
-rw-r--r--.  1 root root      198 Jul  2 09:47 lscpu
-rw-r--r--.  1 root root    36451 Jul  2 09:47 lspci
-rw-r--r--.  1 root root      347 Jul  2 09:47 proc_cmdline
-rw-r--r--.  1 root root 99155968 Jul  2 09:48 worker-0_logs_kubelet

# ls -la nodes/worker-1
total 110368
drwxr-xr-x.  2 root root        35 Jul  2 09:48 .
drwxr-xr-x. 10 root root       159 Jul  2 09:48 ..
-rw-r--r--.  1 root root 113016832 Jul  2 09:48 worker-1_logs_kubelet

Comment 1 Denys Shchedrivyi 2020-07-24 18:13:00 UTC
Verified on 4.5.3 with build: performance-addon-operator-must-gather-rhel8-container-v4.5.0-14

Comment 4 errata-xmlrpc 2020-07-30 18:56:59 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHBA-2020:3028