This message was deleted.
# longhorn-storage
a
This message was deleted.
b
I think after you deploy longhorn once, those changes in values have no effect. you need to set the path up in the UI
g
It does not take over this value even during the first installation. Any other parameter changes take effect.
b
Can you output
kubectl -n longhorn-system get pod
? Have you tried running helm install without ansible? ex:
Copy code
helm install longhorn longhorn/longhorn --namespace longhorn-system --create-namespace --version=1.2.2 --set defaultSettings.backupTarget="<nfs://mynfsserver>:/exported/backup/longhorn"
g
In the first case, the value is correct (both Longhorn UI and Rancher Vaules YAML) if I run the command you specified:
Copy code
helm install longhorn longhorn/longhorn --namespace longhorn-system --create-namespace --version=1.2.2 --set defaultSettings.backupTarget="<nfs://mynfsserver>:/exported/backup/longhorn/oldpath"
When I use the following command, it is no longer correct (Rancher Vaules YAML - newpath, Longhorn UI - oldpath):
Copy code
helm upgrade longhorn longhorn/longhorn --namespace longhorn-system --version=1.2.2 --set defaultSettings.backupTarget="<nfs://mynfsserver>:/exported/backup/longhorn/newpath"
b
Helm upgrade doesn't apply to the default setting for the Longhorn version before v1.3.0. You need to manually edit the settings. Ref https://longhorn.io/kb/troubleshooting-default-settings-do-not-persist/. For your case, is it possible Ansible deployed Longhorn first without the customized default setting then did a helm upgrade? You can try upgrading to v1.3.x. Ref issue, https://github.com/longhorn/longhorn/issues/2570.
g
@billowy-painting-56466 Thanks for the feedback! I will try v1.3.x. During the first installation, set some custom parameters (e.g. defaultDataLocality, createDefaultDiskLabeledNodes, etc). However, there are cases when it is necessary to add or modify few parameters, for example adding a new taintToleration.