Skip to content

fix(agent): load dm_snapshot when storage-foundation is enabled#303

Merged
duckhawk merged 1 commit into
mainfrom
fix/dm-snapshot-storage-foundation
Jun 24, 2026
Merged

fix(agent): load dm_snapshot when storage-foundation is enabled#303
duckhawk merged 1 commit into
mainfrom
fix/dm-snapshot-storage-foundation

Conversation

@AleksZimin

@AleksZimin AleksZimin commented Jun 23, 2026

Copy link
Copy Markdown
Member

Description

The thin-volumes-enabler init container only added dm_snapshot to the modprobe args when the snapshot-controller module was enabled. Clusters that provide snapshot functionality through the storage-foundation module (the extended VolumeSnapshot fork) left dm_snapshot unloaded, so LVM snapshot creation failed with "Required device-mapper target(s) not detected in your kernel". Load dm_snapshot when either snapshot-controller or storage-foundation is enabled.

Why do we need it, and what problem does it solve?

We need to enable dm_snapshot while only storage-foundation enabled

What is the expected result?

Correct module work

Checklist

  • The code is covered by unit tests.
  • e2e tests passed.
  • Documentation updated according to the changes.
  • Changes were tested in the Kubernetes cluster manually.

The thin-volumes-enabler init container only added dm_snapshot to the
modprobe args when the snapshot-controller module was enabled. Clusters
that provide snapshot functionality through the storage-foundation module
(the extended VolumeSnapshot fork) left dm_snapshot unloaded, so LVM
snapshot creation failed with "Required device-mapper target(s) not
detected in your kernel". Load dm_snapshot when either snapshot-controller
or storage-foundation is enabled.

Signed-off-by: Aleksandr Zimin <alexandr.zimin@flant.com>
@AleksZimin AleksZimin self-assigned this Jun 23, 2026
@duckhawk duckhawk marked this pull request as ready for review June 24, 2026 08:18
@duckhawk duckhawk merged commit 82bb955 into main Jun 24, 2026
13 of 16 checks passed
@duckhawk duckhawk deleted the fix/dm-snapshot-storage-foundation branch June 24, 2026 08:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants