Bug 1407186

Summary: Some resources defined in List couldn't be created through Import YAML/JSON
Product: OpenShift Container Platform Reporter: Yadan Pei <yapei>
Component: Management ConsoleAssignee: Jakub Hadvig <jhadvig>
Status: CLOSED ERRATA QA Contact: Yadan Pei <yapei>
Severity: low Docs Contact:
Priority: medium    
Version: 3.4.0CC: aos-bugs, jforrest, jokerman, mmccomas, xiaocwan
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Cause: Wrong JSON fields validation for List element on the "From File" page. Consequence: Could not create List since its missing matedata field. Fix: Validation will now check if element that is being created is a List and skip metadata validation if so. Result: List can be created on "From File" page
Story Points: ---
Clone Of: Environment:
Last Closed: 2017-08-31 17:00:23 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 Yadan Pei 2016-12-22 06:07:53 UTC
Description of problem:
Some resources defined in List without metadata: {} parameter couldn't be created through Import YAML/JSON

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

How reproducible:
Always

Steps to Reproduce:
1.Create a project -> Add to Project -> Import YAML/JSON
2.Copy & Paste content of https://raw.githubusercontent.com/openshift-qe/v3-testfiles/master/image-streams/image-source.yaml
3.Hit on Create button
4.Copy & Paste content of https://raw.githubusercontent.com/mdshuai/testfile-openshift/master/k8s/rc-and-svc-list.yaml 
5.Hit on Create button

Actual results:
3.Resources defined in image-source.yaml could be created successfully
5.rc-and-svc-list.yaml  lacks of metadata: {} parameter, so it can't be created and give error:
Failed to process the resource.
Resource is missing metadata field.

Expected results:
5.Resource defined in rc-and-svc-list.yaml should be created successfully

Additional info:
Resources in both files could be created successfully via CLI

Comment 1 Jessica Forrester 2017-07-07 12:47:15 UTC
This was actually fixed in 3.5.0 as part of https://github.com/openshift/origin-web-console/pull/1043

Comment 3 XiaochuanWang 2017-07-11 05:28:44 UTC
Resources in both files could be created successfully by web console.
Verified on:
OpenShift Master:      v3.5.5.31
Kubernetes Master:     v1.5.2+43a9be4

Comment 5 errata-xmlrpc 2017-08-31 17:00:23 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/RHBA-2017:1828