Bug 1403378 - Undeterministic output given by 'oc describe X'
Summary: Undeterministic output given by 'oc describe X'
Keywords:
Status: CLOSED WONTFIX
Alias: None
Product: OpenShift Container Platform
Classification: Red Hat
Component: oc
Version: 3.3.1
Hardware: Unspecified
OS: Unspecified
low
low
Target Milestone: ---
: ---
Assignee: Fabiano Franz
QA Contact: Xingxing Xia
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2016-12-09 21:01 UTC by Will Gordon
Modified: 2017-11-10 17:00 UTC (History)
6 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2017-11-10 17:00:12 UTC
Target Upstream Version:


Attachments (Terms of Use)

Description Will Gordon 2016-12-09 21:01:02 UTC
Description of problem:
When using the command 'oc describe X', the output given is not shown in the same order every time, which could cause confusion for users expecting to see items in the same place for every output

Version-Release number of selected component (if applicable):
oc v3.3.1.3

How reproducible:
Every time

Steps to Reproduce:
1. oc describe sa default
2. oc describe sa default


Actual results:
Name:		default
Namespace:	wgordon
Labels:		<none>

Image pull secrets:	default-dockercfg-llqsl
                   	my-pull-secret

Mountable secrets: 	default-token-xe2u5
                   	default-dockercfg-llqsl

Tokens:            	default-token-i0dd6
                   	default-token-xe2u5
****
Name:		default
Namespace:	wgordon
Labels:		<none>

Mountable secrets: 	default-token-xe2u5
                   	default-dockercfg-llqsl

Tokens:            	default-token-i0dd6
                   	default-token-xe2u5

Image pull secrets:	default-dockercfg-llqsl
                   	my-pull-secret


Expected results:
Name:		default
Namespace:	wgordon
Labels:		<none>

Image pull secrets:	default-dockercfg-llqsl
                   	my-pull-secret

Mountable secrets: 	default-token-xe2u5
                   	default-dockercfg-llqsl

Tokens:            	default-token-i0dd6
                   	default-token-xe2u5
****
Name:		default
Namespace:	wgordon
Labels:		<none>

Image pull secrets:	default-dockercfg-llqsl
                   	my-pull-secret

Mountable secrets: 	default-token-xe2u5
                   	default-dockercfg-llqsl

Tokens:            	default-token-i0dd6
                   	default-token-xe2u5


Additional info:

Comment 1 Steve Kuznetsov 2016-12-09 21:21:30 UTC
`oc describe` is meant to be a human-readable output and is not meant to be consumed by machines, etc. I don't think it is in the domain space for `oc describe` to have deterministic sorting/ordering in the output.

Comment 2 Will Gordon 2016-12-09 21:26:36 UTC
I would agree that it's intended to be human readable, but it's very likely that a user would not read the labels, and assume something was lost. I also noticed this to be the case for `oc describe limits`...and likely other outputs. So perhaps not a bug, per se, but I think it's jarring for the user when trying to compare outputs from `oc describe`


Note You need to log in before you can comment on or make changes to this bug.