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

virsh_event: fix disk discovery #5430

Merged
merged 1 commit into from
Feb 6, 2024
Merged

Conversation

smitterl
Copy link
Contributor

The test identified new disks by their target name. However, a reboot can mess up the non-persistent disk namings /dev/vdX.

Use instead a function that identifies a new disk inside of a VM as the one disk that has no root mount on itself, its partitions or volumes.

The test identified new disks by their target name. However, a reboot
can mess up the non-persistent disk namings /dev/vdX.

Use instead a function that identifies a new disk inside of a VM as the
one disk that has no root mount on itself, its partitions or volumes.

Signed-off-by: Sebastian Mitterle <[email protected]>
@smitterl
Copy link
Contributor Author

JOB ID     : ae0347a8b7ebc6f3f58129d9364b8d280ace794f
JOB LOG    : /var/lib/avocado/job-results/job-2024-01-31T06.35-ae0347a/job.log
 (1/2) type_specific.io-github-autotest-libvirt.virsh.event.positive_test.virsh_event.test_events.block-threshold_event.qcow2_test.no_timeout.loop: PASS (35.10 s)
 (2/2) type_specific.io-github-autotest-libvirt.virsh.event.positive_test.virsh_event.test_events.io-error_event.no_timeout.loop: PASS (135.05 s)
RESULTS    : PASS 2 | ERROR 0 | FAIL 0 | SKIP 0 | WARN 0 | INTERRUPT 0 | CANCEL 0
JOB HTML   : /var/lib/avocado/job-results/job-2024-01-31T06.35-ae0347a/results.html
JOB TIME   : 170.59 s

@smitterl
Copy link
Contributor Author

@chunfuwen please help review

Copy link
Contributor

@chunfuwen chunfuwen left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@Yingshun Yingshun merged commit 5cb7069 into autotest:master Feb 6, 2024
5 checks passed
@smitterl smitterl deleted the virsh_event_vda branch July 26, 2024 13:33
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.

3 participants