Bug 1311049 - [AEP]Not able to list any existing resources by running "oc get all" after logging on AEP
Summary: [AEP]Not able to list any existing resources by running "oc get all" after lo...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: OpenShift Container Platform
Classification: Red Hat
Component: oc
Version: 3.2.0
Hardware: Unspecified
OS: Unspecified
medium
medium
Target Milestone: ---
: ---
Assignee: David Eads
QA Contact: Wei Sun
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2016-02-23 09:23 UTC by Xia Zhao
Modified: 2016-05-12 16:30 UTC (History)
5 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2016-05-12 16:30:19 UTC
Target Upstream Version:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHSA-2016:1064 0 normal SHIPPED_LIVE Important: Red Hat OpenShift Enterprise 3.2 security, bug fix, and enhancement update 2016-05-12 20:19:17 UTC

Description Xia Zhao 2016-02-23 09:23:53 UTC
Problem description: 
Not able to list any existing resources by running "oc get all" after logging on AEP, can only get these lines without any other thing:
$oc get all
Unable to list "buildconfigs": the server could not find the requested resource
Unable to list "builds": the server could not find the requested resource

Version-Release number of selected component (if applicable):
oc v3.1.1.905
kubernetes v1.2.0-alpha.7-703-gbc4550d

How reproducible:
Always

Steps to Reproduce:
1.Login to AEP
2.Create a new project with sufficient resources in it:
$oc get svc
NAME             CLUSTER_IP      EXTERNAL_IP   PORT(S)    SELECTOR                                             AGE
java-mainclass   x.x.x.x   <none>        8778/TCP   app=java-mainclass,deploymentconfig=java-mainclass   4m
$ oc get po
NAME                     READY     STATUS    RESTARTS   AGE
java-mainclass-1-u62c4   1/1       Running   0          5m
java-mainclass-1-y7igr   1/1       Running   0          6m
3.$oc get all

Actual Result:
Not able to list any existing resources by running "oc get all" after logging on AEP, can only get these lines without any other thing:
$oc get all
Unable to list "buildconfigs": the server could not find the requested resource
Unable to list "builds": the server could not find the requested resource

Expected Result:
Should be able to list all the existing resources by running "oc get all" after logging on AEP

Additional info:
Issue did not exist after connected the same oc client with OSE

Comment 1 Fabiano Franz 2016-02-24 17:40:13 UTC
The 'get' command is supposed to fetch with ContinueOnError, but maybe the "all" alias is being considered just one resource. Looking into it.

Comment 2 David Eads 2016-03-04 13:33:16 UTC
See https://github.com/openshift/origin/pull/7661.  We've update the determination of what `all` means to correctly choose the list of resources.

Comment 3 David Eads 2016-03-07 12:41:46 UTC
Merged into origin.

Comment 4 Xia Zhao 2016-03-08 02:49:39 UTC
Verified with devenv-rhel7_3640, it's fixed. Will continue verify this after bug fix merged in AP.

Comment 5 Troy Dawson 2016-03-09 20:36:39 UTC
Should be in v3.2.0.1 built today.

Comment 6 Xia Zhao 2016-03-10 09:13:14 UTC
It's fixed with latest AEP puddle 2016-03-09.2, together with oc version:
oc v3.2.0.1
kubernetes v1.2.0-alpha.7-703-gbc4550d

Comment 8 errata-xmlrpc 2016-05-12 16:30:19 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/RHSA-2016:1064


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