Skip to main content

cinder-zfs-driver

A Cinder volume driver for FreeBSD that stores volumes as ZFS zvols.

Status

Features

  • Volume create, delete, extend, clone and revert to snapshot
  • Snapshots are ZFS snapshots, with deferred destroy while clones depend on them
  • Glance image download to a volume and volume upload to an image
  • Local attach to a nova-bhyve instance on the same host
  • Remote iSCSI volume export served by CTL, attached on FreeBSD hosts with os-brick-freebsd
  • Sparse or fully reserved zvols on disk
  • Volume migration between two ZFS backends, using zfs send over ssh when the destination is another host

Roadmap

  • Snapshot export over iSCSI
  • Per-initiator ACLs, mutual CHAP and multipath portals
  • Add support for NVMe over Fabrics remote attach

Limitations

  • Remote snapshot connections are refused

Host requirements

zfs allow delegation is needed for the dataset holding volumes, including send and receive for migration.

Remote export needs ctld running against the driver's config file:

touch /etc/ctl.conf
sysrc ctld_flags="-f /var/db/cinder/ctl.conf" ctld_enable=YES
service ctld start

Configuration

[zfs]
volume_driver = cinder_zfs_driver.driver.ZFSVolumeDriver
volume_backend_name = ZFS
zfs_dataset = zroot/cinder
zfs_sparse_volumes = true
use_chap_auth = true
# zfs_ctld_config = /var/db/cinder/ctl.conf
# zfs_local_hosts = alias1,alias2
# migration_ssh_config = /usr/local/etc/cinder/ssh_config

Migration between hosts

To migrate volumes to a backend on another host, the cinder user needs an ssh key. See the migration_ssh_config configuration opt.

The user on the receiving host needs create,destroy,mount,receive,refreservation delegated on the dataset.

Additionally you can lock down this user to only execute the receive command, for example (in authorized_keys):

command="cinder-zfs-receive --config-file /path/to/cinder.conf",restrict ssh-ed25519 AAAA...

Metadata

Release files for cinder-zfs-driver 0.9.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for cinder-zfs-driver 0.9.2
File Size Uploaded Provenance Actions
cinder_zfs_driver-0.9.2.tar.gz 11.3 kB Without provenance Details for cinder_zfs_driver-0.9.2.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for cinder-zfs-driver 0.9.2
File Interpreter ABI Platform Actions
cinder_zfs_driver-0.9.2-py3-none-any.whl Python 3 none any Details for cinder_zfs_driver-0.9.2-py3-none-any.whl

Total release size: 24.8 kB

Release files / cinder_zfs_driver-0.9.2.tar.gz

Download URL cinder_zfs_driver-0.9.2.tar.gz
Size 11.3 kB
Tags Source
SHA-256 checksum
How to use checksums
067020bb7ff71d485b96ff8d5dc049dcfa93933c52e2c1bab10d10970197d67d
BLAKE2b-256 checksum
How to use checksums
c2b216efce8806475891eaca8b18b554065deeb8f391a20f775e81f404fe5c30
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.13.7 {"installer":{"name":"uv","version":"0.13.7","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"26.04","id":"resolute","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Release files / cinder_zfs_driver-0.9.2-py3-none-any.whl

Download URL cinder_zfs_driver-0.9.2-py3-none-any.whl
Size 13.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
523b9b0beb2f92ec9b59c3c46b7c6018c655b037ce991b1596cb7f05c54633d2
BLAKE2b-256 checksum
How to use checksums
3b598569464a35d942e903e6e4dd9d7fa8e8f4962be50faeff7ab877cb5e210f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.13.7 {"installer":{"name":"uv","version":"0.13.7","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"26.04","id":"resolute","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Security for cinder-zfs-driver 0.9.2

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page