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.3

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.3
File Size Uploaded Provenance Actions
cinder_zfs_driver-0.9.3.tar.gz 11.5 kB Without provenance Details for cinder_zfs_driver-0.9.3.tar.gz

Built distribution (wheel)

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

Total release size: 25.2 kB

Release files / cinder_zfs_driver-0.9.3.tar.gz

Download URL cinder_zfs_driver-0.9.3.tar.gz
Size 11.5 kB
Tags Source
SHA-256 checksum
How to use checksums
2e97c20b90d5d5c0b428b83bed11f8faa371bdb8e950eb92afa76c923d4c9d2f
BLAKE2b-256 checksum
How to use checksums
ab3008a566b69047fb0831fb9bbd5af6323a3a2a702542288887e217d67b5d0e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.13.8 {"installer":{"name":"uv","version":"0.13.8","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.3-py3-none-any.whl

Download URL cinder_zfs_driver-0.9.3-py3-none-any.whl
Size 13.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
a757084392ec88556f318ddfe6cef0973874169d5f83f9a8a71f5ed0127ef840
BLAKE2b-256 checksum
How to use checksums
e8a0bfb469327e02277d57ecc697a9850c2b887efb1f3cf642055d0e67090b85
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.13.8 {"installer":{"name":"uv","version":"0.13.8","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.3

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