freenas-provisioner
freenas-provisioner copied to clipboard
Compatibility with TrueNas Core v12
Great work! Are there any plans on supporting the v2 api of TrueNas?
The project over here supports it: https://github.com/democratic-csi/democratic-csi
But there are differences between the projects. The above is more generic and is a full blown csi driver vs the older non-csi stuff (what this project is). And also to avoid the crazy incompatibilities of the freenas api (and to gain far more control over operations generally) the zfs operations are actually performed over ssh instead of using the freenas api. However, the calls that do use the api can leverage both v1 or v2 per a configuration option.
Also, eu falo portugues :)
As an FYI, it you started out using this project and wanted to update your NAS (to a version that only supports the v2 api) but had already created some volumes, I've now implemented a migration script for volumes created with the non-csi drivers (ie: this project, and the iscsi project) to democratic-csi.
It takes a bit of time but I've successfully migrated ~100 volumes in several clusters.
https://github.com/democratic-csi/democratic-csi/blob/master/contrib/freenas-provisioner-to-democratic-csi.sh