Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

refactor: implement volume mount controller #10062

Merged
merged 1 commit into from
Feb 10, 2025

Conversation

smira
Copy link
Member

@smira smira commented Dec 27, 2024

Fixes #9602

Aggregate incoming volume mount requests, reconcile them with volume status, perform actual mounting, and produce mount status.

@smira smira added this to the v1.10 milestone Dec 27, 2024
@smira smira force-pushed the feat/mount-controller branch 2 times, most recently from cf9f600 to 0e5b013 Compare January 28, 2025 17:05
@smira smira force-pushed the feat/mount-controller branch 3 times, most recently from 926253e to ec65b58 Compare February 7, 2025 15:59
@smira smira marked this pull request as ready for review February 7, 2025 16:00
@smira
Copy link
Member Author

smira commented Feb 7, 2025

This PR implements only the first part of the volume mount flow, but I would like to split up things a bit to make it easier to get other changes in.

The image cache config controller never did proper unmount of the volumes, so the same state here for now - we don't actually unmount anything, but simply using new controller to mount image cache volumes.

The follow-up PR is planned to support first mounting STATE & EPHEMERAL, and that will include proper refactoring of the volume subsystem to support full unmount flow.

@smira smira force-pushed the feat/mount-controller branch from ec65b58 to e530e41 Compare February 7, 2025 16:23
@smira smira force-pushed the feat/mount-controller branch 2 times, most recently from c93c481 to 312556d Compare February 10, 2025 12:28

// RemountReadWrite remounts the mount point as read-write.
func (p *Point) RemountReadWrite() error {
p.flags &^= unix.MS_RDONLY
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this equivalent to &= ~unix.MS_RDONLY?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think that should be exactly it.

@smira smira force-pushed the feat/mount-controller branch from 312556d to 060059a Compare February 10, 2025 18:09
Fixes siderolabs#9602

Aggregate incoming volume mount requests, reconcile them with volume
status, perform actual mounting, and produce mount status.

Signed-off-by: Andrey Smirnov <[email protected]>
@smira smira force-pushed the feat/mount-controller branch from 060059a to 5dbf9e3 Compare February 10, 2025 18:13
@smira
Copy link
Member Author

smira commented Feb 10, 2025

/m

@talos-bot talos-bot merged commit 5dbf9e3 into siderolabs:main Feb 10, 2025
51 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

implement mount controller
4 participants