Repository navigation
Releases
Longhorn v1.10.5
Longhorn v1.10.5 Release Notes
Longhorn 1.10.5 introduces several improvements and bug fixes that are intended to improve system quality, resilience, stability and security.
We welcome feedback and contributions to help continuously improve Longhorn.
For terminology and context on Longhorn releases, see Releases.
Installation
Important
Ensure that your cluster is running Kubernetes v1.25 or later before installing Longhorn v1.10.5.
You can install Longhorn using a variety of tools, including Rancher, Kubectl, and Helm. For more information about installation methods and requirements, see Quick Installation in the Longhorn documentation.
Upgrade
Important
Ensure that your cluster is running Kubernetes v1.25 or later before upgrading from Longhorn v1.9.x to v1.10.5.
Longhorn only allows upgrades from supported versions. For more information about upgrade paths and procedures, see Upgrade in the Longhorn documentation.
Post-Release Known Issues
For information about issues identified after this release, see Release-Known-Issues.
Resolved Issues
Bug
- [BUG]
v1.10.5-rc1Support bundle manager pod fails with ImagePullBackOff due to non-existent imagelonghornio/support-bundle-kit:v0.0.9914647 - @c3y1huang @roger-ryao - [BACKPORT][v1.10.5][BUG] expanding the volume fails 13385 - @chriscchien
Misc
- [BACKPORT][v1.10.5][TASK] Add Helm chart image HIP-0015 annotations 14266 - @roger-ryao @carterli0407-cell
Contributors
Longhorn v1.10.5-rc1
DON'T UPGRADE from/to any RC/Preview/Sprint releases because the operation is not supported.
Resolved Issues in this release
Bug
- [BACKPORT][v1.10.5][BUG] expanding the volume fails 13385 - @chriscchien
Misc
- [BACKPORT][v1.10.5][TASK] Add Helm chart image HIP-0015 annotations 14266 - @roger-ryao @carterli0407-cell
Contributors
- @carterli0407-cell
- @chriscchien
- @github-actions[bot]
- @innobead
- @roger-ryao
Longhorn v1.12.2
Longhorn v1.12.2 Release Notes
Longhorn v1.12.2 introduces important improvements and bug fixes that enhance system quality, resilience, stability, and security.
We welcome feedback and contributions to help continuously improve Longhorn.
For terminology and context on Longhorn releases, see Releases.
Important
Live upgrade of the V2 Data Engine from v1.12.2 to v1.13.0 is not supported
During a V2 Data Engine live upgrade, replicas are rebuilt while volumes are serving I/O. Because Longhorn v1.13.0 was released before several critical V2 rebuild and live-upgrade fixes (which are included in v1.12.2 and v1.13.1), spdk_tgt in the v1.13.0 instance-manager pods may crash or get stuck and prevent the upgrade from completing. These issues include Instance Manager Pod Crashes, Issue #14425, and other stability issues fixed in this release (see Important Improvements and Fixes).
- Upgrading from v1.12.2 to v1.13.0: Detach all V2 volumes before upgrading. The V2 instance-manager pods then restart with the new instance-manager image.
- Upgrading from v1.12.2 to v1.13.1 or later: Live upgrade of the V2 Data Engine is supported. For instructions, see V2 Instance Manager Upgrade.
Periodic backups are recommended for V2 volumes
In the V2 Data Engine, if a snapshot deletion or system-snapshot purge fails or is interrupted partway through (for example, by a disk I/O error, exhausted metadata pages, an spdk_tgt crash, an instance-manager pod restart, or a node reboot), inconsistent blobstore metadata can cause V2 volume data corruption, spdk_tgt crashes, or a disk lvstore load failure (Issue #14474). To protect against potential data loss, configure periodic backups for V2 volumes and avoid restarting V2 instance-manager pods or rebooting nodes while snapshots are being deleted or purged.
Breaking Changes
Deprecation of Legacy V2 Linked Clone Volumes
V2 linked-clone volumes created in v1.12.0 or earlier are marked as legacy and deprecated starting in v1.12.1. The new linked-clone architecture introduced in Issue #12552 is not compatible with the legacy design.
After upgrading to v1.12.1 or later, legacy linked-clone volumes cannot be operated on except for detachment and deletion.
To replace, create new linked-clone volumes from the same source volumes that back the legacy ones. As long as a legacy volume exists, its source volume is guaranteed to still be present, so you can create a replacement linked clone directly; no data copy is required.
For more information, see Issue #12552.
Important Improvements and Fixes
This release includes several important improvements and critical stability fixes.
V1 Data Engine
IPv6 and Dual-Stack Support for Backing Images
The backing image manager and data source now follow Longhorn's IP family selection logic and serve on an IPv4 or IPv6 address that matches the cluster or storage network, including IPv4-first and IPv6-first dual-stack clusters. Previously they always used IPv4.
For more information, see Issue #14148 and Issue #13864.
Data Loss During Replica Rebuilds with Concurrent Unaligned Writes
Fixes a bug in which acknowledged writes could be silently lost during a replica rebuild. Concurrent writes smaller than 4 KiB to the same 4 KiB sector (for example, a database transaction log using 512-byte writes) could overwrite each other because the read-modify-write sequence was not locked. Longhorn now serializes these writes with a range lock. Users running such workloads on V1 volumes are strongly encouraged to upgrade.
For more information, see Issue #14451 and Issue #14447.
Replica Rebuild Failure Caused by a Lost gRPC TCP Keepalive
Fixes replica rebuilds that randomly failed on busy networks because a single lost TCP keepalive terminated the idle sync-agent gRPC connection after 20 seconds. The sync-agent now uses the operating system's default keepalive parameters.
For more information, see Issue #13768 and Issue #13703.
V2 Data Engine
Dedicated CPU Core for the SPDK Admin Reactor
The first core of the SPDK CPU mask now runs only the admin reactor, and the other cores run the I/O pollers (NVMe-oF target poll groups and ublk target). This keeps I/O load from starving the admin reactor. With a single-core mask, the admin reactor and the pollers share the core.
Important
For stability, configure at least 2 CPU cores for the V2 Data Engine. With a multi-core mask, one core is reserved for the admin reactor, so one fewer core serves I/O.
For more information, see Issue #14443 and Issue #14190.
Configurable NVMe-TCP Initiator I/O Queue Count
You can now limit the number of I/O queues the kernel NVMe-TCP initiator creates for V2 volumes, instead of one per CPU core, to reduce memory use on high-core-count nodes. Set it globally with default-nvme-tcp-nr-io-queues (default 0, the kernel default) or per volume with nvmeTcpNrIoQueues. Valid values are 0 or 1-128, and changes take effect on the next attach.
For more information, see Issue #13725 and Issue #13706.
Instance Manager Pod Crashes
Fixes several critical issues in which spdk_tgt aborted and brought down the V2 instance-manager pod, taking every V2 volume on the node offline:
- Replica rebuild finishing under I/O: If suspending the engine frontend timed out, the rebuild switched the parent of the destination replica head while it was still serving I/O, causing the
bdev_channel_destroy_resource: Assertion 'TAILQ_EMPTY(&ch->io_submitted)' failedabort. This is more likely when many replicas are rebuilt under load, such as during a live upgrade. See Issue #14495 and Issue #14411. - Replica rebuilds:
spdk_tgtcould abort withdouble free or corruption (fasttop)during replica rebuilds. See Issue #14484 and Issue #14482. - Large-block reads in interrupt mode: Large reads (for example, 1 MiB at a high queue depth) could flood the NVMe-oF TCP target with flush retries, and a retry could run after its connection was freed, causing the
spdk_for_each_channel: Assertion 'false' failedabort. See Issue #14162 and Issue #14095. - Deleting a snapshot of an expanded volume: Deleting a snapshot that is smaller than its child and not a multiple of 512 MiB could leave lvol metadata that SPDK fails to load, causing the instance-manager pod to crash-loop after the next restart or reboot. See Issue #14347 and Issue #14344.
Engine Fault Caused by a Replica Rebuild Destination Failure
Fixes a critical issue in which a failure while setting up a rebuild on the destination replica faulted the entire engine and recreated the frontend, even though healthy replicas remained. Now only the failed destination replica is marked ERR, and the engine, frontend, and I/O are preserved.
For more information, see Issue #13780 and Issue #13673.
Storage Sharding (Experimental)
Erasure-Coded Volume Write Stall on arm64
Fixes a lost wakeup in the SPDK erasure-coding bdev that could stall writes and leave the SPDK target unresponsive, blocking volume deletion until the instance-manager pod was restarted. The race is more likely on arm64.
For more information, see Issue #13895 and Issue #13789.
Installation
Important
Ensure that your cluster is running Kubernetes v1.25 or later before installing Longhorn v1.12.2.
You can install Longhorn using a variety of tools, including Rancher, Kubectl, and Helm. For more information about installation methods and requirements, see Quick Installation in the Longhorn documentation.
Upgrade
Important
Ensure that your cluster is running Kubernetes v1.25 or later before upgrading to Longhorn v1.12.2.
Longhorn only allows upgrades from supported versions. For more information about upgrade paths and procedures, see Upgrade in the Longhorn documentation.
Post-Release Known Issues
For information about issues identified after this release, see Release-Known-Issues.
Resolved Issues in this release
Feature
- [BACKPORT][v1.12.2][FEATURE] Backing image supports IPv6 and dual-st...
Longhorn v1.12.2-rc4
DON'T UPGRADE from/to any RC/Preview/Sprint releases because the operation is not supported.
Resolved Issues in this release
Feature
- [BACKPORT][v1.12.2][FEATURE] Backing image supports IPv6 and dual-stack IP families 14148 - @COLDTURNIP @yangchiu
Improvement
- [BACKPORT][v1.12.2][IMPROVEMENT] Tuning CPU usage of SPDK and nvme-tcp for v2 engine 14443 - @yangchiu @shuo-wu
- [BACKPORT][v1.12.2][IMPROVEMENT] Skip the filesystem sync when suspending the frontend for replica rebuilding 14419 - @derekbit @roger-ryao
- [BACKPORT][v1.12.2][IMPROVEMENT] Sync v2 volume and engine image felds after upgrade 14318 - @davidcheng0922
- [BACKPORT][v1.12.2][IMPROVEMENT] Disk monitor repeatedly logs error when disk health collection fails 14300 - @derekbit
- [BACKPORT][v1.12.2][IMPROVEMENT] CSI ignores EC StorageClass parameters (silent replicated fallback) 13793 - @apoorvajagtap @chriscchien
- [BACKPORT][v1.12.2][IMPROVEMENT] CSI Resize may idle for a long time after volume clone or restore 14108 - @shuo-wu @roger-ryao
- [BACKPORT][v1.12.2][IMPROVEMENT] Enable CPU Isolation for V2 Data Engine 14034 - @derekbit @roger-ryao
- [BACKPORT][v1.12.2][IMPROVEMENT] backup target availability status metric 13981 - @yangchiu
- [BACKPORT][v1.12.2][IMPROVEMENT] (chart) Precedence of image...registry 13738 - @bachmanity1 @roger-ryao
- [BACKPORT][v1.12.2][IMPROVEMENT] v2 volumes: allow configuring the NVMe-TCP initiator I/O queue count (nr-io-queues) 13725 - @hookak @chriscchien
Bug
- [BACKPORT][v1.12.2][BUG]
spdk_tgtcrashes with "double free or corruption (fasttop)" around replica rebuilds 14484 - @derekbit @chriscchien - [BACKPORT][v1.12.2][BUG] Test case
Test Crashed Replica Not Reused After Node Backfails because an orphan replica data cannot be removed 14490 - @COLDTURNIP - [BACKPORT][v1.12.2][BUG] Concurrent unaligned writes during replica rebuild lose data (unlocked read-modify-write in writeInWOMode) 14451 - @yangchiu @derekbit
- [BACKPORT][v1.12.2][BUG] v2 instance-manager is crashed by disk recovery failure in SPDK 14347 - @shuo-wu @chriscchien
- [BACKPORT][v1.12.2][BUG] a rebuilding replica sometimes disappears in the
Engine.Status.ReplicaModeMap13917 - @mantissahz @roger-ryao - [BACKPORT][v1.12.2][BUG] Best-effort zone balancing stalls at 3+1 due to shadowed adjustCount 14452 - @yangchiu
- [BACKPORT][v1.12.2][BUG] Concurrent volume attachments can create multiple NVMe-oF transports and crash spdk_tgt 14400 - @derekbit @chriscchien
- [BACKPORT][v1.12.2][BUG] V2 instance manager live upgrade stuck in relocating-engines because the EngineFrontend switchover keeps retrying promoting against a recreated target engine 14425 - @davidcheng0922 @chriscchien
- [BACKPORT][v1.12.2][BUG] V2 instance-manager
spdk_tgtallocates its hugepages from another pod's hugetlbfs mount (via/host), blocking that pod's teardown 14430 - @yangchiu @derekbit - [BACKPORT][v1.12.2][BUG] A stalled NVMe device makes engine frontends of unrelated v2 volumes fail validation and be recreated 14373 - @hookak @roger-ryao
- [BACKPORT][v1.12.2][BUG] nvme list zombie processes leak when NVMe admin queue returns EAGAIN (v2 data engine) 13764 - @chriscchien
- [BACKPORT][v1.12.2][BUG] SystemBackup stuck in
CreatingVolumeBackupson v1.12.1: controller either silently stops reconciling after all volume backups complete, or loops forever onsnapshot not found(auto-cleanup race) 14375 - @yangchiu @c3y1huang - [BACKPORT][v1.12.2][BUG] v2 spdk_tgt aborts with assertion in blob_insert_cluster_msg due to an extent page race 14370 - @davidcheng0922 @chriscchien
- [BACKPORT][v1.12.2][BUG] Fast replica rebuild skips a snapshot file that was changed by purge/coalesce (stale .img.checksum), leaving the rebuilt replica missing data; snapshot-data-integrity: fast-check does not detect it 14335 - @derekbit @chriscchien
- [BACKPORT][v1.12.2][BUG] Transient status RPC failure marks healthy replica failed and can fault a volume 14332 - @yangchiu
- [BACKPORT][v1.12.2][BUG] Disk health data never collected for V1 filesystem disks whose path is not itself a mount point ("mount path ... not found") 14311 - @derekbit @chriscchien
- [BACKPORT][v1.12.2][BUG] Test case
Test Encrypted RWO Block Volume Online Expansionfails 14296 - @yangchiu @mantissahz - [BACKPORT][v1.12.2][BUG] Force-deleted pod VolumeAttachment cleanup ignores "Waiting for detach" events (Kubernetes v1.35.9+, v1.36.4+, v1.37) 14218 - @roger-ryao
- [BUG] csi-resizer fails to start with "unrecognized feature gate: RecoverVolumeExpansionFailure" in v1.12.x-head with csi-resizer:v2.3.0 14249 - @c3y1huang @roger-ryao
- [BACKPORT][v1.12.2][BUG] V2 DR volume restore does not retry when backupstore lock is held 14220 - @derekbit @roger-ryao
- [BACKPORT][v1.12.2][BUG] All v1 volume I/O stalls silently with longhorn-engine v1.7.1 through v1.9.2 on Rocky Linux 9.7 / RKE2 (iSCSI login timeout, attach/detach loop); engine v1.7.0 and v1.6.4 work on every platform version 13927 - @davidcheng0922
- [BACKPORT][v1.12.2][BUG] Sharded/EC volume: writes stall to ~0 and wedge the SPDK target on arm64/AIO, blocking volume deletion; plus CSI drops EC StorageClass params 13895 - @c3y1huang @roger-ryao
- [BACKPORT][v1.12.2][BUG] Volume expansion snapshot CR name expand- collides across volumes 13824 - @derekbit @roger-ryao
- [BACKPORT][v1.12.2][BUG] Longhorn v2 engine crashes on large-block reads in interrupt mode - spdk_for_each_channel "Assertion 'false' failed" 14162 - @derekbit @chriscchien
- [BACKPORT][v1.12.2][BUG] v2 volume gets stuck in
Attachingin an IPv6 storage network environment 13955 - @yangchiu @derekbit - [BACKPORT][v1.12.2][BUG] v1.11.3 regenerates the webhook CA on upgrade from an ECDSA (dynamiclistener) CA, deadlocking every longhorn-manager 14192 -
- [BACKPORT][v1.12.2][BUG] SystemBackup fails when a snapshot has an empty status.creationTime 14140 - @yangchiu
- [BACKPORT][v1.12.2][BUG] Longhorn may not reject expansion requests when the volume clone is in-progress 14066 - @yangchiu @shuo-wu
- [BACKPORT][v1.12.2][BUG] invalid block disks should not block Longhorn system uninstallation 13925 - @yangchiu @apoorvajagtap
- [BACKPORT][v1.12.2][BUG] deleting nodes.longhorn.io failed due to KubernetesNodeGone 14029 - @COLDTURNIP @yangchiu
- [BACKPORT][v1.12.2][BUG] v1.12.1 chart: new default-on
networkPolicies.restrictInternalTrafficsilently breaks Prometheus scraping of longhorn-manager (metrics/alerting blackout on patch upgrade) 13741 - @COLDTURNIP @yangchiu - [BACKPORT][v1.12.2][BUG] V2 replica rebuild destination failure faults the entire engine 13780 - @roger-ryao
- [BACKPORT][v1.12.2][BUG] NodeStageVolume can trigger destructive mkfs on existing volume during temporary I/O errors, risking data loss 14060 -
- [BACKPORT][v1.12.2][BUG] Test case
Test V2 Volume Engine Live Switchovermay fail on v1.13.x-head 13987 - @davidcheng0922 @chriscchien - [BACKPORT][v1.12.2][BUG] instance-manager crashes with "concurrent map iteration and map write" in ProcessList (Process.Conditions shared with the response) 14115 - @derekbit @chriscchien
- [BACKPORT][v1.12.2][BUG] SystemRestore job ignores the registry-secret setting 13969 - @chriscchien @bachmanity1
- [BACKPORT][v1.12.2][BUG] DR replicas break 14057 - @derekbit @chriscchien
- [BACKPORT][v1.12.2][BUG] Cloned volume stuck "not ready for workloads" after the clone finishes (v1.12...
Longhorn v1.12.2-rc3
DON'T UPGRADE from/to any RC/Preview/Sprint releases because the operation is not supported.
Resolved Issues in this release
Feature
- [BACKPORT][v1.12.2][FEATURE] Backing image supports IPv6 and dual-stack IP families 14148 - @COLDTURNIP @yangchiu
Improvement
- [BACKPORT][v1.12.2][IMPROVEMENT] Tuning CPU usage of SPDK and nvme-tcp for v2 engine 14443 - @yangchiu @shuo-wu
- [BACKPORT][v1.12.2][IMPROVEMENT] Skip the filesystem sync when suspending the frontend for replica rebuilding 14419 - @derekbit @roger-ryao
- [BACKPORT][v1.12.2][IMPROVEMENT] Sync v2 volume and engine image felds after upgrade 14318 - @davidcheng0922
- [BACKPORT][v1.12.2][IMPROVEMENT] Disk monitor repeatedly logs error when disk health collection fails 14300 - @derekbit
- [BACKPORT][v1.12.2][IMPROVEMENT] CSI ignores EC StorageClass parameters (silent replicated fallback) 13793 - @apoorvajagtap @chriscchien
- [BACKPORT][v1.12.2][IMPROVEMENT] CSI Resize may idle for a long time after volume clone or restore 14108 - @shuo-wu @roger-ryao
- [BACKPORT][v1.12.2][IMPROVEMENT] Enable CPU Isolation for V2 Data Engine 14034 - @derekbit @roger-ryao
- [BACKPORT][v1.12.2][IMPROVEMENT] backup target availability status metric 13981 - @yangchiu
- [BACKPORT][v1.12.2][IMPROVEMENT] (chart) Precedence of image...registry 13738 - @bachmanity1 @roger-ryao
- [BACKPORT][v1.12.2][IMPROVEMENT] v2 volumes: allow configuring the NVMe-TCP initiator I/O queue count (nr-io-queues) 13725 - @hookak @chriscchien
Bug
- [BACKPORT][v1.12.2][BUG] Concurrent unaligned writes during replica rebuild lose data (unlocked read-modify-write in writeInWOMode) 14451 - @yangchiu @derekbit
- [BACKPORT][v1.12.2][BUG] v2 instance-manager is crashed by disk recovery failure in SPDK 14347 - @shuo-wu @chriscchien
- [BACKPORT][v1.12.2][BUG] a rebuilding replica sometimes disappears in the
Engine.Status.ReplicaModeMap13917 - @mantissahz @roger-ryao - [BACKPORT][v1.12.2][BUG] Best-effort zone balancing stalls at 3+1 due to shadowed adjustCount 14452 - @yangchiu
- [BACKPORT][v1.12.2][BUG] Concurrent volume attachments can create multiple NVMe-oF transports and crash spdk_tgt 14400 - @derekbit @chriscchien
- [BACKPORT][v1.12.2][BUG] V2 instance manager live upgrade stuck in relocating-engines because the EngineFrontend switchover keeps retrying promoting against a recreated target engine 14425 - @davidcheng0922 @chriscchien
- [BACKPORT][v1.12.2][BUG] V2 instance-manager
spdk_tgtallocates its hugepages from another pod's hugetlbfs mount (via/host), blocking that pod's teardown 14430 - @yangchiu @derekbit - [BACKPORT][v1.12.2][BUG] A stalled NVMe device makes engine frontends of unrelated v2 volumes fail validation and be recreated 14373 - @hookak @roger-ryao
- [BACKPORT][v1.12.2][BUG] nvme list zombie processes leak when NVMe admin queue returns EAGAIN (v2 data engine) 13764 - @chriscchien
- [BACKPORT][v1.12.2][BUG] SystemBackup stuck in
CreatingVolumeBackupson v1.12.1: controller either silently stops reconciling after all volume backups complete, or loops forever onsnapshot not found(auto-cleanup race) 14375 - @yangchiu @c3y1huang - [BACKPORT][v1.12.2][BUG] v2 spdk_tgt aborts with assertion in blob_insert_cluster_msg due to an extent page race 14370 - @davidcheng0922 @chriscchien
- [BACKPORT][v1.12.2][BUG] Fast replica rebuild skips a snapshot file that was changed by purge/coalesce (stale .img.checksum), leaving the rebuilt replica missing data; snapshot-data-integrity: fast-check does not detect it 14335 - @derekbit @chriscchien
- [BACKPORT][v1.12.2][BUG] Transient status RPC failure marks healthy replica failed and can fault a volume 14332 - @yangchiu
- [BACKPORT][v1.12.2][BUG] Disk health data never collected for V1 filesystem disks whose path is not itself a mount point ("mount path ... not found") 14311 - @derekbit @chriscchien
- [BACKPORT][v1.12.2][BUG] Test case
Test Encrypted RWO Block Volume Online Expansionfails 14296 - @yangchiu @mantissahz - [BACKPORT][v1.12.2][BUG] Force-deleted pod VolumeAttachment cleanup ignores "Waiting for detach" events (Kubernetes v1.35.9+, v1.36.4+, v1.37) 14218 - @roger-ryao
- [BUG] csi-resizer fails to start with "unrecognized feature gate: RecoverVolumeExpansionFailure" in v1.12.x-head with csi-resizer:v2.3.0 14249 - @c3y1huang @roger-ryao
- [BACKPORT][v1.12.2][BUG] V2 DR volume restore does not retry when backupstore lock is held 14220 - @derekbit @roger-ryao
- [BACKPORT][v1.12.2][BUG] All v1 volume I/O stalls silently with longhorn-engine v1.7.1 through v1.9.2 on Rocky Linux 9.7 / RKE2 (iSCSI login timeout, attach/detach loop); engine v1.7.0 and v1.6.4 work on every platform version 13927 - @davidcheng0922
- [BACKPORT][v1.12.2][BUG] Sharded/EC volume: writes stall to ~0 and wedge the SPDK target on arm64/AIO, blocking volume deletion; plus CSI drops EC StorageClass params 13895 - @c3y1huang @roger-ryao
- [BACKPORT][v1.12.2][BUG] Volume expansion snapshot CR name expand- collides across volumes 13824 - @derekbit @roger-ryao
- [BACKPORT][v1.12.2][BUG] Longhorn v2 engine crashes on large-block reads in interrupt mode - spdk_for_each_channel "Assertion 'false' failed" 14162 - @derekbit @chriscchien
- [BACKPORT][v1.12.2][BUG] v2 volume gets stuck in
Attachingin an IPv6 storage network environment 13955 - @yangchiu @derekbit - [BACKPORT][v1.12.2][BUG] v1.11.3 regenerates the webhook CA on upgrade from an ECDSA (dynamiclistener) CA, deadlocking every longhorn-manager 14192 -
- [BACKPORT][v1.12.2][BUG] SystemBackup fails when a snapshot has an empty status.creationTime 14140 - @yangchiu
- [BACKPORT][v1.12.2][BUG] Longhorn may not reject expansion requests when the volume clone is in-progress 14066 - @yangchiu @shuo-wu
- [BACKPORT][v1.12.2][BUG] invalid block disks should not block Longhorn system uninstallation 13925 - @yangchiu @apoorvajagtap
- [BACKPORT][v1.12.2][BUG] deleting nodes.longhorn.io failed due to KubernetesNodeGone 14029 - @COLDTURNIP @yangchiu
- [BACKPORT][v1.12.2][BUG] v1.12.1 chart: new default-on
networkPolicies.restrictInternalTrafficsilently breaks Prometheus scraping of longhorn-manager (metrics/alerting blackout on patch upgrade) 13741 - @COLDTURNIP @yangchiu - [BACKPORT][v1.12.2][BUG] V2 replica rebuild destination failure faults the entire engine 13780 - @roger-ryao
- [BACKPORT][v1.12.2][BUG] NodeStageVolume can trigger destructive mkfs on existing volume during temporary I/O errors, risking data loss 14060 -
- [BACKPORT][v1.12.2][BUG] Test case
Test V2 Volume Engine Live Switchovermay fail on v1.13.x-head 13987 - @davidcheng0922 @chriscchien - [BACKPORT][v1.12.2][BUG] instance-manager crashes with "concurrent map iteration and map write" in ProcessList (Process.Conditions shared with the response) 14115 - @derekbit @chriscchien
- [BACKPORT][v1.12.2][BUG] SystemRestore job ignores the registry-secret setting 13969 - @chriscchien @bachmanity1
- [BACKPORT][v1.12.2][BUG] DR replicas break 14057 - @derekbit @chriscchien
- [BACKPORT][v1.12.2][BUG] Cloned volume stuck "not ready for workloads" after the clone finishes (v1.12.0, v1 engine) 13978 - @yangchiu @chriscchien
- [BACKPORT][v1.12.2][BUG] Test case
test_csi_block_volume_online_expansionfails with 'assert md5sum: == ...' on v2 volume (AMD64 only) 14050 - @derekbit @roger-ryao - [BACKPORT][v1.12.2][BUG] Runtime container images contain development (-devel) packages [...
Longhorn v1.12.2-rc2
DON'T UPGRADE from/to any RC/Preview/Sprint releases because the operation is not supported.
Resolved Issues in this release
Feature
- [BACKPORT][v1.12.2][FEATURE] Backing image supports IPv6 and dual-stack IP families 14148 - @COLDTURNIP @yangchiu
Improvement
- [BACKPORT][v1.12.2][IMPROVEMENT] Sync v2 volume and engine image felds after upgrade 14318 - @davidcheng0922
- [BACKPORT][v1.12.2][IMPROVEMENT] Disk monitor repeatedly logs error when disk health collection fails 14300 - @derekbit
- [BACKPORT][v1.12.2][IMPROVEMENT] CSI ignores EC StorageClass parameters (silent replicated fallback) 13793 - @apoorvajagtap @chriscchien
- [BACKPORT][v1.12.2][IMPROVEMENT] CSI Resize may idle for a long time after volume clone or restore 14108 - @shuo-wu @roger-ryao
- [BACKPORT][v1.12.2][IMPROVEMENT] Enable CPU Isolation for V2 Data Engine 14034 - @derekbit @roger-ryao
- [BACKPORT][v1.12.2][IMPROVEMENT] backup target availability status metric 13981 - @yangchiu
- [BACKPORT][v1.12.2][IMPROVEMENT] (chart) Precedence of image...registry 13738 - @bachmanity1 @roger-ryao
- [BACKPORT][v1.12.2][IMPROVEMENT] v2 volumes: allow configuring the NVMe-TCP initiator I/O queue count (nr-io-queues) 13725 - @hookak @chriscchien
Bug
- [BACKPORT][v1.12.2][BUG] Concurrent volume attachments can create multiple NVMe-oF transports and crash spdk_tgt 14400 - @derekbit @roger-ryao
- [BACKPORT][v1.12.2][BUG] A stalled NVMe device makes engine frontends of unrelated v2 volumes fail validation and be recreated 14373 - @hookak @roger-ryao
- [BACKPORT][v1.12.2][BUG] nvme list zombie processes leak when NVMe admin queue returns EAGAIN (v2 data engine) 13764 - @chriscchien
- [BACKPORT][v1.12.2][BUG] SystemBackup stuck in
CreatingVolumeBackupson v1.12.1: controller either silently stops reconciling after all volume backups complete, or loops forever onsnapshot not found(auto 8BD0 -cleanup race) 14375 - @yangchiu @c3y1huang - [BACKPORT][v1.12.2][BUG] v2 spdk_tgt aborts with assertion in blob_insert_cluster_msg due to an extent page race 14370 - @davidcheng0922 @chriscchien
- [BACKPORT][v1.12.2][BUG] v2 instance-manager is crashed by disk recovery failure in SPDK 14347 - @shuo-wu
- [BACKPORT][v1.12.2][BUG] Fast replica rebuild skips a snapshot file that was changed by purge/coalesce (stale .img.checksum), leaving the rebuilt replica missing data; snapshot-data-integrity: fast-check does not detect it 14335 - @derekbit @chriscchien
- [BACKPORT][v1.12.2][BUG] Transient status RPC failure marks healthy replica failed and can fault a volume 14332 - @yangchiu
- [BACKPORT][v1.12.2][BUG] Disk health data never collected for V1 filesystem disks whose path is not itself a mount point ("mount path ... not found") 14311 - @derekbit @chriscchien
- [BACKPORT][v1.12.2][BUG] Test case
Test Encrypted RWO Block Volume Online Expansionfails 14296 - @yangchiu @mantissahz - [BACKPORT][v1.12.2][BUG] Force-deleted pod VolumeAttachment cleanup ignores "Waiting for detach" events (Kubernetes v1.35.9+, v1.36.4+, v1.37) 14218 - @roger-ryao
- [BUG] csi-resizer fails to start with "unrecognized feature gate: RecoverVolumeExpansionFailure" in v1.12.x-head with csi-resizer:v2.3.0 14249 - @c3y1huang @roger-ryao
- [BACKPORT][v1.12.2][BUG] V2 DR volume restore does not retry when backupstore lock is held 14220 - @derekbit @roger-ryao
- [BACKPORT][v1.12.2][BUG] All v1 volume I/O stalls silently with longhorn-engine v1.7.1 through v1.9.2 on Rocky Linux 9.7 / RKE2 (iSCSI login timeout, attach/detach loop); engine v1.7.0 and v1.6.4 work on every platform version 13927 - @davidcheng0922
- [BACKPORT][v1.12.2][BUG] Sharded/EC volume: writes stall to ~0 and wedge the SPDK target on arm64/AIO, blocking volume deletion; plus CSI drops EC StorageClass params 13895 - @c3y1huang @roger-ryao
- [BACKPORT][v1.12.2][BUG] Volume expansion snapshot CR name expand- collides across volumes 13824 - @derekbit @roger-ryao
- [BACKPORT][v1.12.2][BUG] a rebuilding replica sometimes disappears in the
Engine.Status.ReplicaModeMap13917 - @mantissahz @roger-ryao - [BACKPORT][v1.12.2][BUG] Longhorn v2 engine crashes on large-block reads in interrupt mode - spdk_for_each_channel "Assertion 'false' failed" 14162 - @derekbit @chriscchien
- [BACKPORT][v1.12.2][BUG] v2 volume gets stuck in
Attachingin an IPv6 storage network environment 13955 - @yangchiu @derekbit - [BACKPORT][v1.12.2][BUG] v1.11.3 regenerates the webhook CA on upgrade from an ECDSA (dynamiclistener) CA, deadlocking every longhorn-manager 14192 -
- [BACKPORT][v1.12.2][BUG] SystemBackup fails when a snapshot has an empty status.creationTime 14140 - @yangchiu
- [BACKPORT][v1.12.2][BUG] Longhorn may not reject expansion requests when the volume clone is in-progress 14066 - @yangchiu @shuo-wu
- [BACKPORT][v1.12.2][BUG] invalid block disks should not block Longhorn system uninstallation 13925 - @yangchiu @apoorvajagtap
- [BACKPORT][v1.12.2][BUG] deleting nodes.longhorn.io failed due to KubernetesNodeGone 14029 - @COLDTURNIP @yangchiu
- [BACKPORT][v1.12.2][BUG] v1.12.1 chart: new default-on
networkPolicies.restrictInternalTrafficsilently breaks Prometheus scraping of longhorn-manager (metrics/alerting blackout on patch upgrade) 13741 - @COLDTURNIP @yangchiu - [BACKPORT][v1.12.2][BUG] V2 replica rebuild destination failure faults the entire engine 13780 - @roger-ryao
- [BACKPORT][v1.12.2][BUG] NodeStageVolume can trigger destructive mkfs on existing volume during temporary I/O errors, risking data loss 14060 -
- [BACKPORT][v1.12.2][BUG] Test case
Test V2 Volume Engine Live Switchovermay fail on v1.13.x-head 13987 - @davidcheng0922 @chriscchien - [BACKPORT][v1.12.2][BUG] instance-manager crashes with "concurrent map iteration and map write" in ProcessList (Process.Conditions shared with the response) 14115 - @derekbit @chriscchien
- [BACKPORT][v1.12.2][BUG] SystemRestore job ignores the registry-secret setting 13969 - @chriscchien @bachmanity1
- [BACKPORT][v1.12.2][BUG] DR replicas break 14057 - @derekbit @chriscchien
- [BACKPORT][v1.12.2][BUG] Cloned volume stuck "not ready for workloads" after the clone finishes (v1.12.0, v1 engine) 13978 - @yangchiu @chriscchien
- [BACKPORT][v1.12.2][BUG] Test case
test_csi_block_volume_online_expansionfails with 'assert md5sum: == ...' on v2 volume (AMD64 only) 14050 - @derekbit @roger-ryao - [BACKPORT][v1.12.2][BUG] Runtime container images contain development (-devel) packages 14051 -
- [BACKPORT][v1.12.2][BUG] Adding V2 disk using the "Default Data Path" /dev/disk/by-id/scsi-* path fails 13870 - @davidcheng0922 @roger-ryao
- [BACKPORT][v1.12.2][BUG] Request Schema in Upgrade Responder is Outdate 14049 - @mantissahz @roger-ryao
- [BACKPORT][v1.12.2][BUG] v1 replica rebuild fails after a single gRPC TCP keepalive is lost 13768 - @chriscchien
- [BACKPORT][v1.12.2][BUG] test
test_single_replica_failed_during_engine_startfails 13862 - @davidcheng0922 - [BACKPORT][v1.12.2][BUG] Test case
V2 Volume Should Cleanup Resources When Instance Manager Is Deletedfails 13988 - @roger-ryao @carterli0407-cell - [BACKPORT][v1.12.2][BUG] v2 volume expansion is reported complete before the frontend dm device is resized 14002 - @derekbit @chriscchien
- [BACKPORT][v1.12.2][BUG] Terminal workload pods cause NodePublishVolume to abort with "no Pending workload pods" [13995](https://gi...
Longhorn v1.12.2-rc1
DON'T UPGRADE from/to any RC/Preview/Sprint releases because the operation is not supported.
Resolved Issues in this release
Feature
- [BACKPORT][v1.12.2][FEATURE] Backing image supports IPv6 and dual-stack IP families 14148 - @COLDTURNIP @yangchiu
Improvement
- [BACKPORT][v1.12.2][IMPROVEMENT] CSI ignores EC StorageClass parameters (silent replicated fallback) 13793 - @apoorvajagtap @chriscchien
- [BACKPORT][v1.12.2][IMPROVEMENT] CSI Resize may idle for a long time after volume clone or restore 14108 - @shuo-wu @roger-ryao
- [BACKPORT][v1.12.2][IMPROVEMENT] Enable CPU Isolation for V2 Data Engine 14034 - @derekbit @roger-ryao
- [BACKPORT][v1.12.2][IMPROVEMENT] backup target availability status metric 13981 - @yangchiu
- [BACKPORT][v1.12.2][IMPROVEMENT] (chart) Precedence of image...registry 13738 - @bachmanity1 @roger-ryao
- [BACKPORT][v1.12.2][IMPROVEMENT] v2 volumes: allow configuring the NVMe-TCP initiator I/O queue count (nr-io-queues) 13725 - @hookak @chriscchien
Bug
- [BACKPORT][v1.12.2][BUG] Force-deleted pod VolumeAttachment cleanup ignores "Waiting for detach" events (Kubernetes v1.35.9+, v1.36.4+, v1.37) 14218 - @roger-ryao
- [BUG] csi-resizer fails to start with "unrecognized feature gate: RecoverVolumeExpansionFailure" in v1.12.x-head with csi-resizer:v2.3.0 14249 - @c3y1huang @roger-ryao
- [BACKPORT][v1.12.2][BUG] V2 DR volume restore does not retry when backupstore lock is held 14220 - @derekbit @roger-ryao
- [BACKPORT][v1.12.2][BUG] All v1 volume I/O stalls silently with longhorn-engine v1.7.1 through v1.9.2 on Rocky Linux 9.7 / RKE2 (iSCSI login timeout, attach/detach loop); engine v1.7.0 and v1.6.4 work on every platform version 13927 - @davidcheng0922
- [BACKPORT][v1.12.2][BUG] Sharded/EC volume: writes stall to ~0 and wedge the SPDK target on arm64/AIO, blocking volume deletion; plus CSI drops EC StorageClass params 13895 - @c3y1huang @roger-ryao
- [BACKPORT][v1.12.2][BUG] Volume expansion snapshot CR name expand- collides across volumes 13824 - @derekbit @roger-ryao
- [BACKPORT][v1.12.2][BUG] a rebuilding replica sometimes disappears in the
Engine.Status.ReplicaModeMap13917 - @mantissahz @roger-ryao - [BACKPORT][v1.12.2][BUG] Longhorn v2 engine crashes on large-block reads in interrupt mode - spdk_for_each_channel "Assertion 'false' failed" 14162 - @derekbit @chriscchien
- [BACKPORT][v1.12.2][BUG] v2 volume gets stuck in
Attachingin an IPv6 storage network environment 13955 - @yangchiu @derekbit - [BACKPORT][v1.12.2][BUG] v1.11.3 regenerates the webhook CA on upgrade from an ECDSA (dynamiclistener) CA, deadlocking every longhorn-manager 14192 -
- [BACKPORT][v1.12.2][BUG] SystemBackup fails when a snapshot has an empty status.creationTime 14140 - @yangchiu
- [BACKPORT][v1.12.2][BUG] Longhorn may not reject expansion requests when the volume clone is in-progress 14066 - @yangchiu @shuo-wu
- [BACKPORT][v1.12.2][BUG] invalid block disks should not block Longhorn system uninstallation 13925 - @yangchiu @apoorvajagtap
- [BACKPORT][v1.12.2][BUG] deleting nodes.longhorn.io failed due to KubernetesNodeGone 14029 - @COLDTURNIP @yangchiu
- [BACKPORT][v1.12.2][BUG] v1.12.1 chart: new default-on
networkPolicies.restrictInternalTrafficsilently breaks Prometheus scraping of longhorn-manager (metrics/alerting blackout on patch upgrade) 13741 - @COLDTURNIP @yangchiu - [BACKPORT][v1.12.2][BUG] V2 replica rebuild destination failure faults the entire engine 13780 - @roger-ryao
- [BACKPORT][v1.12.2][BUG] NodeStageVolume can trigger destructive mkfs on existing volume during temporary I/O errors, risking data loss 14060 -
- [BACKPORT][v1.12.2][BUG] Test case
Test V2 Volume Engine Live Switchovermay fail on v1.13.x-head 13987 - @davidcheng0922 @chriscchien - [BACKPORT][v1.12.2][BUG] instance-manager crashes with "concurrent map iteration and map write" in ProcessList (Process.Conditions shared with the response) 14115 - @derekbit @chriscchien
- [BACKPORT][v1.12.2][BUG] SystemRestore job ignores the registry-secret setting 13969 - @chriscchien @bachmanity1
- [BACKPORT][v1.12.2][BUG] DR replicas break 14057 - @derekbit @chriscchien
- [BACKPORT][v1.12.2][BUG] Cloned volume stuck "not ready for workloads" after the clone finishes (v1.12.0, v1 engine) 13978 - @yangchiu @chriscchien
- [BACKPORT][v1.12.2][BUG] Test case
test_csi_block_volume_online_expansionfails with 'assert md5sum: == ...' on v2 volume (AMD64 only) 14050 - @derekbit @roger-ryao - [BACKPORT][v1.12.2][BUG] nvme list zombie processes leak when NVMe admin queue returns EAGAIN (v2 data engine) 13764 -
- [BACKPORT][v1.12.2][BUG] Runtime container images contain development (-devel) packages 14051 -
- [BACKPORT][v1.12.2][BUG] Adding V2 disk using the "Default Data Path" /dev/disk/by-id/scsi-* path fails 13870 - @davidcheng0922 @roger-ryao
- [BACKPORT][v1.12.2][BUG] Request Schema in Upgrade Responder is Outdate 14049 - @mantissahz @roger-ryao
- [BACKPORT][v1.12.2][BUG] v1 replica rebuild fails after a single gRPC TCP keepalive is lost 13768 - @chriscchien
- [BACKPORT][v1.12.2][BUG] test
test_single_replica_failed_during_engine_startfails 13862 - @davidcheng0922 - [BACKPORT][v1.12.2][BUG] Test case
V2 Volume Should Cleanup Resources When Instance Manager Is Deletedfails 13988 - @roger-ryao @carterli0407-cell - [BACKPORT][v1.12.2][BUG] v2 volume expansion is reported complete before the frontend dm device is resized 14002 - @derekbit @chriscchien
- [BACKPORT][v1.12.2][BUG] Terminal workload pods cause NodePublishVolume to abort with "no Pending workload pods" 13995 - @yangchiu
- [BACKPORT][v1.12.2][BUG] v1 engine never starts: a stale
stoppedprocess record makes createInstance a silent no-op, volume stuck inattachingforever 13850 - @derekbit @roger-ryao - [BACKPORT][v1.12.2][BUG] v1.12.1 default NetworkPolicies miss legitimate non-pod-labeled and host-originated callers, silently breaking CSI attach/detach 13804 - @COLDTURNIP @roger-ryao
- [BACKPORT][v1.12.2][BUG] Recurring-job pods report success after startup or volume execution errors 13752 - @christophersherman @roger-ryao
- [BACKPORT][v1.12.2][BUG] Test case
Power Off Replica Node Should Not Rebuild New Replica On Same Nodefails 13819 - @yangchiu @derekbit - [BACKPORT][v1.12.2][BUG] V1 volumes not rebuilding after cluster shutdown 13751 - @COLDTURNIP @yangchiu
Performance
- [BACKPORT][v1.12.2][IMPROVEMENT] nsmounter: kubelet PID lookup on Talos takes seconds per call 14174 - @yangchiu
Resilience
- [BACKPORT][v1.12.2][BUG] V2 instance-manager liveness probe errors ('test: -eq: unary operator expected') -> self-kill -> node-wide replica fault under rebuild load 13959 - @yangchiu @mantissahz
- [BACKPORT][v1.12.2][BUG] V2 Instance Manager panics in backupstore when S3 volume.cfg is missing, taking all node volumes offline 13805 - @mantissahz @chriscchien
Stability
- [BACKPORT][v1.12.2][BUG] Recurring snapshot-cleanup aborts the entire run when any volume's replica is rebuilding 13781 - @derekbit @chriscchien
- [BACKPORT][v1.12.2][BUG] V2 backup readers race snapshot cleanup and panic the instance manager 14021 - @yangchiu
- [BACKPORT][v1.12.2][IMPROVEMENT] Avoid re-sending an unchanged Node status update 14145 - @hookak @chriscchien
- [BACKPORT][v1.12.2][IMPRO...
Longhorn v1.13.0
Longhorn v1.13.0 Release Notes
The Longhorn team is excited to announce the release of Longhorn v1.13.0. This feature release brings live upgrade to the V2 Data Engine, which reached general availability in v1.12.0. V2 volumes can now stay attached while Longhorn is upgraded, as long as your cluster meets the live upgrade prerequisites.
Longhorn v1.13.0 also introduces full interrupt mode for the V2 Data Engine, volume group snapshots, age-based retention for recurring jobs, topology-constrained replica scheduling, a scheduler extender, and the longhorn-global-manager Deployment that lowers control-plane overhead in large clusters.
For terminology and background on Longhorn releases, see Releases.
Breaking Changes
Kubernetes v1.34 Minimum Version
Because the CSI external-provisioner is upgraded to v6.3.0, all clusters must be running Kubernetes v1.34 or later before installing or upgrading to Longhorn v1.13.0.
Legacy V2 Linked-Clone Volumes
Since v1.12.1, V2 linked-clone volumes created in Longhorn v1.12.0 or earlier can only be detached or deleted. To replace one, create a new linked clone from the same source volume; no data copy is required.
Primary Highlights
V2 Data Engine
The V2 Data Engine became generally available in Longhorn v1.12.0. Longhorn v1.13.0 adds live upgrade and full interrupt mode, and enables CPU isolation by default for new installations.
Important
V2 Volume Attach Latency at Scale:
In clusters with many attached V2 volumes, attaching additional volumes takes longer. The root cause is under investigation. For follow-up status, see Issue #13241.
ARM64 NVMe-backed Block-Type Node Disk Limitation:
On ARM64 systems, V2 volumes may experience stuck I/O when SPDK is configured with two or more CPU cores and node disks use the NVMe driver. The root cause is under investigation. As a workaround, use AIO-backed node disks instead of NVMe-backed node disks on ARM64 systems. For follow-up status, see Issue #13243.
UBLK Frontend Kernel Limitation:
The UBLK frontend for V2 Data Engine volumes remains experimental. On kernel v6.17, attaching a UBLK volume can cause a kernel panic. Do not use the UBLK frontend on this kernel version. For more information, see Issue #13509 and UBLK Frontend Support.
For the expected behavior differences between V1 and V2 volumes and the feature support matrix, see V1 and V2 Volume Feature Support.
Live Upgrade
Longhorn v1.13.0 supports live upgrade of V2 volumes, so the V2 instance managers can be upgraded without detaching the volumes, preventing disruption during Longhorn upgrades. For more information, see V2 Data Engine Instance Manager Upgrade.
Important
Upgrade path:
V2 live upgrade to v1.13.0 is supported only from Longhorn v1.12.2. When upgrading from v1.12.0 or v1.12.1, or when the prerequisites are not met, detach all V2 volumes and ensure their replicas are stopped before upgrading.
Full Interrupt Mode
In Longhorn v1.13.0, interrupt mode for the V2 Data Engine is now fully event-driven. SPDK reactors wait for I/O events instead of polling continuously, with only low-frequency background checks remaining, significantly reducing CPU usage for idle or low I/O workloads. This improves the hybrid implementation introduced in v1.10.0, which still incurred a minimal, constant CPU load when volumes were idle. As before, interrupt mode may introduce slightly higher I/O latency than polling mode under sustained high-throughput workloads.
Polling mode remains the default. To switch, set data-engine-interrupt-mode-enabled to {"v2":"true"} while no V2 volumes are attached. For more information, see Interrupt Mode Support.
CPU Isolation Enabled by Default
CPU isolation keeps interrupts and other kernel background work off the CPU cores used by the V2 Data Engine. Longhorn v1.13.0 sets data-engine-cpu-isolation-enabled to {"v2":"true"} by default for new installations; clusters upgraded from v1.12.x keep their existing value and can opt in by setting it to {"v2":"true"}. CPU isolation applies only in polling mode; Longhorn skips it automatically when interrupt mode is enabled. For more information, see Data Engine CPU Isolation Enabled.
GitHub Issue #13724, GitHub Issue #13973
Fast Volume Cloning
Since v1.12.1, fast volume cloning for the V2 Data Engine has used a linked-clone architecture: a linked-clone volume shares data blocks with its source instead of copying them. One source volume can back multiple linked clones. Linked-clone volumes support most operations available to regular volumes, including snapshots, expansion, replica rebuilding, backup, and use as the source of nested linked clones. Starting with v1.13.0, V2 linked-clone volumes also support restore operations. For more information, see Volume Clone Support.
Storage Sharding (Experimental)
Introduced in v1.12.1, storage sharding is an experimental V2 Data Engine feature. Instead of keeping a full copy of the volume on every replica, it splits written data into data and parity chunks and spreads them across nodes. A volume can then be larger than any single disk or node, and tolerate the same number of failures with less disk space.
Sharded volumes do not support backup and restore, volume cloning, backing images, disaster recovery (DR) volumes, or live migration. This feature is for evaluation and testing only and is not recommended for production. For more information, see Sharding with Erasure Coding.
SPDK iobuf Pool Size Configuration
Introduced in v1.12.1, the data-engine-iobuf-large-pool-size and data-engine-iobuf-small-pool-size settings control the size of the SPDK buffer pools used by the V2 Data Engine. Larger pools help avoid running out of buffers under high-queue-depth workloads. Because the pools are sized when SPDK starts, changing either setting recreates V2 instance manager pods that have no running engines or replicas.
GitHub Issue #13322, GitHub Issue #13674
Snapshots and Backups
Volume Group Snapshot Support
Longhorn v1.13.0 makes it easier to protect related volumes by letting you snapshot a group of volumes with a single request from the Longhorn UI, kubectl, or Kubernetes VolumeGroupSnapshot objects through CSI. The CSI path, which is disabled by default, also supports group backups.
Note
Snapshot Consistency: Each member volume is snapshotted independently, so the group is not captured at a single point in time. Application-level consistency across the group is future work (Issue #2128).
For more information, see Create a Snapshot Group and Enable CSI Volume Group Snapshot Support.
Age-Based Retention for Recurring Jobs
Longhorn v1.13.0 adds an age-based retention policy for snapshot, backup, and system backup recurring jobs, letting you retain data based on its age instead of the number of items. Set retentionPolicy to age-based and retainAge to a duration such as 720h; each run deletes snapshots or backups older than the specified age. The count-based policy remains the default, and existing recurring jobs are unchanged after the upgrade.
Smarter Scheduling
Volume Topology Constraint
Longhorn v1.13.0 adds the volumeTopology StorageClass parameter (any, zonal, or regional) to keep a volume's replicas within the zone or region where it was provisioned, including during rebuilds and replica count changes, so replicas stay close to the workload. Previously, zone labels only spread replicas across zones; a rebuild could still place a replica in a different zone from the workload. For more information, see [Topology-Aware Provisioni...
Longhorn v1.12.1
Longhorn v1.12.1 Release Notes
Longhorn v1.12.1 introduces V2 Data Engine fast volume cloning and storage sharding (experimental), along with important improvements and bug fixes that enhance system quality, resilience, stability, and security.
We welcome feedback and contributions to help continuously improve Longhorn.
For terminology and context on Longhorn releases, see Releases.
Breaking Changes
Deprecation of Legacy V2 Linked Clone Volumes
V2 linked-clone volumes created in v1.12.0 or earlier are marked as legacy and deprecated starting in v1.12.1. The new linked-clone architecture introduced in Issue #12552 is not compatible with the legacy design.
After upgrading to v1.12.1, legacy linked-clone volumes cannot be operated on except for detachment and deletion.
To replace, create new linked-clone volumes from the same source volumes that back the legacy ones. As long as a legacy volume exists, its source volume is guaranteed to still be present, so you can create a replacement linked clone directly; no data copy is required.
For more information, see Issue #12552.
Highlighted Features
Fast Volume Cloning
Longhorn v1.12.1 enhances fast volume cloning for the V2 Data Engine. A linked-clone volume shares data blocks with its source instead of copying data. With the new architecture, a source replica can share its data blocks with multiple linked-clone volumes, and multiple clone replicas can be created in parallel.
Linked-clone volumes now support most operations available to regular volumes, including snapshots, expansion, replica rebuilding, and use as the source of nested linked clones.
For more information, see Issue #12552 and CSI Volume Clone.
Note
V2 fast cloning does not currently support volume backup and restore. This improvement is tracked in Issue #13714.
Storage Sharding (Experimental)
Longhorn v1.12.1 introduces storage sharding as an experimental data protection and storage layout feature built on the V2 Data Engine. Instead of storing a full copy of the volume on each replica, sharding uses erasure coding to encode written data into data and parity chunks, which are distributed across multiple nodes. This allows a volume to grow beyond the capacity of a single disk or node while using less disk space to achieve the same level of fault tolerance.
Because this feature is experimental, it is intended for evaluation and testing only and is not recommended for production use.
For more information, see Issue #1061 and Sharding with Erasure Coding.
Important Improvements and Fixes
This release includes several important improvements and critical stability fixes.
Internal Network Policies
Longhorn v1.12.1 enables ingress NetworkPolicy resources for internal component endpoints and RPCs by default to improve security by restricting access to Longhorn internal services, including the instance-manager gRPC endpoint used for engine control. These policies only take effect when a NetworkPolicy provider is available in the cluster.
Longhorn has validated the internal network policies with the following Kubernetes distribution and CNI plugin combinations. See the CNI Plugin Compatibility table for the validated combinations. The minimum required Kubernetes version is v1.25.
For more information and troubleshooting guidance, see Internal Network Policies and Issue #13438.
Note
ServiceMonitor discovery does not automatically authorize network traffic. Cross-namespace Prometheus scrapers might be blocked by the Longhorn Manager's network policy. To allow this traffic, apply a scoped additive policy as detailed in the Prometheus and Grafana setup guide.
Instance Manager gRPC mTLS Coverage
In previous versions, mutual TLS (mTLS) for the instance-manager gRPC endpoint only covered the instance and proxy services when the longhorn-grpc-tls secret was configured. Other services, including the disk service and the SPDK service, accepted plaintext connections.
Longhorn v1.12.1 extends mTLS to all remaining instance-manager gRPC services, so every gRPC port now requires a valid client certificate when the longhorn-grpc-tls secret is configured.
For more information, see Issue #7787.
CPU Core Allocation with the Kubernetes CPU Manager
Longhorn v1.12.1 can allocate exclusive CPU cores to the SPDK target daemon, which runs in each V2 Instance Manager pod, through the Kubernetes CPU Manager by using the data-engine-number-of-cpu-cores setting.
The setting can be applied only when the kubelet CPU Manager policy is set to static on all worker nodes; otherwise, the update is rejected. When the value is positive, it takes precedence, and data-engine-cpu-mask is ignored.
For more information, see Issue #13248.
Host CPU Isolation
The data-engine-cpu-isolation-enabled setting now also configures host network Receive Packet Steering (RPS) to steer RX softirq processing away from the CPU cores used by the SPDK target daemon, in addition to hardware IRQs and unbound kernel workqueue workers. Without this, the kernel can distribute incoming network packets to the SPDK reactor cores, and the resulting softirq work competes with the reactor's busy-poll loop, degrading volume I/O under network load.
For more information, see Issue #13483 and Issue #13502.
V2 Data Engine SPDK iobuf Pool Size Configuration
Longhorn v1.12.1 allows tuning the SPDK iobuf buffer pools used by the V2 Data Engine. The data-engine-iobuf-large-pool-size and data-engine-iobuf-small-pool-size settings configure the large and 8 KiB small buffer pools, respectively. Increasing the small pool can relieve buffer exhaustion under high-queue-depth workloads with small I/O sizes. Because iobuf pools can only be sized at SPDK target startup, changing either setting recreates V2 Instance Manager pods that have no running instances.
For more information, see Issue #13322 and Issue #13674.
Encrypted Volume Size Correction
Longhorn reserves an additional 16 MiB of raw capacity for the LUKS2 metadata used by encrypted volumes, allowing the mapped device to expose the full capacity requested by the workload. Previously, the metadata was taken from usable capacity, so a requested 1 GiB encrypted volume exposed only 1008 MiB. This discrepancy could cause operations such as block-level copies between equally sized unencrypted and encrypted volumes to fail.
- V1 Data Engine: This correction was introduced in Longhorn v1.12.0. Existing encrypted V1 volumes created with v1.11.x or earlier receive the additional capacity automatically when their engine image is upgraded to v1.12 or later. Encrypted migratable V1 volumes cannot be live-migrated until they are upgraded to the version (>= v1.12.0).
- V2 Data Engine: Longhorn v1.12.1 applies the correction to newly created encrypted V2 volumes.
Note
Encrypted V2 volumes created before v1.12.1, and volumes restored from the backup of such volumes, do not receive the additional 16 MiB of raw capacity and continue to expose 16 MiB less than requested. Existing data is preserved.
For more information, see Issue #9205 and Issue #13163.
Installation
Important
Ensure that your cluster is running Kubernetes v1.25 or later before installing Longhorn v1.12.1.
You can install Longhorn using a variety of tools, including Rancher, Kubectl, and Helm. For more information about installation methods and requirements, see Quick Installation in the Longhorn documentation.
Upgrade
Important
Ensure that your cluster is running Kubernetes v1.25 or later before installing Longhorn v1.12.1.
Longhorn only allows upgrades from supported versions. For more information about upgrade paths and procedures, see Upgrade in the Longhorn documentation.
Post-Release Known Issues
For information about issues identified after this release, see Release-Known-Issues.
Resolved Issues in this release
Highlight
- [BACKPORT][v1.12.1][UI][FEATURE] V2 Data Engine Fast Cloning 13672 - @shuo-wu @roger-ryao
- [BACKPORT][v1.12.1][FEATURE] V2 Data Engine Sharding - Experimental 13176 - @c3y1huang @chriscchien
- [BACKPORT][v1.12.1][FEATURE] V2 Data Engine Fast Cloning 13174 - @shuo-wu @roger-ryao
Feature
- [BACKPORT][v1.12.1][FEATURE] Support Kubernetes CPU Manager for Longhorn V2 instance-mana...
Longhorn v1.12.1-rc4
DON'T UPGRADE from/to any RC/Preview/Sprint releases because the operation is not supported.
Resolved Issues in this release
Highlight
- [BACKPORT][v1.12.1][UI][FEATURE] V2 Data Engine Fast Cloning 13672 - @shuo-wu @roger-ryao
- [BACKPORT][v1.12.1][FEATURE] V2 Data Engine Sharding - Experimental 13176 - @c3y1huang @chriscchien
- [BACKPORT][v1.12.1][FEATURE] V2 Data Engine Fast Cloning 13174 - @shuo-wu @roger-ryao
Feature
- [BACKPORT][v1.12.1][FEATURE] Support Kubernetes CPU Manager for Longhorn V2 instance-manager SPDK CPU assignment 13320 - @yangchiu @mantissahz @Copilot
Improvement
- [BACKPORT][v1.12.1][IMPROVEMENT] Improve V2 Engine Frontend Handoff Tolerance in Split Topology 13569 - @davidcheng0922 @chriscchien
- [BACKPORT][v1.12.1][IMPROVEMENT] Allow configuring SPDK iobuf small pool size 13675 - @yangchiu @hookak
- [BACKPORT][v1.12.1][IMPROVEMENT] go-common-libs: kill the child process when command execution times out 13621 - @hookak
- [BACKPORT][v1.12.1][IMPROVEMENT] always setup NetworkPolicy for the internal communication 13439 - @COLDTURNIP @roger-ryao
- [BACKPORT][v1.12.1][IMPROVEMENT] Allow persisting number of hugepages using
longhornctl13535 - @chriscchien @bachmanity1 - [BACKPORT][v1.12.1][IMPROVEMENT] Steer host RPS away from SPDK reactor cores 13502 - @bachmanity1 @roger-ryao
- [BACKPORT][v1.12.1][IMPROVEMENT] updateBackupCompressionMethod may write the Volume even when the method is unchanged 13480 - @yangchiu
- [BACKPORT][v1.12.1][IMPROVEMENT] Add metrics to collect information about V2 data engine usage 13262 - @derekbit @chriscchien
- [BACKPORT][v1.12.1][IMPROVEMENT] Improving error transparency for volume attachment failure 13431 - @derekbit @chriscchien
- [BACKPORT][v1.12.1][IMPROVEMENT] Allow configuring SPDK iobuf large pool size 13415 - @chriscchien @bachmanity1
- [BACKPORT][v1.12.1][IMPROVEMENT] V2 volume write I/O stalls(~10s) when a replica is removed during migration 13310 - @hookak @chriscchien
- [BACKPORT][v1.12.1][IMPROVEMENT] Support mTLS encrypted communication for remaining gRPC services in instance manager 13299 - @COLDTURNIP @yangchiu
- [BACKPORT][v1.12.1][IMPROVEMENT] Add metrics to collect information about LONGHORN_DISTRO 13253 - @derekbit @chriscchien
Bug
- [BACKPORT][v1.12.1][BUG] Host OS nvmf-autoconnect connects kernel initiators to v2 replica subsystems, stalling volume attach/detach for minutes 13660 - @hookak @chriscchien
- [BACKPORT][v1.12.1][BUG] Longhorn Helm Chart NetworkPolicies do not honor new RKE2 "rke2-traefik" ingress controller 13665 - @COLDTURNIP @roger-ryao
- [BACKPORT][v1.12.1][BUG] Longhorn may try to attach volumes to a node without valid IM pod during the clone 13640 - @yangchiu @shuo-wu
- [BACKPORT][v1.12.1][BUG] Test case
test_volume_scheduling_failurefails on v2 volumes 13656 - @yangchiu @c3y1huang - [BACKPORT][v1.12.1][BUG] v2 volumes might get stuck in
deletingstate 13586 - @davidcheng0922 - [BACKPORT][v1.12.1][BUG]
Backup Listing With More Than 1000 Backupsfails on v2 volume due to an empty replica address in the backup status 13612 - @COLDTURNIP @chriscchien - [BACKPORT][v1.12.1][BUG] Encrypted rwo volume stuck in
attachedstate and cannotdetachwhen a privileged pod with host /var/run mounted exists on the same node. 13604 - - [BACKPORT][v1.12.1][BUG] Incorrect Web Link in GUI 13539 - @yangchiu @sushant-suse
- [BACKPORT][v1.12.1][BUG] Encrypted V2 volume size is 16MB short of the claimed size 13175 - @mantissahz @roger-ryao
- [BACKPORT][v1.12.1][BUG] CSI pods do not respect anti-affinity preset update 13548 - @chriscchien @carterli0407-cell
- [BACKPORT][v1.12.1][BUG] Failed to add v2 block disk with virtio-scsi BDF path 13475 - @chriscchien @carterli0407-cell
- [BACKPORT][v1.12.1][BUG] V2 encrypted volume keeps switching between Attaching and Detaching state after expand operation 13562 - @mantissahz @roger-ryao
- [BACKPORT][v1.12.1][BUG] V1 volumes not rebuilding after cluster shutdown 13583 - @COLDTURNIP
- [BACKPORT][v1.12.1][BUG] GCS backup target: backup of large volume fails at final .cfg PUT with SignatureDoesNotMatch (residual of #12676 in v1.12.0) 13574 - @derekbit @chriscchien
- [BACKPORT][v1.12.1][BUG] Can not use v2 volume as block disk 13564 - @davidcheng0922
- [BACKPORT][v1.12.1][BUG] Fail to restore a volume from a full backup if a previous backup is corrupted 13538 - @yangchiu @derekbit
- [BACKPORT][v1.12.1][BUG] Test case
Recurring Job Pod Should Not Crashfails 13568 - @yangchiu @c3y1huang - [BACKPORT][v1.12.1][BUG] Longhorn 1.12.0: AWS chunked encoding not supported with OCI S3 buckets 13478 - @derekbit @mantissahz @roger-ryao
- [BACKPORT][v1.12.1][BUG] Adding V2 disk using /dev/disk/by-path/scsi-* path fails 13559 - @carterli0407-cell
- [BACKPORT][v1.12.1][BUG] When using v2-data-engine, the virtio-scsi virtual disk is not recognized as a block device, returning the error: "not a block device: exit status 32". 13560 - @carterli0407-cell
- [BACKPORT][v1.12.1][BUG] Error logs in longhorn-uninstall job 13549 - @yangchiu @c3y1huang
- [BACKPORT][v1.12.1][BUG] go-spdk-helper JSON-RPC client leaks pending-request bookkeeping forever when a response never arrives after timeout 13554 -
- [BACKPORT][v1.12.1][BUG] V2 Data Engine: UBLK fails with EINVAL on Linux kernel 6.17.0 13274 - @chriscchien @carterli0407-cell
- [BACKPORT][v1.12.1][BUG] Kernel Workqueue Lockup and Unstable RKE2 Service After Enabling LH V2 in Harvester 13495 - @derekbit @chriscchien
- [BACKPORT][v1.12.1][BUG] V2 expansion can report success while the engine remains at the old size 13380 - @davidcheng0922 @chriscchien
- [BACKPORT][v1.12.1][BUG] FilesystemReadOnly never detected on kernel >= 6.12 — ext4 reports emergency_ro, not ro; read-only auto-remount silently inoperative 13482 - @yangchiu
- [BACKPORT][v1.12.1][BUG] csi.ReplicaCount Helm values silently no-op on existing csi- deployments (only applied at first creation) 13465 - @roger-ryao
- [BACKPORT][v1.12.1][BUG] v2 volume may crash again after the auto reattachment 13337 - @shuo-wu @roger-ryao
- [BACKPORT][v1.12.1][BUG] V2 Volume Cannot Be Attached When the Storage Network Is Enabled 13490 - @c3y1huang
- [BACKPORT][v1.12.1][BUG] v2 volume repeated replica reuse failure 13336 - @shuo-wu @chriscchien
- [BACKPORT][v1.12.1][BUG] V2 Encrypted Volume Restore Fails 13365 - @mantissahz @roger-ryao
- [BACKPORT][v1.12.1][BUG] V2 backup/snapshot can leave NVMe/TCP frontend or dm device stale, causing pod EIO on attached volumes 13332 - @davidcheng0922 @chriscchien
- [BACKPORT][v1.12.1][BUG] (chart) ArgoCD OutOfSync when using Gateway API 13446 - @yangchiu
- [BACKPORT][v1.12.1][BUG] Migration Engine Can Be Unexpectedly Deleted If the Target Node Is Still in Readiness Transition 13367 - @COLDTURNIP @yangchiu
- [BACKPORT][v1.12.1][BUG] Recurring trim job fails with deadlock 13425 - @c3y1huang @roger-ryao
- [BACKPORT][v1.12.1][BUG] volume expansion stuck 13368 - @shuo-wu @chriscchien
- [BACKPORT][v1.12.1][BUG] pvc resize fails after iscsid restart 13412 - @yangchiu @shuo-wu
- [BACKPORT][v1....