Commit Graph

597 Commits

Author SHA1 Message Date
Lee Chapman 39d853f1e9 fix(freenas-api-nfs): return actual capacity in ControllerExpandVolume
Fixes issue where volume expansion succeeds (quota is updated via PUT API)
but ControllerExpandVolume returns capacity_bytes: 0 due to a logic condition
evaluation, causing Kubernetes to reject the expansion with "capacity to 0" errors.

Root Cause:
The driver correctly uses PUT API call to update the quota, which succeeds.
However, the return value logic condition evaluates to 0 when:
- datasetEnableQuotas is false/undefined, AND
- driverZfsResourceType is "filesystem" (not "volume")

This happens even though the quota was successfully updated on the TrueNAS side.

API Flow:
1. PUT /pool/dataset/id/{datasetName} - Updates refquota/volsize (returns 200 OK)
2. GET /pool/dataset/id/{datasetName} - Reads back refquota/volsize with rawvalue

Changes:
- Read actual capacity from dataset after expansion using DatasetGet
  (queries refquota for filesystems, volsize for volumes)
- Use actual capacity from API response instead of relying on config flag
- Add fallback to requested capacity if actual capacity cannot be retrieved

The driver already uses the correct HTTP method (PUT) - no API changes needed.
This fix ensures we return the actual capacity that was set, not 0.

Fixes #394
2026-01-17 15:07:19 -08:00
Travis Glenn Hansen b5be00c074 release v1.9.5
Signed-off-by: Travis Glenn Hansen <travisghansen@yahoo.com>
2026-01-07 11:11:17 -07:00
Travis Glenn Hansen de9fab3037 use nanoserver still for windows
Signed-off-by: Travis Glenn Hansen <travisghansen@yahoo.com>
2026-01-06 13:57:55 -07:00
Travis Glenn Hansen 333ff2b30b docs, prep for release
Signed-off-by: Travis Glenn Hansen <travisghansen@yahoo.com>
2026-01-06 12:07:19 -07:00
Travis Glenn Hansen 91ad61e98a
Merge pull request #464 from mpeterson/add_pcs_iscsi_support
Add iSCSI targets/LUNs through Pacemaker clusters + development guidelines and tooling
2026-01-06 10:09:17 -07:00
Michel Peterson 00c025df8e update devcontainer image, enhance contributing guide, and implement mutex for PCS commands 2026-01-04 08:53:55 +00:00
Michel Peterson 822889ed1d make build_push.sh executable 2026-01-03 19:28:00 +02:00
Michel Peterson ff206518ed add force to target creation to allow multiple non-unique usernames 2026-01-03 19:28:00 +02:00
Michel Peterson 126ab5356c explain to put visibility public to package 2026-01-03 19:27:59 +02:00
Michel Peterson b1adbcd854 fixed doc 2026-01-03 19:27:59 +02:00
Michel Peterson 0f04c77330 small typo 2026-01-03 19:27:59 +02:00
Michel Peterson 0c74b90e01 Add build_push.sh 2026-01-03 19:27:59 +02:00
Michel Peterson 490f93e665 fix vagrant provisioning script 2026-01-03 19:27:59 +02:00
Michel Peterson 37b1726460 remove unneeded rm 2026-01-03 19:27:59 +02:00
Michel Peterson 536f0d487f CR fixes 2026-01-03 19:27:59 +02:00
Michel Peterson 7867bb4672 Minor changes 2026-01-03 19:27:59 +02:00
Michel Peterson 34452b2f3a Added vagrant and devcontainers + fixed all tests 2026-01-03 19:27:59 +02:00
Michel Peterson 53560cd8b1 small fix 2026-01-03 19:27:59 +02:00
Michel Peterson 3931bd9ef0 Adding some sleeps to allow things to settle down 2026-01-03 19:27:59 +02:00
Michel Peterson 373a7c7f79 Small CR and preparatory work for CI 2026-01-03 19:27:59 +02:00
Michel Peterson 31dcf845fc Add iSCSI targets/LUNs through Pacemaker clusters
Support pcs for zfs-generic to configure iSCSI
targets and LUNs. It uses the targetcli implementation
since it's the default pcs resources and also to
keep compatibility with the rest of the code.

