Skip to content

fix: LHv2: don't use BDF paths when driver set to 'aio'#281

Open
tserong wants to merge 1 commit into
harvester:masterfrom
tserong:wip-fix-10666
Open

fix: LHv2: don't use BDF paths when driver set to 'aio'#281
tserong wants to merge 1 commit into
harvester:masterfrom
tserong:wip-fix-10666

Conversation

@tserong
Copy link
Copy Markdown
Member

@tserong tserong commented May 28, 2026

Problem:
The Longhorn V2 aio bdev driver needs a regular device path to a disk (e.g. "/dev/whatever"), but currently NDM will always try to use BDF paths for NVMe or virtio devices even if the disk driver is set to aio. In this case, Longhorn just doesn't know what to do and can't add the disk.

Solution:
We can fix this by ensuring NDM doesn't try to resolve BDF paths if the disk driver is set to aio.

Related Issue:
harvester/harvester#10666

Test plan:
TBD

@tserong tserong requested a review from brandboat May 28, 2026 11:07
@tserong tserong requested review from a team, Vicente-Cheng and Yu-Jack as code owners May 28, 2026 11:07
The Longhorn V2 aio bdev driver needs a regular device path to a disk
(e.g. "/dev/whatever"), but currently NDM will always try to use BDF
paths for NVMe or virtio devices even if the disk driver is set to aio.
In this case, Longhorn just doesn't know what to do and can't add the
disk.

We can fix this by ensuring NDM doesn't try to resolve BDF paths if the
disk driver is set to aio.

Related-to: harvester/harvester#10666
Signed-off-by: Tim Serong <tserong@suse.com>
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.

1 participant