-
Notifications
You must be signed in to change notification settings - Fork 243
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
utils_libvirt/libvirt_disk: add function to get disk by serial #3811
Conversation
@chunfuwen Please help review. |
that's not mounted currently. | ||
|
||
:param session: VM session | ||
:param test: Test instance |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
here there is no test parameter, others LGTM
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for spotting it, fixed.
4d8c348
to
08a2e6b
Compare
There might be an issue with this. Setting draft until I have confirmed it works also when the first item is the searched-for disk. |
08a2e6b
to
22ab95d
Compare
Use the SERIAL to identify a disk and return its path. Suggested-by: Chunfu Wen <[email protected]> Signed-off-by: Sebastian Mitterle <[email protected]>
22ab95d
to
5120c2a
Compare
@chunfuwen There was a problem with my implementation. At some point the 'new_disk' might also have been mounted during the tests. So, here I changed the patch to identifying with the serial as proposed by you autotest/tp-libvirt#5323 (comment) Please can you review again? |
Using the serial doesn't work for LUNS: |
Use the SERIAL to identify a disk and return its path.
Suggested-by: Chunfu Wen [email protected]
Signed-off-by: Sebastian Mitterle [email protected]
Used in autotest/tp-libvirt#5323