closes #462
2026-01-03 19:27:59 +02:00
Travis Glenn Hansen 9ed7f8ad88 more robust logic around volume deletion with snapshots
Signed-off-by: Travis Glenn Hansen <travisghansen@yahoo.com>
2025-11-12 18:45:04 -07:00
Travis Glenn Hansen 6b937e645a New vhd-ephemeral-inline driver, windows updates 2025-11-06 13:53:18 -07:00
Travis Glenn Hansen 54912bf90b remove ctrbuilder
Signed-off-by: Travis Glenn Hansen <travisghansen@yahoo.com>
2025-11-03 19:47:26 -07:00
Travis Glenn Hansen 3969a2fe40 fix ctr path
Signed-off-by: Travis Glenn Hansen <travisghansen@yahoo.com>
2025-11-03 17:44:30 -07:00
Travis Glenn Hansen 277a2db674 include missing installer script
Signed-off-by: Travis Glenn Hansen <travisghansen@yahoo.com>
2025-11-03 17:43:29 -07:00
Travis Glenn Hansen 19b1cf2805 use pre-built ctr binaries
Signed-off-by: Travis Glenn Hansen <travisghansen@yahoo.com>
2025-11-03 16:45:36 -07:00
Travis Glenn Hansen 5b0b1049e5 initial support for overriding driver options on a per-class and per-pvc basis
Signed-off-by: Travis Glenn Hansen <travisghansen@yahoo.com>
2025-11-03 14:36:00 -07:00
Travis Glenn Hansen 6f47a506d0 ensure string values on args for later processing
Signed-off-by: Travis Glenn Hansen <travisghansen@yahoo.com>
2025-11-01 10:07:51 -06:00
Travis Glenn Hansen 3eb18d8099 cleanse secrets from iscsi command logging
Signed-off-by: Travis Glenn Hansen <travisghansen@yahoo.com>
2025-11-01 09:22:32 -06:00
Travis Glenn Hansen 9f7d4019c9 use mutex for zfs-generic commands to ensure no concurrent execution
Signed-off-by: Travis Glenn Hansen <travisghansen@yahoo.com>
2025-10-31 13:08:07 -06:00
Travis Glenn Hansen b08048a6ad Merge remote-tracking branch 'origin/master' into next 2025-10-31 09:46:35 -06:00
Travis Glenn Hansen 7b851797dc Merge branch 'next' of github.com:democratic-csi/democratic-csi into next 2025-10-31 09:45:57 -06:00
Travis Glenn Hansen ddf6b0d320 fix target idempotency, bump binary versions
Signed-off-by: Travis Glenn Hansen <travisghansen@yahoo.com>
2025-10-31 09:45:28 -06:00
Travis Glenn Hansen 33fcfda9ab
Merge pull request #453 from d-uzlov/fix-driver-in-exceptions
Fix driver name reporting in exceptions
2025-10-31 09:33:58 -06:00
Travis Glenn Hansen 465e163286
Merge pull request #455 from solidDoWant/feat/support-snapshot-properties-1
Add the ability to set ZFS snapshot properties (functionally identical to `datasetProperties`)
2025-10-31 09:31:52 -06:00
Travis Glenn Hansen 2d2790b23b
Merge pull request #511 from tomerliberman/patch-1
Update pv-updater.sh
2025-10-31 08:47:52 -06:00
Travis Glenn Hansen b3292da53d introduce -nvmeof drivers for TrueNAS
Signed-off-by: Travis Glenn Hansen <travisghansen@yahoo.com>
2025-10-31 02:31:21 -06:00
Travis Glenn Hansen 78a5342809 build windows 2022 and 2025
Signed-off-by: Travis Glenn Hansen <travisghansen@yahoo.com>
2025-10-30 14:44:17 -06:00
Travis Glenn Hansen 2a6fd4f91d limit build architectures
Signed-off-by: Travis Glenn Hansen <travisghansen@yahoo.com>
2025-10-30 13:39:21 -06:00
Travis Glenn Hansen be57b695ed prebuilt re2 binaries for image
Signed-off-by: Travis Glenn Hansen <travisghansen@yahoo.com>
2025-10-30 11:57:59 -06:00
Travis Glenn Hansen 5d8cd2253a better zfs path support
Signed-off-by: Travis Glenn Hansen <travisghansen@yahoo.com>
2025-10-29 22:38:14 -06:00
Travis Glenn Hansen 49b9e42e56
Merge pull request #512 from perfectra1n/feat/fix-scale-paths
feat(ssh/zfs): update path resolution logic for scale
2025-10-29 21:29:15 -06:00
Travis Glenn Hansen 018de54685 further truenas 25.10 support
Signed-off-by: Travis Glenn Hansen <travisghansen@yahoo.com>
2025-10-29 19:31:56 -06:00
Travis Glenn Hansen fc7ec358ab support new containerd-oci-ephemeral-inline driver
Signed-off-by: Travis Glenn Hansen <travisghansen@yahoo.com>
2025-10-28 16:10:35 -06:00
perf3ct 721d375531
feat(ssh/zfs): update path resolution logic for scale 2025-08-20 21:05:20 +00:00
Tomer Liberman c972164fc4
Update pv-updater.sh
Fix pv-updater.sh for changes in yq, and restore needed escaping for patching previous reclaim policy
2025-08-17 19:13:04 +03:00
Travis Glenn Hansen 55c36d62ff newer ubuntu image for ci
Signed-off-by: Travis Glenn Hansen <travisghansen@yahoo.com>
2025-05-30 08:14:54 -06:00
Travis Glenn Hansen edfdf86f2d fix for scale with ssh driver
Signed-off-by: Travis Glenn Hansen <travisghansen@yahoo.com>
2025-05-30 07:59:09 -06:00
Travis Glenn Hansen 73af26298c handling nvme hostid/hostnqn files more robustly
Signed-off-by: Travis Glenn Hansen <travisghansen@yahoo.com>
2025-04-06 11:02:21 -06:00