Bug 17869

Summary: Statistiken über libvirt
Product: UCS Reporter: Andreas Büsching <buesching>
Component: Virtualization - UVMMAssignee: Bugzilla Mailingliste <bugzilla>
Status: CLOSED WONTFIX QA Contact:
Severity: enhancement    
Priority: P5 CC: gohmann, gulden, hahn
Version: UCS 2.3   
Target Milestone: ---   
Hardware: Other   
OS: Linux   
See Also: https://forge.univention.org/bugzilla/show_bug.cgi?id=35196
What kind of report is it?: --- 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?:
School Customer affected?: ISV affected?:
Waiting Support: Flags outvoted (downgraded) after PO Review:
Ticket number: Bug group (optional):
Max CVSS v3 score:

Description Andreas Büsching univentionstaff 2010-03-12 14:36:14 CET
libvirt bietet laut der API die Möglichkeit Statistiken über die virtuellen Instanzen und die Dom0 abzufragen. Für die Domain-0 sind die Informationen stark eingeschränkt. Zusätzlich haben erste Tests gezeigt, dass die Methoden nicht alle funktionieren:

virsh # domblkstat ucs1 hda
error: Failed to get block stats ucs1 hda
error: internal error read_bd_stats: Frontend block device not connected

virsh # dominfo ucs1
Id:             5
Name:           ucs1
UUID:           16feabb0-4df9-a7d5-0c55-527628280554
OS Type:        hvm
State:          idle
CPU(s):         1
CPU time:       14,0s
Max memory:     528384 kB
Used memory:    528300 kB
Autostart:      disable

virsh # vol-info /var/lib/libvirt/images/ucs1.img
Name:           ucs1.img
Type:           file
Capacity:       7,81 GB
Allocation:     943,97 MB


virsh # dominfo 0
Id:             0
Name:           Domain-0
UUID:           00000000-0000-0000-0000-000000000000
OS Type:        linux
State:          running
CPU(s):         2
CPU time:       1017,8s
Max memory:     no limit
Used memory:    3325952 kB
Autostart:      disable

Zur Dom0 bekommt man so keine Plattenstatistiken, da dafür kein Volume definiert ist. Es wäre zu prüfen, ob die Statistikfunktionen für Dom0 erweitert werden können und ob domblkstat "repariert" werden kann (das domblkstat nicht funktioniert ist schon bekannt, http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=524434).
Comment 1 Philipp Hahn univentionstaff 2012-12-14 09:58:15 CET
(In reply to comment #0)
> (das domblkstat nicht funktioniert ist schon bekannt,
> http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=524434).

Mit UCS-3.1 wird libvirt-0.9.12 verwendet, wo das korrigiert ist und inzwischen funktioniert.
Comment 2 Stefan Gohmann univentionstaff 2014-02-18 21:38:17 CET
This issue has been filed against UCS 2.3.

UCS 2.3 is out of maintenance and many UCS components have vastly changed in
later releases. Thus, this issue is now being closed.

If this issue still occurs in newer UCS versions, please use "Clone this bug".
In this case please provide detailed information on how this issue is affecting
you.