Univention Bugzilla – Full Text Bug Listing |
Summary: | Show CPU load of virtualization hosts | ||
---|---|---|---|
Product: | UCS | Reporter: | Janis Meybohm <meybohm> |
Component: | Virtualization - UVMM | Assignee: | Jürn Brodersen <brodersen> |
Status: | CLOSED FIXED | QA Contact: | Philipp Hahn <hahn> |
Severity: | enhancement | ||
Priority: | P5 | CC: | hahn |
Version: | UCS 4.2 | ||
Target Milestone: | UCS 4.3-3-errata | ||
Hardware: | Other | ||
OS: | Linux | ||
See Also: |
https://forge.univention.org/bugzilla/show_bug.cgi?id=15757 https://forge.univention.org/bugzilla/show_bug.cgi?id=17869 |
||
What kind of report is it?: | Feature Request | What type of bug is this?: | --- |
Who will be affected by this bug?: | --- | How will those affected feel about the bug?: | --- |
User Pain: | Enterprise Customer affected?: | Yes | |
School Customer affected?: | ISV affected?: | ||
Waiting Support: | Flags outvoted (downgraded) after PO Review: | ||
Ticket number: | 2014061821000579 | Bug group (optional): | |
Max CVSS v3 score: |
Description
Janis Meybohm
2014-06-25 13:22:20 CEST
libvirt nowadays supports "nodecpustat", which could be used to display CPU stats for the host. <http://libvirt.org/html/libvirt-libvirt.html#virNodeGetCPUStats>: # python2.6 import libvirt c = libvirt.open('qemu:///system') print c.getCPUStats(-1, 0) # {'kernel': 13922090000000L, 'idle': 4899846310000000L, 'user': 49853930000000L, 'iowait': 16129360000000L} Bug #15757 shows how to use that and creates a RRD graph with some history. A auto-updates graph using Dojo would probably be better; code for that is also attached at that bug. Guess what happens for xen: # python 2.6 import libvirt c = libvirt.open('xen+unix:///') print c.getCPUStats(-1, 0) # libvir: error : this function is not supported by the connection driver: virNodeGetCPUStats # None (In reply to Philipp Hahn from comment #2) > Guess what happens for xen: As Xen is no longer supported with UCS-4.x, we can finally implement this using virNodeGetCPUStats() There is a Customer ID set so I set the flag "Enterprise Customer affected". *** This bug has been marked as a duplicate of bug 48083 *** ommit 94f3e0dcc48a7cc8b99ae4c54efcdf9e118f7e60 Author: Jürn Brodersen <brodersen@univention.de> Date: Wed Nov 21 23:44:01 2018 +0100 Subject: Bug #48083: Fix tree update and show ressources in tree [4.3-3] f99717e953 Bug #47617, Bug #47741, Bug #36661, Bug #48199, Bug #48024, Bug #45498, Bug #35196 Package: univention-virtual-machine-manager-daemon Version: 7.0.0-17A~4.3.0.201812111413 Branch: ucs_4.3-0 Scope: errata4.3-3 [4.3-3] 582fb65dce Bug #47617: univention-virtual-machine-manager-daemon 7.0.0-17A~4.3.0.201812111413 doc/errata/staging/univention-virtual-machine-manager-daemon.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) |