Bug 1455771
| Summary: | [downstream clone - 4.1.3] [RFE] Log collector should collect time diff for all hosts | ||
|---|---|---|---|
| Product: | Red Hat Enterprise Virtualization Manager | Reporter: | rhev-integ |
| Component: | ovirt-log-collector | Assignee: | Sandro Bonazzola <sbonazzo> |
| Status: | CLOSED ERRATA | QA Contact: | Aleksei Slaikovskii <aslaikov> |
| Severity: | medium | Docs Contact: | |
| Priority: | unspecified | ||
| Version: | 4.0.6 | CC: | bgraveno, lsurette, lsvaty, mkalinin, rbalakri, srevivo, ykaul, ylavi |
| Target Milestone: | ovirt-4.1.3 | Keywords: | FutureFeature, ZStream |
| Target Release: | --- | Flags: | lsvaty:
testing_plan_complete-
|
| Hardware: | All | ||
| OS: | Linux | ||
| Whiteboard: | |||
| Fixed In Version: | ovirt-log-collector-4.1.2-1.el7ev | Doc Type: | Enhancement |
| Doc Text: |
When collecting SOS reports from hosts, chrony and systemd SOS plugins can collect information about time synchronization. In addition, a new option --time-only has been added to ovirt-log-collector allowing information about time differences to be gathered from the hosts without gathering full SOS reports, saving a considerable amount of time for the operation.
|
Story Points: | --- |
| Clone Of: | 1404509 | Environment: | |
| Last Closed: | 2017-07-06 07:31:59 UTC | Type: | --- |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | Integration | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
| Embargoed: | |||
| Bug Depends On: | 1404509 | ||
| Bug Blocks: | 1455781, 1487037 | ||
|
Description
rhev-integ
2017-05-26 05:48:54 UTC
A possible way to do (Originally by Sandro Bonazzola) A possible way to do a check against time drift is to leverage ntpq or chronyc commands. Need to check if sos already collect this kind of data. (Originally by Sandro Bonazzola) The systemd sos plugin provides the output from timedatectl:
$ timedatectl
Local time: mer 2017-05-24 13:35:46 CEST
Universal time: mer 2017-05-24 11:35:46 UTC
RTC time: mer 2017-05-24 11:35:46
Time zone: Europe/Rome (CEST, +0200)
Network time on: yes
NTP synchronized: yes
RTC in local TZ: no
and the chrony plugin provides time drift:
# cat chronyc_sources
210 Number of sources = 4
MS Name/IP address Stratum Poll Reach LastRx Last sample
===============================================================================
^? blue.1e400.net 0 9 0 - +0ns[ +0ns] +/- 0ns
^* ntp-2.arkena.net 2 7 355 813 -2808us[-4156us] +/- 41ms
^? server1.websters-compute> 2 9 4 21m +13ms[ +12ms] +/- 50ms
^+ iris.linocomm.net 2 7 377 39 -9300us[-9300us] +/- 78ms
# cat chronyc_tracking
Reference ID : 5F51AD4A (ntp-2.arkena.net)
Stratum : 3
Ref time (UTC) : Wed May 24 11:18:51 2017
System time : 0.000000059 seconds fast of NTP time
Last offset : -0.001348147 seconds
RMS offset : 0.000891597 seconds
Frequency : 9.894 ppm fast
Residual freq : -0.298 ppm
Skew : 2.514 ppm
Root delay : 0.050097819 seconds
Root dispersion : 0.018574700 seconds
Update interval : 518.1 seconds
Leap status : Normal
(Originally by Sandro Bonazzola)
Also added --time-only option to skip sos collection from specified hosts, in particular, from all known hosts (Originally by Sandro Bonazzola) Verified on ovirt-log-collector-4.1.3-1.el7ev.noarch 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/RHEA-2017:1695 |