Uploaded image for project: 'Red Hat Advanced Cluster Management'
  1. Red Hat Advanced Cluster Management
  2. ACM-8321

ACM Unable to Upgrade Helm Chart with Secret Dependencies

XMLWordPrintable

    • False
    • Hide

      None

      Show
      None
    • False
    • Important
    • -
    • No

      Description of problem:

      When attempting to use ACM to upgrade a Helm chart with an external secret dependency (in this instance postgresql) the upgrade fails and returns the error:

      "message: > failed to get the next candidate release to determine if an upgrade is necessary: execution error at (chart-name/charts/postgresql/templates/secrets.yaml:5:24): PASSWORDS ERROR: You must provide your current passwords when upgrading the release. Note that even after reinstallation, old credentials may be needed as they may be kept in persistent volume claims. Further information can be obtained at

      https://docs.bitnami.com/general/how-to/troubleshoot-helm-chart-issues/#credential-errors-while-upgrading-chart-releases

      ‘global.postgresql.auth.postgresPassword’ must not be empty, please add ‘--set global.postgresql.auth.postgresPassword=$PASSWORD’ to the command. To get the current value:"

      Performing the same upgrade via the helm cli with `helm upgrade chart-name -f value.yml` completes successfully.

      The helm chart is configured at present to read a secret from the OCP cluster and use that to populate the postgres password. In the running postgresql container we are able to verify that the postgres password env var is set. The issue only seems to occur during the chart upgrade scenario.

      Version-Release number of selected component (if applicable):

      How reproducible:

      Steps to Reproduce:

      1.  
      2.  
      3. ...

      Actual results:

      Expected results:

      Additional info:

       

              xiangjingliredhat Xiangjing Li (Inactive)
              rhn-support-jayoung James Young
              David Huynh David Huynh
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Created:
                Updated:
                Resolved: