Bug 35196 - Show CPU load of virtualization hosts
Show CPU load of virtualization hosts
Status: CLOSED FIXED
Product: UCS
Classification: Unclassified
Component: Virtualization - UVMM
UCS 4.2
Other Linux
: P5 enhancement (vote)
: UCS 4.3-3-errata
Assigned To: Jürn Brodersen
Philipp Hahn
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2014-06-25 13:22 CEST by Janis Meybohm
Modified: 2018-12-12 13:45 CET (History)
1 user (show)

See Also:
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:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Janis Meybohm univentionstaff 2014-06-25 13:22:20 CEST
Ticket#: 2014061821000579

It would be nice if we could show the CPU load of physical hosts in UVMM.
Comment 1 Philipp Hahn univentionstaff 2014-06-25 14:57:07 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.
Comment 2 Philipp Hahn univentionstaff 2014-06-25 14:59:19 CEST
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
Comment 3 Philipp Hahn univentionstaff 2017-05-03 12:29:22 CEST
(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()
Comment 4 Florian Best univentionstaff 2017-06-28 14:52:50 CEST
There is a Customer ID set so I set the flag "Enterprise Customer affected".
Comment 5 Philipp Hahn univentionstaff 2018-12-11 13:25:14 CET

*** This bug has been marked as a duplicate of bug 48083 ***
Comment 6 Philipp Hahn univentionstaff 2018-12-11 13:25:40 CET
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
Comment 7 Philipp Hahn univentionstaff 2018-12-11 14:17:15 CET
[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(-)
Comment 8 Arvid Requate univentionstaff 2018-12-12 13:45:36 CET
<http://errata.software-univention.de/ucs/4.3/382.html>