Bug 1810987

Summary: `oc adm inspect namespace` doesn't collect pod logs
Product: OpenShift Container Platform Reporter: Ashish Ranjan <aranjan>
Component: ocAssignee: Maciej Szulik <maszulik>
Status: CLOSED ERRATA QA Contact: zhou ying <yinzhou>
Severity: medium Docs Contact:
Priority: medium    
Version: 4.4CC: aos-bugs, jokerman, mfojtik
Target Milestone: ---   
Target Release: 4.4.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: No Doc Update
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2020-05-04 11:45:02 UTC Type: Bug
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: 1810986    
Bug Blocks: 1810959    

Description Ashish Ranjan 2020-03-06 10:59:12 UTC
Description of problem:
The `oc adm inspect namespace` doesn't collect logs of all pods running presently in the namespace. 

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

How reproducible:
Run `oc adm inspect ns/<ns-name>` for a namespace having more the 10 pods and verify the logs.


Actual results:
The logs are missing for some of the pods present in the namespace.

Expected results:
The logs must be present for the pods present in the namespace.


Additional info:

Comment 3 zhou ying 2020-03-09 06:35:08 UTC
The issue has fixed:

[zhouying@dhcp-140-138 logs]$                   oc version -o yaml 
clientVersion:
  buildDate: "2020-03-05T14:37:15Z"
  compiler: gc
  gitCommit: 2576e482bf003e34e67ba3d69edcf5d411cfd6f3
  gitTreeState: clean
  gitVersion: 4.4.0-202003051431-2576e48
  goVersion: go1.13.4
  major: ""
  minor: ""
  platform: linux/amd64
[zhouying@dhcp-140-138 ~]$ oc adm inspect namespace/zhouy
Gathering data for ns/zhouy...
Wrote inspect data to inspect.local.880042931334620758.

[zhouying@dhcp-140-138 ~]$ tree inspect.local.880042931334620758/
inspect.local.880042931334620758/
└── namespaces
    └── zhouy
...
        ├── pods
        │   ├── jenkins-1-deploy
        │   │   ├── deployment
        │   │   │   └── deployment
        │   │   │       └── logs
        │   │   │           ├── current.log
        │   │   │           ├── previous.insecure.log
        │   │   │           └── previous.log
        │   │   └── jenkins-1-deploy.yaml
        │   ├── jenkins-2-d7szj
        │   │   ├── jenkins
        │   │   │   └── jenkins
        │   │   │       └── logs
        │   │   │           ├── current.log
        │   │   │           ├── previous.insecure.log
        │   │   │           └── previous.log
        │   │   └── jenkins-2-d7szj.yaml
        │   └── jenkins-2-deploy
        │       ├── deployment
        │       │   └── deployment
        │       │       └── logs
        │       │           ├── current.log
        │       │           ├── previous.insecure.log
        │       │           └── previous.log
        │       └── jenkins-2-deploy.yaml
        ├── route.openshift.io
        │   └── routes.yaml
        └── zhouy.yaml

23 directories, 33 files

Comment 5 errata-xmlrpc 2020-05-04 11:45:02 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:0581