-
Bug
-
Resolution: Done-Errata
-
Minor
-
rhel-9.1.0
-
qemu-kvm-8.2.0-1.el9
-
None
-
Moderate
-
CustomerScenariosInitiative
-
rhel-sst-virtualization
-
ssg_virtualization
-
None
-
False
-
-
None
-
None
-
Pass
-
RegressionOnly
-
Bug Fix
-
-
Done
-
-
x86_64
-
None
Description of problem:
Do postcopy migration with unix+proxy transport, break proxy, postcopy migration failed. Try to recover migration before proxy is fixed, it failed as expected. Then fix the proxy, and try to recover migration again, it still failed ans said:
"error: Requested operation is not valid: QEMU reports migration is still running"
Version-Release number of selected component (if applicable):
libvirt-8.5.0-2.el9.x86_64
qemu-kvm-7.0.0-9.el9.x86_64
How reproducible:
100%
Steps to Reproduce:
1.Start a vm
2. Set up proxy between src and dest host
1) On dest host:
- socat tcp-listen:22222,reuseaddr,fork unix:/var/run/libvirt/virtqemud-sock
- socat tcp-listen:33333,reuseaddr,fork unix:/tmp/33333-sock
2) On src host: - socat unix-listen:/tmp/sock,reuseaddr,fork tcp:<dest_host>:22222
- socat unix-listen:/tmp/33333-sock,reuseaddr,fork tcp:<dest_host>:33333
2.Migrate vm to other host with unix transport:
- virsh migrate uefi qemu+unix:///system?socket=/tmp/sock --live --postcopy --undefinesource --persistent --bandwidth 3 --postcopy-bandwidth 3 --migrateuri unix:///tmp/33333-sock
3.Switch migration to postcopy
- virsh migrate-postcopy uefi
4. Break this proxy, migration will fail immediately:
- socat tcp-listen:33333,reuseaddr,fork unix:/tmp/33333-sock
5. Try to recover postcopy migration, it failed as expected:
- virsh migrate uefi qemu+unix:///system?socket=/tmp/sock --live --postcopy --undefinesource --persistent --bandwidth 3 --postcopy-bandwidth 3 --migrateuri unix:///tmp/33333-sock --postcopy-resume
error: operation failed: job 'migration in' failed in post-copy phase
6. Fix proxy
7. Try to recover postcopy migration, it failed unexpected:
- virsh migrate uefi qemu+unix:///system?socket=/tmp/sock --live --postcopy --undefinesource --persistent --bandwidth 3 --postcopy-bandwidth 3 --migrateuri unix:///tmp/33333-sock --postcopy-resume
error: Requested operation is not valid: QEMU reports migration is still running
8. Try to abort migration:
- virsh domjobabort uefi --postcopy
error: internal error: unable to execute QEMU command 'migrate-pause': migrate-pause is currently only supported during postcopy-active state
Actual results:
postcopy recovery failed in step7
Expected results:
postcopy recovery can succeed in step7
Additional info:
Can't reproduce with tcp transport.
- is blocked by
-
RHEL-14111 Rebase qemu-kvm to QEMU 8.2.0
- Closed
- external trackers
- links to
-
RHBA-2023:121202 qemu-kvm bug fix and enhancement update
-
RHBA-2023:121202 qemu-kvm bug fix and enhancement update