openebs/charts

Normal error 89s (x8 over 2m33s) helm-controller reconciliation failed: Helm upgrade failed: error while running post render on files: map[string]interface {}(nil): yaml: unmarshal errors:

Closed this issue · 5 comments

  Normal  error  89s (x8 over 2m33s)  helm-controller  reconciliation failed: Helm upgrade failed: error while running post render on files: map[string]interface {}(nil): yaml: unmarshal errors:

I get this when I enable:

ndmExporter:
  enabled: true

Can you post the full issue. I guess there must be something(some descriptive message) after the unmarshal errors:. Also can you specify whats steps are you following for upgrading the helm version?

Can you post the full issue. I guess there must be something(some descriptive message) after the unmarshal errors:. Also can you specify whats steps are you following for upgrading the helm version.

Normal error 89s (x8 over 2m33s) helm-controller reconciliation failed: Helm upgrade failed: error while running post render on files: map[string]interface {}(nil): yaml: unmarshal errors:

Also can you specify whats steps are you following for upgrading the helm version?

What exactly is the duplicate key:name?

Figured out the issue. My understandings:

  1. we are able to deploy the chart with a manual Helm install/upgrade command
  2. But when using some automated tools for helm chart installation/upgrade, the indentation may cause problem( The indentation problem is seen at 2 places- ndm-node-exporter service and ndm-cluster-exporter service). Or it can also occur due to additional line getting added in the ndm-operator deployment, ndm daemonset and ndm exporters pod templates. For eg:
        chart: openebs-ndm-1.7.2
        heritage: Helm
        openebs.io/version: "1.7.0"
        app: openebs-ndm-exporter
        release: RELEASE-NAME
        component: openebs-ndm-cluster-exporter
        openebs.io/component-name: openebs-ndm-cluster-exporter
        
        name: openebs-ndm-cluster-exporter

The additional line present above has 8 spaces of indentation also present which might cause the install/upgrade problems.
Solutions:

  1. Remove the unnecessary new line with indentation from the respective templates.
  2. Remove the unwanted indentation from the exporter service templates.