Skip to content

[1.11 backport] fix: race between VolumeConfigController and UserVolumeConfigController#12141

Closed
laurazard wants to merge 1 commit intosiderolabs:release-1.11from
laurazard:user-volumeconfig-race-backport-1.11
Closed

[1.11 backport] fix: race between VolumeConfigController and UserVolumeConfigController#12141
laurazard wants to merge 1 commit intosiderolabs:release-1.11from
laurazard:user-volumeconfig-race-backport-1.11

Conversation

@laurazard
Copy link
Copy Markdown
Contributor

@laurazard laurazard commented Nov 5, 2025

Pull Request

What? (description)

(crappy) Backport of #12122 (without the refactor – this is just a copy/paste merge of the controllers, which while worse-looking is hopefully safer than the bigger refactor).

Why? (reasoning)

Addresses the system/user volume config creation race – see #11992

Acceptance

Please use the following checklist:

  • you linked an issue (if applicable)
  • you included tests (if applicable)
  • you ran conformance (make conformance)
  • you formatted your code (make fmt)
  • you linted your code (make lint)
  • you generated documentation (make docs)
  • you ran unit-tests (make unit-tests)

See make help for a description of the available targets.

@laurazard laurazard requested a review from smira November 5, 2025 11:27
@laurazard laurazard self-assigned this Nov 5, 2025
@github-project-automation github-project-automation bot moved this to To Do in Planning Nov 5, 2025
@talos-bot talos-bot moved this from To Do to In Review in Planning Nov 5, 2025
@laurazard laurazard force-pushed the user-volumeconfig-race-backport-1.11 branch from afc67e3 to 526b83e Compare November 5, 2025 11:32
@laurazard laurazard moved this to Proposed in Backports for v1.11 Nov 5, 2025
@laurazard laurazard force-pushed the user-volumeconfig-race-backport-1.11 branch 2 times, most recently from f3ca1e1 to 464532b Compare November 5, 2025 11:37
@github-project-automation github-project-automation bot moved this from In Review to Approved in Planning Nov 5, 2025
@laurazard laurazard force-pushed the user-volumeconfig-race-backport-1.11 branch 3 times, most recently from 37ed2dc to b93dc0d Compare November 5, 2025 11:54
This commit just copy/paste merges the VolumeConfig and UserVolumeConfig
controllers, which addresses the race between system volume and user
volume config creation.

Signed-off-by: Laura Brehm <laurabrehm@hey.com>
@smira smira force-pushed the user-volumeconfig-race-backport-1.11 branch from b93dc0d to 630c48e Compare November 5, 2025 16:31
@smira
Copy link
Copy Markdown
Member

smira commented Nov 5, 2025

I'm going to cherry-pick this into #12140

@smira
Copy link
Copy Markdown
Member

smira commented Nov 5, 2025

cherry-picked

@smira smira closed this Nov 5, 2025
@github-project-automation github-project-automation bot moved this from Approved to Done in Planning Nov 5, 2025
@smira smira moved this from Proposed to In Progress in Backports for v1.11 Nov 6, 2025
@smira smira moved this from In Progress to Backported in Backports for v1.11 Nov 6, 2025
smira added a commit to smira/talos that referenced this pull request Feb 19, 2026
This is a regression introduced in siderolabs#12122 and siderolabs#12141.

Without this, only `kubelet` holds `/var/mnt`, so on kubelet restart,
Talos tries to unmount it, cascading into unmount of all user volumes,
which shouldn't be the case.

Fixes siderolabs#12797

Signed-off-by: Andrey Smirnov <andrey.smirnov@siderolabs.com>
smira added a commit to smira/talos that referenced this pull request Feb 19, 2026
This is a regression introduced in siderolabs#12122 and siderolabs#12141.

Without this, only `kubelet` holds `/var/mnt`, so on kubelet restart,
Talos tries to unmount it, cascading into unmount of all user volumes,
which shouldn't be the case.

Fixes siderolabs#12797

Signed-off-by: Andrey Smirnov <andrey.smirnov@siderolabs.com>
smira added a commit to smira/talos that referenced this pull request Feb 19, 2026
This is a regression introduced in siderolabs#12122 and siderolabs#12141.

Without this, only `kubelet` holds `/var/mnt`, so on kubelet restart,
Talos tries to unmount it, cascading into unmount of all user volumes,
which shouldn't be the case.

Fixes siderolabs#12797

Signed-off-by: Andrey Smirnov <andrey.smirnov@siderolabs.com>
smira added a commit to smira/talos that referenced this pull request Mar 6, 2026
This is a regression introduced in siderolabs#12122 and siderolabs#12141.

Without this, only `kubelet` holds `/var/mnt`, so on kubelet restart,
Talos tries to unmount it, cascading into unmount of all user volumes,
which shouldn't be the case.

Fixes siderolabs#12797

Signed-off-by: Andrey Smirnov <andrey.smirnov@siderolabs.com>
(cherry picked from commit e5b0eb0)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

Status: Backported
Archived in project

Development

Successfully merging this pull request may close these issues.

3 participants