Bug 1866087 - Examining agones helm chart resources results in "Oh no!"
Summary: Examining agones helm chart resources results in "Oh no!"
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: OpenShift Container Platform
Classification: Red Hat
Component: Dev Console
Version: 4.6
Hardware: Unspecified
OS: Unspecified
unspecified
high
Target Milestone: ---
: 4.7.0
Assignee: Rohit Rai
QA Contact: Gajanan More
URL:
Whiteboard:
Depends On:
Blocks: 1893738
TreeView+ depends on / blocked
 
Reported: 2020-08-04 19:52 UTC by Samuel Padgett
Modified: 2021-02-24 15:14 UTC (History)
5 users (show)

Fixed In Version:
Doc Type: No Doc Update
Doc Text:
Clone Of:
Environment:
Last Closed: 2021-02-24 15:14:01 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Github openshift console pull 7066 0 None closed Bug 1866087: Fix crash when helm manifest yaml contains duplicate keys 2021-02-18 13:35:59 UTC
Red Hat Product Errata RHSA-2020:5633 0 None None None 2021-02-24 15:14:42 UTC

Description Samuel Padgett 2020-08-04 19:52:41 UTC
Transitioned from JIRA issue: https://issues.redhat.com/browse/CONSOLE-2342


Install Agones via helm:
https://agones.dev/site/docs/installation/install-agones/helm/

Visit the namespace and try to view the chart's resource.

YAMLException
Description:
duplicated mapping key at line 1528, column -123: annotations: ^

 

Component trace:
in Unknown
{{ in t}}
{{ in t}}
{{ in div}}
{{ in Data}}
{{ in StatusBox}}
{{ in div}}
{{ in Unknown}}
{{ in Unknown}}
{{ in Unknown}}
{{ in Unknown}}
{{ in w}}
{{ in O}}
{{ in w}}
{{ in Unknown}}
{{ in s}}
{{ in DetailsPage}}
{{ in k}}
{{ in Unknown}}
{{ in Unknown}}
{{ in Unknown}}
{{ in w}}
{{ in O}}
{{ in w}}
{{ in div}}
{{ in div}}
{{ in Unknown}}
{{ in Unknown}}
{{ in c}}
{{ in t}}
{{ in R}}
{{ in t}}
{{ in div}}
{{ in div}}
{{ in section}}
{{ in d}}
{{ in Unknown}}
{{ in w}}
{{ in w}}
{{ in div}}
{{ in div}}
{{ in f}}
{{ in p}}
{{ in div}}
{{ in p}}
{{ in NotificationDrawer}}
{{ in Unknown}}
{{ in w}}
{{ in main}}
{{ in div}}
{{ in b}}
{{ in component}}
{{ in t}}
{{ in t}}
{{ in t}}
{{ in t}}

Stack trace:

YAMLException: duplicated mapping key at line 1528, column -123:
{{ annotations:}}
{{ ^}}
{{ at M (https://console-openshift-console.apps.cluster-65b4.65b4.example.opentlc.com/static/vendors~main-chunk-5d16dae3ac38abab85aa.min.js:160:113519)}}
{{ at I (https://console-openshift-console.apps.cluster-65b4.65b4.example.opentlc.com/static/vendors~main-chunk-5d16dae3ac38abab85aa.min.js:160:113617)}}
{{ at z (https://console-openshift-console.apps.cluster-65b4.65b4.example.opentlc.com/static/vendors~main-chunk-5d16dae3ac38abab85aa.min.js:160:115515)}}
{{ at https://console-openshift-console.apps.cluster-65b4.65b4.example.opentlc.com/static/vendors~main-chunk-5d16dae3ac38abab85aa.min.js:160:119988}}
{{ at K (https://console-openshift-console.apps.cluster-65b4.65b4.example.opentlc.com/static/vendors~main-chunk-5d16dae3ac38abab85aa.min.js:160:120239)}}
{{ at https://console-openshift-console.apps.cluster-65b4.65b4.example.opentlc.com/static/vendors~main-chunk-5d16dae3ac38abab85aa.min.js:160:119943}}
{{ at K (https://console-openshift-console.apps.cluster-65b4.65b4.example.opentlc.com/static/vendors~main-chunk-5d16dae3ac38abab85aa.min.js:160:120239)}}
{{ at https://console-openshift-console.apps.cluster-65b4.65b4.example.opentlc.com/static/vendors~main-chunk-5d16dae3ac38abab85aa.min.js:160:119943}}
{{ at K (https://console-openshift-console.apps.cluster-65b4.65b4.example.opentlc.com/static/vendors~main-chunk-5d16dae3ac38abab85aa.min.js:160:120239)}}
{{ at https://console-openshift-console.apps.cluster-65b4.65b4.example.opentlc.com/static/vendors~main-chunk-5d16dae3ac38abab85aa.min.js:160:119943}}

Comment 1 Jakub Hadvig 2020-08-05 08:25:08 UTC
Assigning to Dev Console team, since it's in their section.

Comment 2 Erik M Jacobs 2020-08-13 18:53:09 UTC
Reproducer:

oc version
Client Version: 4.4.0-0.nightly-2020-03-04-131133
Server Version: 4.5.4
Kubernetes Version: v1.18.3+012b3ec


helm repo add agones https://agones.dev/chart/stable
oc adm new-project agones-system
oc adm new-project xbox
helm install my-release agones/agones --set "gameservers.namespaces={xbox}" --namespace agones-system

Go to agones-system project in developer perspective

click Helm
click my-release
click resources

Comment 3 Samuel Padgett 2020-08-13 19:01:13 UTC
Looks like there's a duplicate key in the YAML. We might have to pass `{ json: true }` to safe load if we want to allow this. `oc create` tolerates duplicate keys.

```
YAMLException
Description:
duplicated mapping key at line 1528, column -123: annotations: ^
```

This is what we did in 3.x: https://github.com/openshift/origin-web-console/pull/1798/files#diff-87c88160ee9af35963d0357086b1435aR24-R29

https://github.com/nodeca/js-yaml#safeload-string---options-

Comment 7 Gajanan More 2021-01-12 09:04:31 UTC
Verified by @dsantra 

Verified on 4.7.0-0.ci-2020-11-03-102229

Updating and marking this as verified

Comment 10 errata-xmlrpc 2021-02-24 15:14:01 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 (Moderate: OpenShift Container Platform 4.7.0 security, bug fix, and enhancement update), 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/RHSA-2020:5633


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