Skip to content

test(v2): add e2e cases for v2 block disk device recovery - #3678

Open
derekbit wants to merge 1 commit into
longhorn:masterfrom
derekbit:issue-13893
Open

test(v2): add e2e cases for v2 block disk device recovery#3678
derekbit wants to merge 1 commit into
longhorn:masterfrom
derekbit:issue-13893

Conversation

@derekbit

Copy link
Copy Markdown
Member

Which issue(s) this PR fixes:

Issue longhorn/longhorn#13893

What this PR does / why we need it:

Add negative cases for a disk whose device is left detached from the kernel, for the device release on disk removal, and for the release after an instance manager restart, plus a regression case for the remove and re-add cycle. Add node helpers to detect a PCI BDF path, query the device driver, bind and unbind it, and wait for a disk to become schedulable. A device is treated as detached when it is bound to a userspace PCI driver or to no driver at all, since an interrupted bind can leave either state. The cases skip on a non-BDF disk path, where the scenario cannot be reproduced.

Special notes for your reviewer:

Additional documentation or context

@derekbit
derekbit requested a review from a team as a code owner August 30, 2026 02:55
Add negative cases for a disk whose device is left detached from the kernel, for
the device release on disk removal, and for the release after an instance
manager restart, plus a regression case for the remove and re-add cycle. Add
node helpers to detect a PCI BDF path, query the device driver, bind and unbind
it, and wait for a disk to become schedulable. A device is treated as detached
when it is bound to a userspace PCI driver or to no driver at all, since an
interrupted bind can leave either state. The cases skip on a non-BDF disk path,
where the scenario cannot be reproduced.

Longhorn 13893

Signed-off-by: Derek Su <derek.su@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