Skip to content
This repository has been archived by the owner on May 8, 2024. It is now read-only.

helm upgrade failed with "nil pointer evaluating interface {}.enabled" #311

Open
harridu opened this issue Sep 14, 2022 · 1 comment
Open

Comments

@harridu
Copy link

harridu commented Sep 14, 2022

openebs upgrade from 3.2.0 to 3.3.0 failed with

% kubectl get nodes
NAME       STATUS   ROLES                      AGE     VERSION
srvl012    Ready    controlplane,etcd,worker   2y30d   v1.23.8
srvl013    Ready    controlplane,etcd,worker   2y30d   v1.23.8
srvl033a   Ready    worker                     2y30d   v1.23.8
srvl033b   Ready    worker                     2y30d   v1.23.8
srvl062    Ready    controlplane,etcd,worker   424d    v1.23.8

% helm list -n openebs
NAME    NAMESPACE       REVISION        UPDATED                                         STATUS          CHART           APP VERSION
openebs openebs         18              2022-06-16 09:42:58.892047791 +0200 CEST        deployed        openebs-3.2.0   3.2.0      

% helm get values openebs -n openebs
USER-SUPPLIED VALUES:
cstor:
  enabled: true
openebs-ndm:
  enabled: true

% helm upgrade openebs openebs/openebs --namespace openebs --reuse-values
Error: UPGRADE FAILED: template: openebs/templates/localprovisioner/hostpath-class.yaml:32:14: executing "openebs/templates/localprovisioner/hostpath-class.yaml" at <.Values.localprovisioner.hostpathClass.ext4Quota.enabled>: nil pointer evaluating interface {}.enabled
@harridu
Copy link
Author

harridu commented Sep 14, 2022

If I omit the --reuse-values, it works, but this doesn't match the documentation, AFAICT.

% helm upgrade openebs openebs/openebs --namespace openebs --set cstor.enabled=true --set openebs-ndm.enabled=true
Release "openebs" has been upgraded. Happy Helming!
NAME: openebs
LAST DEPLOYED: Wed Sep 14 10:08:57 2022
NAMESPACE: openebs
STATUS: deployed
REVISION: 19
TEST SUITE: None
NOTES:
Successfully installed OpenEBS.
:

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant