Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.

Bug 1866087

Summary: Examining agones helm chart resources results in "Oh no!"
Product: OpenShift Container Platform Reporter: Samuel Padgett <spadgett>
Component: Dev ConsoleAssignee: Rohit Rai <rorai>
Status: CLOSED ERRATA QA Contact: Gajanan More <gamore>
Severity: high Docs Contact:
Priority: unspecified    
Version: 4.6CC: aballant, aos-bugs, ejacobs, jokerman, nmukherj
Target Milestone: ---   
Target Release: 4.7.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: No Doc Update
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2021-02-24 15:14:01 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:
Bug Depends On:    
Bug Blocks: 1893738    

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