terraform-provider-truenas icon indicating copy to clipboard operation
terraform-provider-truenas copied to clipboard

truenas_share_nfs issue w/ TrueNas scale

Open maurizio-vitale opened this issue 2 years ago • 4 comments

On TrueNAS-SCALE-22.12.0 the NFS share endpoint has a path parameter but no paths parameter.

Just a data point, not sure what would be the best fix to maintain compatibility with other users. For me, I'll probably hardcode something that works, in the end I only need datasets and NFS shares (and datasets work just fine)

maurizio-vitale avatar Jan 11 '23 22:01 maurizio-vitale

Right, this is 2nd api issue already and I think this is not the end.. with cloud providers its easy, there is only one - latest api and it is pretty consistent, this is different. I may need to create multiple versions of TrueNAS go SDK and ideally keep the same resource schema for all TrueNAS versions if that is even possible. It probably makes sense to have explicit provider setting to select specific TrueNAS version instead of trying to determine it automatically.

dariusbakunas avatar Jan 11 '23 22:01 dariusbakunas

Yeah, i had the same issue.

songhanpoo avatar Feb 21 '23 15:02 songhanpoo

Any progress on this one?

NFS sharing API has slight differences in TrueNAS CORE and SCALE.

https://www.truenas.com/docs/api/core_rest_api.html vs https://www.truenas.com/docs/api/scale_rest_api.html

I do not think you'd have to have more variations than those two.

imyller avatar Aug 02 '23 20:08 imyller

Just ran into this as well. Is this something you're interested in getting going, @dariusbakunas ? Any suggestions on how you'd like to see it tackled if somebody takes a run at it?

lostapathy avatar Oct 25 '23 02:10 lostapathy