Bug 1777094
Summary: | Migration can't be started because of NULL virTypedParamsFilter parameter | ||||||||
---|---|---|---|---|---|---|---|---|---|
Product: | Red Hat Enterprise Linux Advanced Virtualization | Reporter: | Guowen Shan <gshan> | ||||||
Component: | libvirt | Assignee: | Jiri Denemark <jdenemar> | ||||||
Status: | CLOSED ERRATA | QA Contact: | yafu <yafu> | ||||||
Severity: | medium | Docs Contact: | |||||||
Priority: | unspecified | ||||||||
Version: | 8.2 | CC: | chhu, drjones, eric.auger, gshan, jdenemar, lcapitulino, lmen, qzhang, virt-maint, xuzhang | ||||||
Target Milestone: | rc | Keywords: | Regression | ||||||
Target Release: | 8.0 | ||||||||
Hardware: | All | ||||||||
OS: | Linux | ||||||||
Whiteboard: | |||||||||
Fixed In Version: | libvirt-5.10.0-1.el8 | Doc Type: | If docs needed, set a value | ||||||
Doc Text: | Story Points: | --- | |||||||
Clone Of: | Environment: | ||||||||
Last Closed: | 2020-05-05 09:51:23 UTC | Type: | Bug | ||||||
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: | |||||||||
Bug Blocks: | 1677408 | ||||||||
Attachments: |
|
Description
Guowen Shan
2019-11-26 22:21:25 UTC
Rerun the test case with last scratch builds, the issue is still existing. Host BaseOS: RHEL-8.2.0-20191126.n.0 qemu-kvm: http://brew-task-repos.usersys.redhat.com/repos/scratch/drjones/qemu-kvm/4.2.0/0.el8.drjones201911191900/ libvirt: http://brew-task-repos.usersys.redhat.com/repos/scratch/jdenemar/libvirt/5.9.0/4.virtio_fs.b68426e149.module+el8.2.0+4836+a8e32ad7 [root@amd-seattle-07]# virsh migrate --live rhel8 qemu+ssh://10.16.200.17/system root.200.171's password: error: params in virTypedParamsFilter must not be NULL Note: The detailed steps to run the test case can be found from the attached ("f000-migration-test.txt") Created attachment 1640010 [details]
Detailed steps to carry out the migration
Created attachment 1640015 [details]
libvirt log
debugging logs from libvirt, which was collected after running below commands:
# virt-admin daemon-log-filters "1:util 1:libvirt 1:storage 1:network 1:nodedev 1:qemu"
# virt-admin daemon-log-outputs "1:file:/var/log/libvirt.log"
Patch sent upstream for review: https://www.redhat.com/archives/libvir-list/2019-November/msg01414.html Fixed upstream by commit d802d9ab83ad0d852310c79998ee11c0a440b615 Refs: v5.10.0-rc1-16-gd802d9ab83 Author: Jiri Denemark <jdenemar> AuthorDate: Wed Nov 27 17:21:58 2019 +0100 Commit: Jiri Denemark <jdenemar> CommitDate: Thu Nov 28 14:27:11 2019 +0100 qemu: Fix migration without parameters The virTypedParamsFilter function doesn't mind params == NULL if nparams is zero. And there's no need to check for params == NULL && nparams > 0 because this is checked higher in the stack. In fact all the virCheckNonNull* checks in virTypedParamsFilter are useless. https://bugzilla.redhat.com/show_bug.cgi?id=1777094 Signed-off-by: Jiri Denemark <jdenemar> Reviewed-by: Daniel Henrique Barboza <danielhb413> Reviewed-by: Erik Skultety <eskultet> Jiri, please let me know when the patch is ported to RHEL8.2 stream, or you have a private libvirt build to include the fix. I can try it out for verification purpose. Verified with libvirt-6.0.0-2.el8.x86_64 Test steps: 1.# virsh migrate vm2 qemu+ssh://10.66.36.15/system --live 2.#virsh migrate vm2 qemu+ssh://10.66.36.15/system --live --verbose Migration: [100 %] 3.# virsh migrate vm2 qemu+ssh://10.66.36.15/system --postcopy --p2p --live --verbose Migration: [100 %] 4.# virsh migrate vm2 qemu+ssh://10.66.36.15/system --p2p --live 5.# virsh migrate vm2 qemu+ssh://10.66.36.15/system --postcopy --p2p --live --postcopy-after-precopy 6.# virsh migrate yafu qemu+ssh://10.66.36.15/system 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:2017 |