* [PATCH] tests/functional/x86_64: fix race in NVMe live migration test
@ 2026-11-21 18:43 Alexander Mikhalitsyn
0 siblings, 0 replies; only message in thread
From: Alexander Mikhalitsyn @ 2026-11-21 18:43 UTC (permalink / raw)
To: qemu-devel
Cc: Stéphane Graber, Zhao Liu, Klaus Jensen, Peter Xu,
Keith Busch, Alex Bennée, Paolo Bonzini, Fabiano Rosas,
Jesper Devantier, qemu-block, Alexander Mikhalitsyn
This test uses /tmp to hold test_nvme_mig_workload.pid file, which
is a PID of a "workload" process (producing heavy read I/O).
Earlier I did a mistake and forgot to mount /tmp as tmpfs, instead
/tmp was using the same storage as root-filesystem (which lives on
NVMe device).
The problem here is that for this device we use "snapshot=on" mode,
so after live migration all data that was written on the underlying
disk is lost. It is not critical for the test itself (because it's
read-only test by design), but very critical for the test logic
that uses /tmp to find out the PID of the workload process to kill it
after live migration. Absence of this file causes test to fail
spontaneously.
Link: https://lore.kernel.org/all/20260921190345.1709227-1-alex.bennee@linaro.org/
Reported-by: Alex Bennée <alex.bennee@linaro.org>
Tested-by: Peter Xu <peterx@redhat.com>
Signed-off-by: Alexander Mikhalitsyn <alex@amutable.com>
---
tests/functional/x86_64/test_nvme_migration.py | 2 ++
1 file changed, 2 insertions(+)
diff --git a/tests/functional/x86_64/test_nvme_migration.py b/tests/functional/x86_64/test_nvme_migration.py
index 890f0aab6d..a8fb5f9e81 100755
--- a/tests/functional/x86_64/test_nvme_migration.py
+++ b/tests/functional/x86_64/test_nvme_migration.py
@@ -94,6 +94,8 @@ def launch_source_vm(self, vm):
prompt, vm=vm)
exec_command_and_wait_for_pattern(self, 'mount -t sysfs sysfs /sys',
prompt, vm=vm)
+ exec_command_and_wait_for_pattern(self, 'mount -t tmpfs tmpfs /tmp',
+ prompt, vm=vm)
# Run workload before migration to check if it continues
# to run properly after migration.
--
2.47.3
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2026-11-21 18:44 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-11-21 18:43 [PATCH] tests/functional/x86_64: fix race in NVMe live migration test Alexander Mikhalitsyn
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.