Bug 35069 - Add timestamp to libvirt-check.sh
Add timestamp to libvirt-check.sh
Status: CLOSED FIXED
Product: UCS
Classification: Unclassified
Component: Virtualization - UVMM
UCS 3.2
Other Linux
: P5 normal (vote)
: UCS 4.0-0-errata
Assigned To: Philipp Hahn
Erik Damrose
:
Depends on: 33966 35070
Blocks:
  Show dependency treegraph
 
Reported: 2014-06-06 08:08 CEST by Philipp Hahn
Modified: 2015-01-29 11:41 CET (History)
5 users (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Philipp Hahn univentionstaff 2014-06-06 08:08:10 CEST
+++ This bug was initially created as a clone of Bug #33966 +++
ibvirt-check.sh (and other similar scripts) should add a time-stamp to their log output to help correlate events. The current output is not very helpful:
> libvirt-check.sh: libvirt does not response like expected. Restarting libvirt now.
> Restarting UCS libvirt daemon: libvirtdok: run: univention-libvirt: (pid 14108) 0s, normally down
> .
Comment 1 Philipp Hahn univentionstaff 2014-11-12 16:09:31 CET
Please please please!
In a customer environment the check script started killing libvirtd regularly (Bug #36605). Without a time stamp is hard to correlate the execution of the script to the error message of UVMMd loosing  its connection to the affected host.
Comment 2 Philipp Hahn univentionstaff 2015-01-08 14:30:01 CET
r57189 | Bug #35069 libvirt: Improve check script

Package: univention-virtual-machine-manager-node
Version: 3.0.4-1.87.201501081418
Branch: ucs_4.0-0
Scope: errata4.0-0

2014-12-08-univention-virtual-machine-manager-node.yaml
 Add time stamp to libvirtd check script output.

# pkill -STOP libvirtd
# bash -x /usr/lib/univention-virtual-machine-manager-node/libvirt-check.sh
# cat /var/log/univention/virtual-machine-manager-node-errors.log 
Jan  8 14:14:34 test35 libvirtd: does not response, restarting
Restarting UCS libvirt daemon: libvirtdok: run: univention-libvirt: (pid 6458) 0s, normally down
.
Comment 3 Erik Damrose univentionstaff 2015-01-22 16:42:40 CET
OK: Timestamp added
OK: Now logs output of restart command
OK: YAML
-> Verified
Comment 4 Janek Walkenhorst univentionstaff 2015-01-29 11:41:10 CET
<http://errata.univention.de/ucs/4.0/54.html>