Bug 1791886
| Summary: | VIR_DOMAIN_EVENT_SUSPENDED_POSTCOPY event is emitted for incoming migration | ||
|---|---|---|---|
| Product: | Red Hat Enterprise Linux 7 | Reporter: | Jiri Denemark <jdenemar> |
| Component: | libvirt | Assignee: | Jiri Denemark <jdenemar> |
| Status: | CLOSED ERRATA | QA Contact: | yafu <yafu> |
| Severity: | high | Docs Contact: | |
| Priority: | high | ||
| Version: | 7.7 | CC: | aefrat, bzlotnik, dyuan, fjin, gwatson, jdenemar, lmen, lmiksik, lsurette, michal.skrivanek, mzamazal, rhodain, srevivo, tnisan, xuzhang, yafu, yanqzhan, ycui |
| Target Milestone: | rc | Keywords: | Upstream |
| Target Release: | 7.8 | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | |||
| Fixed In Version: | libvirt-4.5.0-32.el7 | Doc Type: | If docs needed, set a value |
| Doc Text: | Story Points: | --- | |
| Clone Of: | 1791458 | Environment: | |
| Last Closed: | 2020-03-31 19:59:02 UTC | Type: | --- |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
| Embargoed: | |||
| Bug Depends On: | 1791458 | ||
| Bug Blocks: | 1774230 | ||
|
Description
Jiri Denemark
2020-01-16 16:33:28 UTC
Reproduced with libvirt-4.5.0-30.el7.x86_64. Test steps: 1. Monitor domain events on both source and target hosts: # virsh event --all --loop 2. Start guest and launch stress in guest: # stress --cpu 8 --io 4 --vm 2 --vm-bytes 128M 3. Do live migration with --postcopy and switch to postcopy: Terminal 1: #virsh migrate yafu qemu+ssh://X.X.X.X/system --live --verbose --postcopy Terminal 2: # virsh migrate-postcopy yafu 4.Check the event on the source host: event 'migration-iteration' for domain yafu: iteration: '1' event 'migration-iteration' for domain yafu: iteration: '2' event 'lifecycle' for domain yafu: Suspended Migrated event 'lifecycle' for domain yafu: Suspended Post-copy event 'migration-iteration' for domain yafu: iteration: '3' event 'lifecycle' for domain yafu: Stopped Migrated event 'job-completed' for domain yafu: operation: 5 time_elapsed: 8369 time_elapsed_net: 8365 downtime: 167 downtime_net: 163 setup_time: 26 data_total: 2208120832 data_processed: 913950968 data_remaining: 0 memory_total: 2208120832 memory_processed: 913950968 memory_remaining: 0 memory_bps: 114331992 memory_constant: 400031 memory_normal: 221820 memory_normal_bytes: 908574720 memory_dirty_rate: 0 memory_iteration: 3 memory_page_size: 4096 disk_total: 0 disk_processed: 0 disk_remaining: 0 5.Check the events on the target host: event 'lifecycle' for domain yafu: Started Migrated ***event 'lifecycle' for domain yafu: Suspended Post-copy *** event 'lifecycle' for domain yafu: Resumed Post-copy event 'lifecycle' for domain yafu: Resumed Migrated 6.Check the libvirtd log on the target host: # cat /var/log/libvirt/libvirtd.log | grep -i post-copy 2020-02-05 08:07:57.153+0000: 11275: debug : qemuProcessHandleMigrationStatus:1553 : Correcting paused state reason for domain yafu to post-copy 2020-02-05 08:07:57.415+0000: 11279: debug : qemuMigrationAnyCompleted:1524 : Migration switched to post-copy 2020-02-05 08:07:57.434+0000: 11275: debug : qemuProcessHandleResume:708 : Transitioned guest yafu into running state, reason 'post-copy', event detail 3 Verified with libvirt-4.5.0-32.el7.x86_64. Test steps: 1. Monitor domain events on both source and target hosts: # virsh event --all --loop 2. Start guest and launch stress in guest: # stress --cpu 8 --io 4 --vm 2 --vm-bytes 128M 3. Do live migration with --postcopy and switch to postcopy: Terminal 1: #virsh migrate yafu qemu+ssh://X.X.X.X/system --live --verbose --postcopy Terminal 2: # virsh migrate-postcopy yafu 4.Check the event on the source host: event 'lifecycle' for domain yafu: Suspended Migrated event 'lifecycle' for domain yafu: Suspended Post-copy event 'migration-iteration' for domain yafu: iteration: '9' event 'lifecycle' for domain yafu: Stopped Migrated event 'job-completed' for domain yafu: operation: 5 time_elapsed: 8792 time_elapsed_net: 8791 downtime: 126 downtime_net: 125 setup_time: 25 data_total: 2208120832 data_processed: 2594877328 data_remaining: 0 memory_total: 2208120832 memory_processed: 2594877328 memory_remaining: 0 memory_bps: 113848113 memory_constant: 803092 memory_normal: 630518 memory_normal_bytes: 2582601728 memory_dirty_rate: 0 memory_iteration: 9 memory_page_size: 4096 disk_total: 0 disk_processed: 0 disk_remaining: 0 5.Check events on target host and no VIR_DOMAIN_EVENT_SUSPENDED_POSTCOPY event: # virsh event --all --loop event 'lifecycle' for domain yafu: Started Migrated event 'lifecycle' for domain yafu: Resumed Post-copy event 'lifecycle' for domain yafu: Resumed Migrated 6.Check libvirtd.log on target host: # cat /var/log/libvirt/libvirtd.log | grep -i post-copy 2020-02-05 10:08:15.258+0000: 16346: debug : qemuMigrationAnyCompleted:1524 : Migration switched to post-copy 2020-02-05 10:08:15.274+0000: 16343: debug : qemuProcessHandleResume:708 : Transitioned guest yafu into running state, reason 'post-copy', event detail 3 Also check the domjobinfo after migration completed: # virsh domjobinfo yafu --completed Job type: Completed Operation: Outgoing migration Time elapsed: 8198 ms Time elapsed w/o network: 8196 ms Data processed: 849.538 MiB Data remaining: 0.000 B Data total: 2.056 GiB Memory processed: 849.538 MiB Memory remaining: 0.000 B Memory total: 2.056 GiB Memory bandwidth: 108.890 MiB/s Dirty rate: 0 pages/s Page size: 4096 bytes Iteration: 2 Constant pages: 391877 Normal pages: 216198 Normal data: 844.523 MiB Total downtime: 196 ms Downtime w/o network: 194 ms Setup time: 31 ms Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory, and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://access.redhat.com/errata/RHBA-2020:1094 |