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

fix: drop the LVM2 udev lvm rule #1042

Merged
merged 1 commit into from
Oct 2, 2024

Conversation

smira
Copy link
Member

@smira smira commented Oct 2, 2024

This rule depends on systemd-run, and it won't work in Talos anyways, but it conflicts with Talos activating LVM volumes, as the call to pvscan updates the cache as if the volume got already activated, while in fact it hasn't been activated yet.

This rule depends on `systemd-run`, and it won't work in Talos anyways,
but it conflicts with Talos activating LVM volumes, as the call to
`pvscan` updates the cache as if the volume got already activated, while
in fact it hasn't been activated yet.

Signed-off-by: Andrey Smirnov <andrey.smirnov@siderolabs.com>
dsseng
dsseng previously requested changes Oct 2, 2024
@@ -99,6 +99,9 @@ steps:
install:
- |
make DESTDIR=/rootfs install

# LVM activation is handled by Talos itself
rm -f /rootfs/usr/lib/udev/rules.d/69-dm-lvm.rules
Copy link
Member

Choose a reason for hiding this comment

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

Isn't https://github.com/lvmteam/lvm2/blob/main/udev/95-dm-notify.rules.in also unnecessary? We seem not to have dmsetup in our rootfs if I'm not mistaken

Copy link
Member Author

Choose a reason for hiding this comment

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

probably, but I don't want to make bigger changes, as this is going to be backported to 1.8 - so the minimal changes required

@smira
Copy link
Member Author

smira commented Oct 2, 2024

/m

@talos-bot talos-bot merged commit e2a561f into siderolabs:main Oct 2, 2024
14 checks passed
smira added a commit to smira/talos that referenced this pull request Oct 2, 2024
Two fixes were in pkgs/lvm2:

* siderolabs/pkgs#1041
* siderolabs/pkgs#1042

Other fixes in this PR:

* drop the dm-raid patch, `lvm2` loads the required kernel modules on
  its own
* adjust the controller a bit for some interactions
* make Rook test use more complicated, encrypted setup which uses LVM
* adjust LVM test to handle a case when there's more than one worker

Signed-off-by: Andrey Smirnov <andrey.smirnov@siderolabs.com>
smira added a commit to smira/talos that referenced this pull request Oct 2, 2024
Two fixes were in pkgs/lvm2:

* siderolabs/pkgs#1041
* siderolabs/pkgs#1042

Other fixes in this PR:

* drop the dm-raid patch, `lvm2` loads the required kernel modules on
  its own
* adjust the controller a bit for some interactions
* make Rook test use more complicated, encrypted setup which uses LVM
* adjust LVM test to handle a case when there's more than one worker

Signed-off-by: Andrey Smirnov <andrey.smirnov@siderolabs.com>
smira added a commit to smira/talos that referenced this pull request Oct 3, 2024
Two fixes were in pkgs/lvm2:

* siderolabs/pkgs#1041
* siderolabs/pkgs#1042

Other fixes in this PR:

* adjust the controller a bit for some interactions
* make Rook test use more complicated, encrypted setup which uses LVM
* adjust LVM test to handle a case when there's more than one worker

Signed-off-by: Andrey Smirnov <andrey.smirnov@siderolabs.com>
@smira smira mentioned this pull request Oct 7, 2024
smira added a commit to smira/talos that referenced this pull request Oct 8, 2024
Two fixes were in pkgs/lvm2:

* siderolabs/pkgs#1041
* siderolabs/pkgs#1042

Other fixes in this PR:

* adjust the controller a bit for some interactions
* make Rook test use more complicated, encrypted setup which uses LVM
* adjust LVM test to handle a case when there's more than one worker

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

Successfully merging this pull request may close these issues.

3 participants