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

test: lock device during running cryptsetup #32963

Merged
merged 2 commits into from
May 21, 2024
Merged

Conversation

yuwata
Copy link
Member

@yuwata yuwata commented May 21, 2024

Fixes #32913.

On running cryptsetup, udevd detects two inotify events for the
underlying device. Running the test on enough fast host, the expected
symlinks based on UUID and disk label are created by the second event.

During processing a uevent for a device, udevd disables the inotify
watch for the device. If the test runs on slow system, the second
inotify event may comes during a udev worker processing the synthesized
uevent triggered by the first inotify event. Hence, no synthesized
uevent for the second inotify event will be generated, and the expected
symlinks will be never created.

To prevent the issue, we need to lock the device during cryptsetup
command is running.

Fixes systemd#32913.
@yuwata yuwata added the tests label May 21, 2024
@github-actions github-actions bot added the please-review PR is ready for (re-)review by a maintainer label May 21, 2024

This comment was marked as off-topic.

@yuwata yuwata added this to the v256 milestone May 21, 2024
@bluca bluca added good-to-merge/waiting-for-ci 👍 PR is good to merge, but CI hasn't passed at time of review. Please merge if you see CI has passed and removed please-review PR is ready for (re-)review by a maintainer labels May 21, 2024
@yuwata
Copy link
Member Author

yuwata commented May 21, 2024

All failures are unrelated. Merging.

@yuwata yuwata merged commit ce2aade into systemd:main May 21, 2024
31 of 39 checks passed
@yuwata yuwata deleted the test-64-btrfs branch May 21, 2024 23:06
@github-actions github-actions bot removed the good-to-merge/waiting-for-ci 👍 PR is good to merge, but CI hasn't passed at time of review. Please merge if you see CI has passed label May 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Development

Successfully merging this pull request may close these issues.

TEST-64-UDEV-STORAGE-btrfs_basic failed in GitHub Actions
2 participants