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

Storage: Check if device has appeared in /dev/zd* when activating or creating a volume #13662

Merged
merged 1 commit into from
Jun 25, 2024

Conversation

MusicDin
Copy link
Member

@MusicDin MusicDin commented Jun 25, 2024

Fix the regression introduced in #13656 where only the path /dev/zvol/<dataset> is checked for existence. Instead, modify the approach to obtain the device path as done in the GetVolumeDiskPath method. This ensures that the device path is correctly identified, whether it appears as /dev/zvol/<dataset> or /dev/zd*.

The previously failing lxd-ci test suite storage-disks-vm is passing locally.

@MusicDin MusicDin changed the title lxd/storage/drivers/zfs: Check for non /dev/zvol/* paths Storage: Check if device has appeared in /dev/zd* when activating or creating a volume Jun 25, 2024
@tomponline
Copy link
Member

Has this been tested on latest/edge?

@MusicDin
Copy link
Member Author

Yes, on this branch/PR.

Here is the log: zfs-storage-disks-vm.log

@MusicDin MusicDin marked this pull request as ready for review June 25, 2024 17:23
@MusicDin MusicDin force-pushed the fix/zfs-locate-zvol branch 2 times, most recently from 57ddd74 to b394f90 Compare June 25, 2024 18:50
Signed-off-by: Din Music <din.music@canonical.com>
@tomponline tomponline merged commit 34664c0 into canonical:main Jun 25, 2024
28 of 29 checks passed
@MusicDin MusicDin deleted the fix/zfs-locate-zvol branch June 25, 2024 21:03
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