Bug 1509661

Summary: show namespace in oc adm manage-node --list-pods
Product: OpenShift Container Platform Reporter: Eric Paris <eparis>
Component: ocAssignee: Juan Vallejo <jvallejo>
Status: CLOSED ERRATA QA Contact: Xingxing Xia <xxia>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 3.7.0CC: aos-bugs, jokerman, jvallejo, mmccomas, xiaocwan
Target Milestone: ---   
Target Release: 3.8.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2018-03-28 14:09:47 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:

Description Eric Paris 2017-11-05 13:49:08 UTC
The default columns displayed for
oc adm manage-node --list-pods

Should be the same as the default columns for something like
oc get pod --all-namespaces

Today you get a list of pod names but when looking at a node what namespace those pods are in is unknown. Yes, this can be managed using a template, or custom columns, or any other sort of additional human intervention, but normally if I am trying to figure out what pods are on a node its because I probably want to dig deeper into one of those pods. And doing that requires the namespace.

Comment 1 Juan Vallejo 2017-11-08 22:51:25 UTC
Origin PR: https://github.com/openshift/origin/pull/17241

Comment 2 Xingxing Xia 2017-11-15 08:50:54 UTC
Checked in latest version v3.7.8, it does not include the PR per https://url.corp.redhat.com/3a0e336 (Red Hat internal)
Saw Target Release is 3.8.0, will the PR go to v3.7? If no, can you move bug to MODIFIED? Then it will be tested when v3.8 is available

Comment 4 XiaochuanWang 2018-01-03 07:58:15 UTC
Verified on oc v3.9.0-0.9.0 (kubernetes v1.8.1+0d5291c) as below:

# oc adm manage-node --list-pods x.x.x.x

Listing matched pods on node: x.x.x.x

NAMESPACE                           NAME                              READY     STATUS      RESTARTS   AGE
default                             docker-registry-1-rdk2r           1/1       Running     0          7d
...

Default columns are same as below
# oc get pod --all-namespaces
NAMESPACE                           NAME                              READY     STATUS      RESTARTS   AGE
default                             docker-registry-1-rdk2r           1/1       Running     0          7d
...

Comment 7 errata-xmlrpc 2018-03-28 14:09:47 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-2018:0489