democratic-csi: Provisioning fails with error field not expected when provisioning with truenas
I’m getting the below error when setting up democratic-csi to provision over nfs on my truenas core server.
failed to provision volume with StorageClass "csi-truenas-nfs": rpc error: code = Internal desc = Error: {"create_ancestors":
[{"message":"Field was not expected","errno":22}]} Error: {"create_ancestors":[{"message":"Field was not expected","errno":22}]} at
Api.DatasetCreate (/home/csi/app/src/driver/freenas/http/api.js:392:11) at runMicrotasks (<anonymous>) at
processTicksAndRejections (node:internal/process/task_queues:96:5) at async FreeNASApiDriver.CreateVolume
(/home/csi/app/src/driver/freenas/api.js:2623:7) at async requestHandlerProxy (/home/csi/app/bin/democratic-csi:177:18)
here is my helm release: https://github.com/funkel1989/k3s-gitops/blob/main/cluster/core/democratic-csi/nfs/helm-release.yaml my test claim used to provision to see if this works: https://github.com/funkel1989/k3s-gitops/blob/main/cluster/core/democratic-csi/test-nfs-1.yaml
truenas version: TrueNAS-12.0-U7
if someone could point me to exactly what the error means so I can resolve it that would be the most helpful thing here for me.
Thanks all. sorry ahead of time if this is not the right place for this.
EDIT: Relized I forgot to post my driver.
apiVersion: v1
kind: Secret
type: Opaque
metadata:
annotations:
meta.helm.sh/release-name: nfs-democratic-csi
meta.helm.sh/release-namespace: democratic-csi
name: secret-democratic-csi-driver-config-nfs
namespace: democratic-csi
stringData:
driver-config-file.yaml: |
driver: freenas-api-nfs
instance_id: B8712266-C1B5-4DCD-9DFD-C6646C0AD3A4
sshConnection:
host: 192.168.0.22
port: 22
username: root
privateKey: |
-----BEGIN OPENSSH PRIVATE KEY-----
-----END OPENSSH PRIVATE KEY-----
zfs:
cli:
sudoEnabled: true
datasetProperties: "org.freenas:description": "flux-{{ parameters.[csi.storage.k8s.io/pvc/namespace] }}-{{ parameters.[csi.storage.k8s.io/pvc/name] }}"
datasetParentName: /mnt/data/k8s/nfs/v
detachedSnapshotsDatasetParentName: /mnt/data/k8s/nfs/s
datasetEnableQuotas: true
datasetEnableReservation: false
datasetPermissionsMode: "0777"
datasetPermissionsUser: root
datasetPermissionsGroup: wheel
nfs:
shareCommentTemplate: "flux-{{ parameters.[csi.storage.k8s.io/pvc/namespace] }}-{{ parameters.[csi.storage.k8s.io/pvc/name] }}"
shareHost: 192.168.0.22
shareAlldirs: false
shareAllowedHosts: []
shareAllowedNetworks: []
shareMaprootUser: root
shareMaprootGroup: "wheel"
shareMapallUser: ""
shareMapallGroup: """
About this issue
- Original URL
- State: closed
- Created 2 years ago
- Comments: 16 (9 by maintainers)
I tried with permit Sudo also and got the same error. I switched to the root account and it worked.
I was not able to get the ssh key auth to work for any account FYI. it kept telling me invalid key format (similar error I don’t remember the wording) which is why I’m using password auth.
this is a local lab so I’m going to keep going with the root user for now and will have to figure that out later. My guess is there is some type of configuration stuff inside of truenas that I’m unaware of.
You can consider this resolved! Thanks for all the time you put in to help me!