Bug 1598015
Summary: | libvirtd crashed on target host when do migration with '--tls' | ||||||
---|---|---|---|---|---|---|---|
Product: | Red Hat Enterprise Linux 7 | Reporter: | yafu <yafu> | ||||
Component: | libvirt | Assignee: | Peter Krempa <pkrempa> | ||||
Status: | CLOSED ERRATA | QA Contact: | Fangge Jin <fjin> | ||||
Severity: | high | Docs Contact: | |||||
Priority: | high | ||||||
Version: | 7.6 | CC: | dyuan, dzheng, fjin, lmen, pkrempa, xuzhang, yanqzhan | ||||
Target Milestone: | rc | Keywords: | Regression | ||||
Target Release: | --- | ||||||
Hardware: | Unspecified | ||||||
OS: | Unspecified | ||||||
Whiteboard: | |||||||
Fixed In Version: | libvirt-4.5.0-3.el7 | Doc Type: | If docs needed, set a value | ||||
Doc Text: | Story Points: | --- | |||||
Clone Of: | |||||||
: | 1600342 (view as bug list) | Environment: | |||||
Last Closed: | 2018-10-30 09:57:31 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: | 1600342 | ||||||
Attachments: |
|
Description
yafu
2018-07-04 07:07:46 UTC
This was most probably caused by: commit c2f71bb295162a81c9085a184972cb93e5964451 Author: Peter Krempa <pkrempa> Date: Tue May 22 07:38:22 2018 +0200 qemu: hotplug: Refactor 'secret' props formatting to qemuMonitorCreateObjectProps From the automated job log, I can see libvirt-4.4.0-2.el7.ppc64le has not this issue. *** Bug 1598412 has been marked as a duplicate of this bug. *** Fixed upstream: commit fac0dacd54c02b842c995d0999d9450d09d1e7cd Author: Peter Krempa <pkrempa> Date: Wed Jul 4 16:36:37 2018 +0200 qemu: monitor: Make qemuMonitorAddObject more robust against programming errors Document and check that @props contains a pointer to a json object and check that both necessary fields are present. Also mark @props as NONNULL. Signed-off-by: Peter Krempa <pkrempa> Reviewed-by: Ján Tomko <jtomko> commit 62ef8227e2717618c96fa17f2d4f5b7570bbe980 Author: Peter Krempa <pkrempa> Date: Wed Jul 4 16:28:58 2018 +0200 qemu: hotplug: Do not try to add secret object for TLS if it does not exist The check whether the object holding secret for decryption of the TLS environment was wrong and would always attempt to add the object. This lead to a crash due to recent refactors. Resolves: https://bugzilla.redhat.com/show_bug.cgi?id=1598015 Signed-off-by: Peter Krempa <pkrempa> Reviewed-by: Ján Tomko <jtomko> Reproduced with libvirt-4.5.0-1.el7.x86_64 Verified with libvirt-4.5.0-4.el7.x86_64, migration succeeds, but there is error in libvirtd.log: Source: 2018-07-25 11:12:25.884+0000: 8375: debug : qemuMonitorJSONCheckError:385 : unable to execute QEMU command {"execute":"object-del","arguments":{"id":"objlibvirt_migrate_tls0"},"id":"libvirt-34"}: {"id":"libvirt-34","error":{"class":"GenericError","desc":"object 'objlibvirt_migrate_tls0' not found"}} Target: 2018-07-25 11:12:25.618+0000: 10709: debug : qemuMonitorJSONCheckError:385 : unable to execute QEMU command {"execute":"object-del","arguments":{"id":"objlibvirt_migrate_tls0"},"id":"libvirt-13"}: {"id":"libvirt-13","error":{"class":"GenericError","desc":"object 'objlibvirt_migrate_tls0' not found"}} 2018-07-25 11:12:52.821+0000: 10710: debug : qemuMonitorJSONCheckError:385 : unable to execute QEMU command {"execute":"object-del","arguments":{"id":"libvirt_migrate-secret0"},"id":"libvirt-30"}: {"id":"libvirt-30","error":{"class":"GenericError","desc":"object 'libvirt_migrate-secret0' not found"}} Created attachment 1470503 [details]
libvirtd log - error message
That is expected. We always try to delete the object even when it is not present in qemu. Note that this was happening already for some time. (In reply to Peter Krempa from comment #11) > That is expected. We always try to delete the object even when it is not > present in qemu. Note that this was happening already for some time. Thanks. I didn't check the libvirtd.log before during testing. 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/RHSA-2018:3113 |