Bug 1680546
| Summary: | Cannot use setIOThreadParams() to set poll_shrink. | ||
|---|---|---|---|
| Product: | Red Hat Enterprise Linux Advanced Virtualization | Reporter: | lcheng |
| Component: | libvirt-python | Assignee: | Pavel Hrdina <phrdina> |
| Status: | CLOSED ERRATA | QA Contact: | lcheng |
| Severity: | medium | Docs Contact: | |
| Priority: | medium | ||
| Version: | 8.0 | CC: | jdenemar, mtessun, phrdina, xuzhang |
| Target Milestone: | rc | Flags: | pm-rhel:
mirror+
|
| Target Release: | 8.0 | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | |||
| Fixed In Version: | libvirt-python-5.0.0-3.el8 | Doc Type: | If docs needed, set a value |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2019-05-29 16:05:30 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: | |||
|
Description
lcheng
2019-02-25 10:04:38 UTC
Upstream commit:
commit 878446e7f9fc1086b074d52c881e207021a11486
Author: Pavel Hrdina <phrdina>
Date: Mon Feb 25 13:04:05 2019 +0100
Fix virDomainPinIOThread typed params check
Verified on python3-libvirt-5.0.0-3.module+el8+2836+c71eecaf.x86_64. The result is expected. Move to VERIFIED. # python Python 3.6.8 (default, Jan 11 2019, 02:17:16) [GCC 8.2.1 20180905 (Red Hat 8.2.1-3)] on linux Type "help", "copyright", "credits" or "license" for more information. >>> import libvirt >>> conn = libvirt.open() >>> dom = conn.lookupByName('test') >>> dom.addIOThread(200, 0) 0 >>> conn.domainListGetStats([dom], libvirt.VIR_DOMAIN_STATS_IOTHREAD, 0) [(<libvirt.virDomain object at 0x7fe15db6a9b0>, {'iothread.count': 1, 'iothread.200.poll-max-ns': 32768, 'iothread.200.poll-grow': 0, 'iothread.200.poll-shrink': 0})] >>> dom.setIOThreadParams(200, {'poll_shrink': 6}, 0) 0 >>> conn.domainListGetStats([dom], libvirt.VIR_DOMAIN_STATS_IOTHREAD, 0) [(<libvirt.virDomain object at 0x7fe15da50208>, {'iothread.count': 1, 'iothread.200.poll-max-ns': 32768, 'iothread.200.poll-grow': 0, 'iothread.200.poll-shrink': 6})] 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-2019:1293 |