Bug 1496755 - Cannot run oc export for resource related to service catalog
Summary: Cannot run oc export for resource related to service catalog
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: OKD
Classification: Red Hat
Component: oc
Version: 3.x
Hardware: Unspecified
OS: Unspecified
medium
medium
Target Milestone: ---
: ---
Assignee: Juan Vallejo
QA Contact: Xingxing Xia
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2017-09-28 09:52 UTC by Xingxing Xia
Modified: 2017-11-10 21:34 UTC (History)
5 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2017-11-10 21:34:53 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description Xingxing Xia 2017-09-28 09:52:46 UTC
Description of problem:
Cannot run oc export for resource related to service catalog, like serviceclass, serviceinstance

Version-Release number of selected component (if applicable):
v3.7.0-alpha.1+455ae1f-742

How reproducible:
Always

Steps to Reproduce:
1. $ oc export serviceclass mysql-persistent
the provided version "servicecatalog.k8s.io/v1alpha1" has no relevant versions: group servicecatalog.k8s.io has not been registered
no matches for servicecatalog.k8s.io/, Kind=ServiceClass

2. $ oc export serviceinstance mysql-persistent-1ww0q
the provided version "servicecatalog.k8s.io/v1alpha1" has no relevant versions: group servicecatalog.k8s.io has not been registered
no matches for servicecatalog.k8s.io/, Kind=ServiceInstance

Actual results:
Steps 1~2: fail to run oc export

Expected results:
Should succeed

Additional info:

Comment 2 Samuel Padgett 2017-09-28 12:29:56 UTC
Juan, can you take a look?

Comment 3 Juan Vallejo 2017-10-03 20:04:00 UTC
PR: https://github.com/openshift/origin/pull/16665

Comment 4 Xingxing Xia 2017-10-27 09:15:58 UTC
Verified in v3.7.0-0.182.0. oc export works well

$ oc get clusterserviceclass a85d9c7e-bad4-11e7-ad20-fa163e25cbb7 -o yaml > csc_get.yaml
$ oc export clusterserviceclass a85d9c7e-bad4-11e7-ad20-fa163e25cbb7 -o yaml > csc_export.yaml 
$ diff csc_get.yaml csc_export.yaml 
$ diff csc_get.yaml csc_export.yaml 
4c4,5
<   creationTimestamp: 2017-10-27T05:07:31Z
---
>   creationTimestamp: null
>   deletionTimestamp: null
...

$ oc get serviceinstance mongodb-persistent-24424 -n prozyp -o yaml > si_get.yaml
$ oc export serviceinstance mongodb-persistent-24424 -n prozyp > si_export.yaml
$ diff si_get.yaml si_export.yaml
4c4,5
<   creationTimestamp: 2017-10-27T07:44:26Z
---
>   creationTimestamp: null
>   deletionTimestamp: null
...


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