Note: This is a public test instance of Red Hat Bugzilla. The data contained within is a snapshot of the live data so any changes you make will not be reflected in the production Bugzilla. Email is disabled so feel free to test any aspect of the site that you want. File any problems you find or give feedback at bugzilla.redhat.com.
Bug 1315606
Summary: | qemu:///session disconnects after 30 seconds | ||||||||
---|---|---|---|---|---|---|---|---|---|
Product: | [Fedora] Fedora | Reporter: | Richard W.M. Jones <rjones> | ||||||
Component: | libvirt | Assignee: | Libvirt Maintainers <libvirt-maint> | ||||||
Status: | CLOSED ERRATA | QA Contact: | Fedora Extras Quality Assurance <extras-qa> | ||||||
Severity: | unspecified | Docs Contact: | |||||||
Priority: | unspecified | ||||||||
Version: | rawhide | CC: | agedosier, berrange, clalancette, crobinso, itamar, jforbes, laine, libvirt-maint, mkletzan, veillard, virt-maint, yafu | ||||||
Target Milestone: | --- | ||||||||
Target Release: | --- | ||||||||
Hardware: | Unspecified | ||||||||
OS: | Unspecified | ||||||||
Whiteboard: | |||||||||
Fixed In Version: | libvirt-1.3.2-2.fc24 | Doc Type: | Bug Fix | ||||||
Doc Text: | Story Points: | --- | |||||||
Clone Of: | Environment: | ||||||||
Last Closed: | 2016-03-25 16:41: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: | 910269 | ||||||||
Attachments: |
|
Description
Richard W.M. Jones
2016-03-08 08:31:34 UTC
Created attachment 1134086 [details]
libvirt (client side) log
Created attachment 1134087 [details]
libvirtd (server side) log
Note this contains the server-side logs of many runs. Only the last one will correspond to the client side failure log posted in the previous log.
There is no qemu log file, one was not generated as far as I can tell.
Weirdly I can only reproduce this when I use the hardened build linking command line (-specs=/usr/lib/rpm/redhat/redhat-hardened-ld). (In reply to Richard W.M. Jones from comment #3) > Weirdly I can only reproduce this when I use the hardened build > linking command line (-specs=/usr/lib/rpm/redhat/redhat-hardened-ld). Actually I don't think this is true. It's just the bug is impossibly difficult to reproduce on demand. Sometimes it happens all the time, sometimes it never seems to happen. Still looking ... Oh I see. This is actually a reoccurrence of the problem we had where libvirtd would drop the connection if you hold it open for > 30 seconds. ie: https://bugzilla.redhat.com/show_bug.cgi?id=1240283#c8 See also the simple reproducer: https://bugzilla.redhat.com/show_bug.cgi?id=1240283#c9 When I run the reproducer on Rawhide, I get: $ ./bz1240283.py libvirt: XML-RPC error : Cannot write data: Broken pipe Traceback (most recent call last): File "./bz1240283.py", line 25, in <module> caps = conn.getCapabilities() File "/usr/lib64/python2.7/site-packages/libvirt.py", line 3735, in getCapabilities if ret is None: raise libvirtError ('virConnectGetCapabilities() failed', conn=self) libvirt.libvirtError: Cannot write data: Broken pipe It appears to be fixed by https://github.com/nertpinx/libvirt/commit/78b0ccc71e99f769068974ff56638c99b1c3b4de I applied this patch to the libvirt package, and the reproducer no longer fails: $ ./bz1240283.py NOT reproduced RHBZ#1240283 Please add this reproducer to the libvirt test suite. It's a good regression test that requires no special dependencies. Also libguestfs hasn't crashed yet, although it's hard to say whether that is proof because the libguestfs crash was difficult to reproduce reliably. (In reply to Richard W.M. Jones from comment #6) > It appears to be fixed by > https://github.com/nertpinx/libvirt/commit/ > 78b0ccc71e99f769068974ff56638c99b1c3b4de > 'daemon: properly check for clients' martin, has that patch been posted upstream yet? I don't see it on the list > > Please add this reproducer to the libvirt test suite. It's a good > regression test that requires no special dependencies. > the libvirt.git test suite doesn't have any functional tests that launch a daemon for example, at least it's not a trivial addition. especially that this requires waiting for a 30 second timeout. if you're interested in this I'd suggest bringing it up on the list for further discussion libvirt-1.3.2-2.fc24 has been submitted as an update to Fedora 24. https://bodhi.fedoraproject.org/updates/FEDORA-2016-a8f520b3f6 (In reply to Cole Robinson from comment #7) I'm hoping to post the series today, it is not posted yet, though. The test could be marked as expensive (only ran on ci.centos.org and when we want to, plus the --timeout can be changed, so it's quite easy to check that. i think we can include something like that. libvirt-1.3.2-2.fc24 has been pushed to the Fedora 24 testing repository. If problems still persist, please make note of it in this bug report. See https://fedoraproject.org/wiki/QA:Updates_Testing for instructions on how to install test updates. You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2016-a8f520b3f6 Posted upstream as a part of bigger series: https://www.redhat.com/archives/libvir-list/2016-March/msg00339.html Patches are in rawhide, and in updates-testing for f24 libvirt-1.3.2-2.fc24 has been pushed to the Fedora 24 stable repository. If problems still persist, please make note of it in this bug report. |