helm-controller icon indicating copy to clipboard operation
helm-controller copied to clipboard

HelmChart doesn't recover from "chart pull error: failed to get chart version for remote reference: no chart name found"

Open greenu opened this issue 2 years ago • 2 comments

When I faced with helm chart repository outage my charts became stuck in ChartPullFailed even when repository back online.

FluxCD v0.27.0 helm-controller v0.17.0

How to reproduce:

  1. Install HelmRelease of a chart.
  2. Remove the chart from chart repository. Wait for HelmRepository and HelmRelease to reconcile.
  3. See ArtifactFailed reason in HelmRelease
  4. Put the chart back to chart repository.
  5. Make sure HelmRepository reconciled and index.yaml contains the chart.
  6. See HelmChart and HelmRelease stuck in error state chart pull error: failed to get chart version for remote reference: no chart name found

I observe this behaviour both with reconcileStrategy: Revision and reconcileStrategy: ChartVersion in HelmChartSpec

As per the documentation I assume that reconcileStrategy: Revision should handle this?

greenu avatar Mar 01 '22 15:03 greenu

We seem to get this quite often using source-controller version v0.21.0 (I believe the source-controller is the controller that manages chart artefacts) , and recycling the source-controller always fixes it. Not sure if this needs moving to the source-controller repo

racdev avatar Apr 14 '22 16:04 racdev

@racdev Thanks, restart source controller deployment fixed the issue for me too, using flux v2.0.1

viceice avatar Aug 08 '23 04:08 viceice