-
Bug
-
Resolution: Done
-
Critical
-
1.4.2
-
None
-
1
-
False
-
-
False
-
Release Note Not Required
-
-
-
RHDH Install 3269
Description of problem:
Prerequisites (if any, like setup, operators/versions):
Steps to Reproduce
- Checkout the rhdh-chart at the latest tag and deploy the Chart:
git clone https://github.com/redhat-developer/rhdh-chart.git -b 1.4.1 && cd rhdh-chart helm dependency update charts/backstage helm upgrade --install my-backstage-1 charts/backstage --set route.enabled=false
- Now switch to the head of the release-1.4 branch and upgrade the Chart:
git switch release-1.4 helm dependency update charts/backstage helm upgrade --install my-backstage-1 charts/backstage --set route.enabled=false
=> Failure to upgrade
Actual results:
$ helm upgrade --install my-backstage-1 charts/backstage --set route.enabled=false Error: UPGRADE FAILED: cannot patch "my-backstage-1-dynamic-plugins-root" with kind PersistentVolumeClaim: PersistentVolumeClaim "my-backstage-1-dynamic-plugins-root" is invalid: spec: Forbidden: spec is immutable after creation except resources.requests for bound claims core.PersistentVolumeClaimSpec{ ... // 2 identical fields Resources: {Requests: {s"storage": {i: {...}, s: "5Gi", Format: "BinarySI"}}}, VolumeName: "pvc-9b5b33f1-a199-4367-a207-7bbff34fb51b", - StorageClassName: &"local-path", + StorageClassName: nil, VolumeMode: &"Filesystem", DataSource: nil, DataSourceRef: nil, }
Expected results:
The previous 1.4.1 Helm Release should be successfully upgraded to the latest 1.4 commit.
Reproducibility (Always/Intermittent/Only Once):
Always
Build Details:
Additional info (Such as Logs, Screenshots, etc):
A possible workaround is to set in your values file the dynamicPlugins.cache.volumeClaimSpec.storageClassName fields to the default storage class available in the cluster.
- clones
-
RHIDP-5952 Unable to upgrade an existing Helm Release from 1.3.x to 1.3.5
-
- Closed
-