| Summary: | A PyList usage mistake in Function libvirt_lxc_virDomainLxcOpenNamespace. | ||
|---|---|---|---|
| Product: | Red Hat Enterprise Linux 7 | Reporter: | Eric Blake <eblake> |
| Component: | libvirt | Assignee: | Eric Blake <eblake> |
| Status: | CLOSED CURRENTRELEASE | QA Contact: | Virtualization Bugs <virt-bugs> |
| Severity: | unspecified | Docs Contact: | |
| Priority: | unspecified | ||
| Version: | 7.0 | CC: | acathrow, ajia, cwei, dyuan, eblake, hzguanqiang, lsu |
| Target Milestone: | rc | ||
| Target Release: | --- | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | |||
| Fixed In Version: | libvirt-1.1.1-4.el7 | Doc Type: | Bug Fix |
| Doc Text: | Story Points: | --- | |
| Clone Of: | 1002383 | Environment: | |
| Last Closed: | 2014-06-13 11:08:44 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: | |
| Bug Depends On: | 1002383 | ||
| Bug Blocks: | |||
|
Description
Eric Blake
2013-08-29 12:55:21 UTC
I also met this issue today.
# cat /tmp/test.py
import sys
import libvirt_lxc
if __name__ == "__main__":
name = sys.argv[1]
con = libvirt_lxc.libvirt.open('lxc:///')
dom = con.lookupByName(name)
fd = libvirt_lxc.lxcOpenNamespace(dom, 0)
print 'The fd length=%s\nfd=%s' % (len(fd), fd)
# python /tmp/test.py sandbox
The fd length=10
fd=[<NULL>, <NULL>, <NULL>, <NULL>, <NULL>, 12, 13, 14, 15, 16]
libvirt-1.1.1-4.el7 Same steps with Comment 2: # python test.py test The fd length=6 fd=[13, 14, 15, 16, 17, 18] The fd's length equals to the length of fd , so set VERIFIED *** Bug 1003829 has been marked as a duplicate of this bug. *** This request was resolved in Red Hat Enterprise Linux 7.0. Contact your manager or support representative in case you have further questions about the request. |