Bug 1267559 - oc export imagestream always fails(Upstream issue - https://github.com/openshift/origin/issues/3924)
Summary: oc export imagestream always fails(Upstream issue - https://github.com/opensh...
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: OpenShift Container Platform
Classification: Red Hat
Component: oc
Version: 3.0.0
Hardware: Unspecified
OS: Unspecified
unspecified
medium
Target Milestone: ---
: ---
Assignee: Michail Kargakis
QA Contact: Wei Sun
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2015-09-30 12:08 UTC by Miheer Salunke
Modified: 2019-08-15 05:33 UTC (History)
5 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2015-11-23 14:26:24 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Origin (Github) 3924 0 None None None Never

Description Miheer Salunke 2015-09-30 12:08:17 UTC
Description of problem:

Upstream issue - https://github.com/openshift/origin/issues/3924

When creating a template from existing project using this command:

oc export dc,is,se,route --all -o yaml --as-template=hello-php > test-hello-php.yaml

We get panic: assignment to entry in nil map. The export imagestream part fails.

$ oc export is --all -o yaml
panic: assignment to entry in nil map

Version-Release number of selected component (if applicable):
3.0

How reproducible:
Always

Steps to Reproduce:
1.$ oc export svc,ImageStreams,dc --all -o json

2.
3.

Actual results:

It gives an error while exporting resources

Expected results:
It shall do export of resources properly

Additional info:

Comment 2 Michail Kargakis 2015-10-15 18:10:17 UTC
This has been solved as of 1.0.4 in Origin (v3.0.1.900 in OSE)

Comment 3 Xingxing Xia 2015-10-16 02:34:19 UTC
Verified against version:
oc v3.0.2.0-17-g701346b
kubernetes v1.1.0-alpha.0-1605-g44c91b1

The issue is fixed.

Comment 4 Brenton Leanhardt 2015-11-23 14:26:24 UTC
This fix is available in OpenShift Enterprise 3.1.


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