Uploaded image for project: 'Red Hat Internal Developer Platform'
  1. Red Hat Internal Developer Platform
  2. RHIDP-5952

Unable to upgrade an existing Helm Release from 1.3.x to 1.3.5

Create Doc EPIC for Fe...Prepare for Y ReleasePrepare for Z ReleaseXMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Critical Critical
    • 1.3.5
    • 1.3.5
    • Helm Chart
    • None
    • 1
    • False
    • Hide

      None

      Show
      None
    • 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.3.4 && 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.3 branch and upgrade the Chart:
        git switch release-1.3
        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-audit-log" with kind PersistentVolumeClaim: PersistentVolumeClaim "my-backstage-1-audit-log" 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: "1Gi", Format: "BinarySI"}}},
              VolumeName:       "pvc-d6edcdac-38e8-4870-87b6-26f61cc71bd5",
      -       StorageClassName: &"local-path",
      +       StorageClassName: nil,
              VolumeMode:       &"Filesystem",
              DataSource:       nil,
              DataSourceRef:    nil,
        }
       && 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-616cfe34-37a0-4b0b-a744-1d42f840f02c",
      -       StorageClassName: &"local-path",
      +       StorageClassName: nil,
              VolumeMode:       &"Filesystem",
              DataSource:       nil,
              DataSourceRef:    nil,
        }
      

      Expected results:

      The previous 1.3.4 Helm Release should be successfully upgraded to the latest 1.3 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 auditLog.volumeClaimSpec.storageClassName and dynamicPlugins.cache.volumeClaimSpec.storageClassName fields to the default storage class available in the cluster.

              rh-ee-asoro Armel Soro
              rh-ee-asoro Armel Soro
              RHIDP - Install
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: