Fabiano Rosas
538e03d280
tests/qtest/migration: Add a cancel test
...
The qmp_migrate_cancel() command is poorly tested and code inspection
reveals that there might be concurrency issues with its usage. Add a
test that runs a migration and calls qmp_migrate_cancel() at specific
moments.
In order to make the test more deterministic, instead of calling
qmp_migrate_cancel() at random moments during migration, do it after
the migration status change events are seen.
The expected result is that qmp_migrate_cancel() on the source ends
migration on the source with the "cancelled" state and ends migration
on the destination with the "failed" state. The only exception is that
a failed migration should continue in the failed state.
Cancelling is not allowed during postcopy (no test is added for this
because it's a trivial check in the code).
Reviewed-by: Peter Xu <peterx@redhat.com >
Message-ID: <20250213175927.19642-9-farosas@suse.de >
Signed-off-by: Fabiano Rosas <farosas@suse.de >
2025-02-14 15:19:06 -03:00
..
2024-12-31 21:21:34 +01:00
2025-02-10 13:26:17 -05:00
2025-02-14 15:19:06 -03:00
2023-05-26 09:10:49 +02:00
2024-09-24 13:53:35 +02:00
2025-02-10 15:33:16 +01:00
2025-02-10 15:33:16 +01:00
2025-02-10 15:33:16 +01:00
2025-02-10 15:33:16 +01:00
2024-04-25 07:03:04 +02:00
2025-02-10 15:33:16 +01:00
2024-12-11 07:25:53 +01:00
2024-12-11 07:25:53 +01:00
2024-12-11 07:25:53 +01:00
2025-02-10 15:33:16 +01:00
2024-12-11 07:25:53 +01:00
2023-09-08 13:08:52 +03:00
2024-09-13 20:11:13 +02:00
2025-01-15 13:07:25 -05:00
2025-01-02 16:00:50 -03:00
2025-02-10 15:33:16 +01:00
2023-01-28 06:21:29 -05:00
2025-01-13 17:16:04 +01:00
2025-02-10 15:33:16 +01:00
2024-04-25 07:03:04 +02:00
2024-11-19 13:02:06 +00:00
2025-02-10 15:33:16 +01:00
2023-06-26 09:01:33 +02:00
2024-10-14 17:34:09 +04:00
2025-02-10 15:33:16 +01:00
2025-02-10 15:33:16 +01:00
2023-01-31 09:05:26 +01:00
2024-09-06 13:59:30 +01:00
2025-02-10 15:33:16 +01:00
2023-09-08 13:08:52 +03:00
2023-03-10 17:26:47 +08:00
2025-02-10 15:33:16 +01:00
2024-11-04 14:16:11 +01:00
2024-04-25 07:03:04 +02:00
2023-09-22 16:30:08 +02:00
2025-02-10 15:33:16 +01:00
2023-05-26 09:37:04 +02:00
2025-01-02 19:02:11 -03:00
2025-02-10 15:33:16 +01:00
2025-02-10 15:33:16 +01:00
2023-03-10 17:26:47 +08:00
2023-09-22 16:30:08 +02:00
2025-01-15 13:06:39 -05:00
2024-10-28 14:37:25 +08:00
2024-09-17 10:50:39 +02:00
2025-02-10 15:33:16 +01:00
2024-04-25 07:03:04 +02:00
2025-02-10 15:33:16 +01:00
2025-02-10 15:33:16 +01:00
2025-02-10 15:33:16 +01:00
2025-02-10 15:33:16 +01:00
2025-02-10 15:33:16 +01:00
2024-05-03 15:47:39 +02:00
2025-02-10 15:33:16 +01:00
2025-02-10 15:33:16 +01:00
2025-02-13 12:51:34 +01:00
2024-04-25 07:03:04 +02:00
2025-02-10 15:33:16 +01:00
2025-02-10 13:47:58 +00:00
2025-02-10 15:33:16 +01:00
2025-02-10 15:33:16 +01:00
2025-02-10 15:33:16 +01:00
2025-02-10 15:33:16 +01:00
2024-07-05 23:50:12 +02:00
2025-02-10 13:47:58 +00:00
2025-02-10 15:33:16 +01:00
2024-02-15 11:44:07 +00:00
2025-02-10 15:33:16 +01:00
2024-05-09 00:07:21 +02:00
2024-03-25 15:05:38 +01:00
2023-09-12 12:07:31 +02:00
2024-03-25 15:05:38 +01:00
2024-07-26 09:21:06 +10:00
2024-11-04 09:14:57 +10:00
2024-11-04 09:14:57 +10:00
2024-11-04 09:14:57 +10:00
2024-11-04 09:14:57 +10:00
2024-02-23 23:24:42 +10:00
2024-07-26 09:21:06 +10:00
2024-06-14 14:00:46 -03:00
2024-06-14 14:00:46 -03:00
2025-02-10 15:33:16 +01:00
2025-02-10 15:33:16 +01:00
2024-06-14 14:00:46 -03:00
2025-02-10 15:33:16 +01:00
2025-02-10 15:33:16 +01:00
2025-02-10 15:33:16 +01:00
2025-02-10 15:33:16 +01:00
2025-02-10 15:33:16 +01:00
2023-04-20 11:25:32 +02:00
2024-01-30 21:20:20 +03:00
2025-02-10 15:33:16 +01:00
2025-01-17 11:48:43 -03:00
2024-10-31 13:51:24 +10:00
2024-09-17 10:50:39 +02:00
2023-07-10 22:29:15 +10:00
2024-04-25 07:03:04 +02:00
2024-07-01 15:40:54 +01:00
2024-12-12 10:25:38 -03:00
2024-03-05 13:22:56 +00:00
2024-12-12 10:25:38 -03:00
2024-10-15 11:29:46 +01:00
2024-10-15 11:29:46 +01:00
2025-02-10 15:33:16 +01:00
2025-02-10 15:33:16 +01:00
2025-02-10 15:33:16 +01:00
2024-01-19 11:38:32 +01:00
2025-02-10 15:33:16 +01:00
2025-02-10 15:33:16 +01:00
2025-02-10 15:33:16 +01:00
2023-04-20 11:25:32 +02:00
2023-04-20 11:25:32 +02:00
2025-02-10 15:33:16 +01:00
2024-12-20 17:44:56 +01:00
2024-10-18 07:58:04 -04:00
2023-09-08 13:08:52 +03:00
2023-04-20 11:25:32 +02:00
2023-09-08 13:08:52 +03:00
2023-04-20 11:25:32 +02:00
2023-09-08 13:08:52 +03:00
2023-04-20 11:25:32 +02:00
2025-02-10 15:33:16 +01:00
2023-04-20 11:25:32 +02:00
2025-01-13 17:16:04 +01:00
2023-05-26 09:10:49 +02:00
2023-09-08 13:08:52 +03:00
2023-09-08 13:08:52 +03:00
2024-07-03 18:14:06 -04:00
2025-02-10 15:33:16 +01:00
2024-11-28 18:54:00 +01:00
2024-12-03 12:26:24 +01:00
2023-05-16 09:14:18 +02:00
2024-01-11 11:39:26 +01:00
2025-01-02 16:00:50 -03:00
2025-02-10 15:33:16 +01:00
2025-02-10 15:33:16 +01:00
2023-10-27 09:39:08 +02:00
2025-02-03 12:15:50 -03:00
2025-02-10 15:33:16 +01:00
2023-03-13 15:41:32 +04:00
2025-02-10 15:33:16 +01:00
2023-07-06 13:26:43 +01:00
2024-02-02 13:51:58 +00:00