Bug 1407186 - Some resources defined in List couldn't be created through Import YAML/JSON
Summary: Some resources defined in List couldn't be created through Import YAML/JSON
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: OpenShift Container Platform
Classification: Red Hat
Component: Management Console
Version: 3.4.0
Hardware: Unspecified
OS: Unspecified
medium
low
Target Milestone: ---
: ---
Assignee: Jakub Hadvig
QA Contact: Yadan Pei
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2016-12-22 06:07 UTC by Yadan Pei
Modified: 2017-08-31 17:00 UTC (History)
5 users (show)

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
Clone Of:
Environment:
Last Closed: 2017-08-31 17:00:23 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2017:1828 0 normal SHIPPED_LIVE OpenShift Container Platform 3.5, 3.4, and 3.3 bug fix update 2017-08-31 20:59:56 UTC

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


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