Bug 1973707

Summary: Can not upgrade a Helm Chart that uses a library chart in the OpenShift dev console
Product: OpenShift Container Platform Reporter: OpenShift BugZilla Robot <openshift-bugzilla-robot>
Component: Dev ConsoleAssignee: Allen Bai <abai>
Status: CLOSED ERRATA QA Contact: Pavel Macik <pmacik>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 4.6CC: andrii.salnikov, aos-bugs, cjerolim, cvogt, demonihin, dperaza, dperaza, dsantra, msaud, nmukherj, pknezevi, pmacik, rorai, sparpate, spathak, vpagar
Target Milestone: ---   
Target Release: 4.7.z   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2021-09-21 22:32:59 UTC Type: ---
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: 1933101    
Bug Blocks:    

Comment 7 Pavel Macik 2021-09-17 13:10:42 UTC
I've tested with OCP v4.7.31.

I confirmed that #9299 PR is in:

$ oc get secrets sh.helm.release.v1.wildfly-from-ui.v2 -o json | jq -r .data.release | base64 --decode | base64 --decode | gunzip -c | jq -r .chart.metadata.annotations.chart_url
https://redhat-developer.github.io/redhat-helm-charts/charts/wildfly-1.4.0.tgz
oc ver
And I was able to successfully install and upgrade chart via both UI and CLI (not mixing the two) using these YAML configs:
 * app-v1.yaml = https://raw.githubusercontent.com/wildfly/wildfly-charts/main/examples/microprofile-config/microprofile-config-app.yaml)
 * app-v2.yaml = app-v1.yaml with updated {.deploy.env[name = "CONFIG_PROP"].value} field

CLI:

helm install wildfly-from-cli wildfly/wildfly -f https://raw.githubusercontent.com/wildfly/wildfly-charts/main/examples/microprofile-config/microprofile-config-app.yaml

and

helm upgrade wildfly-from-cli wildfly/wildfly -f app-v2.yaml


UI:

DevConsole->Add->Helm Chart->Wildfly->Install Helm Chart (name: wildfly-from-ui)->YAML view [content of app-v1.yaml]->Install

and

DevConsole->Helm->(wildfly-from-ui)->Actions->Upgrade->YAML view [content of app-v2.yaml]->Upgrade

Comment 8 Allen Bai 2021-09-17 14:36:57 UTC
Great. Thank you Pavel!

Comment 10 errata-xmlrpc 2021-09-21 22:32:59 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 (OpenShift Container Platform 4.7.31 bug fix 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/RHBA-2021:3510