| Summary: | Libvirt Python bindings fail to properly pass file descriptors | ||||||
|---|---|---|---|---|---|---|---|
| Product: | [Fedora] Fedora | Reporter: | Marian Neagul <marian> | ||||
| Component: | libvirt | Assignee: | Martin Kletzander <mkletzan> | ||||
| Status: | CLOSED UPSTREAM | QA Contact: | Fedora Extras Quality Assurance <extras-qa> | ||||
| Severity: | medium | Docs Contact: | |||||
| Priority: | unspecified | ||||||
| Version: | rawhide | CC: | berrange, clalancette, itamar, jfehlig, jforbes, jyang, laine, libvirt-maint, marian, mkletzan, veillard | ||||
| Target Milestone: | --- | ||||||
| Target Release: | --- | ||||||
| Hardware: | All | ||||||
| OS: | Linux | ||||||
| Whiteboard: | |||||||
| Fixed In Version: | Doc Type: | Bug Fix | |||||
| Doc Text: | Story Points: | --- | |||||
| Clone Of: | Environment: | ||||||
| Last Closed: | 2013-10-23 07:57:24 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: | |||||
| Attachments: |
|
||||||
I posted the patch on mailing list for you and reviewed it myself. I'll also push it if it is accepted. Feel free to post (unified) patches (against git master) yourself in the future when you have a fix. It will speed up the things. I forgot to attach the bug number in the commit message, but here is the link to the patch posted: https://www.redhat.com/archives/libvir-list/2013-October/msg01009.html Merged upstream:
commit e350826c653b20dd271ab99075d2f224c7451356
Author: Marian Neagul <marian.ro>
Date: Tue Oct 22 16:03:39 2013 +0100
python: Fix Create*WithFiles filefd passing
|
Created attachment 814505 [details] A patch fixing the problem Description of problem: The libvirt python api fails to properly pass file descriptors to the libvirt daemon. The problem resides in the following functions (in ): 1. libvirt_virDomainCreateWithFiles 2. libvirt_virDomainCreateXMLWithFiles Version-Release number of selected component (if applicable): All current releases providing FD passing to containers How reproducible: Try to pass file descriptors to a container using the aforementioned functions. The fds are created but mapped to /dev/null instead to the correct FD's Actual results: Passed FD's are mapped to /dev/null Expected results: Passed FD's should be mapped to the original FD Additional info: