Bug 1267559

Summary: oc export imagestream always fails(Upstream issue - https://github.com/openshift/origin/issues/3924)
Product: OpenShift Container Platform Reporter: Miheer Salunke <misalunk>
Component: ocAssignee: Michail Kargakis <mkargaki>
Status: CLOSED CURRENTRELEASE QA Contact: Wei Sun <wsun>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 3.0.0CC: aos-bugs, dmcphers, jokerman, mmccomas, xxia
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2015-11-23 14:26:24 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 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.