Note: This bug is displayed in read-only format because
the product is no longer active in Red Hat Bugzilla.
RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Description of problem:
After 7 days and 15 hours, it's found guest system time drift is about 16 seconds from host system time, while the guest hwclock is accordant with host system time and the drift is within 1 second.
Version-Release number of selected component (if applicable):
Host kernel: 3.10.0-318.el7.ppc64le
Guest kernel: 3.10.0-316.el7.ppc64le
Qemu-kvm-rhev: qemu-kvm-rhev-2.3.0-26.el7.ppc64le
How reproducible:
100%
Steps to Reproduce:
1. Sync the system time in host with following command:
# ntpdate clock.redhat.com
2. Start 2 guests with '-rtc base=utc,clock=host' and '-rtc base=utc,clock=vm' respectively
3. Sync the system time in both guests as step 1 do.
4. Leave all system running there
5. After 7days 15 hours, check system time drift in the host and both guests with following command:
# ntpdate -q clock.redhat.com
Check system time and hwclock in the host and both guests with following command:
# date
# hwclock
Actual results:
In step5, system time drifts of the 2 guests are both about 16 seconds, while that of the host is within 1 second(I remembered it's only 0.00# seconds); guests hwclock is accordant with host system time, i.e. the drift is within 1 second.
Expected results:
Guest system time dirfts should not be so large.
Additional info:
(In reply to David Gibson from comment #3)
> Is the host running ntpd?
>
> Is the guest running ntpd?
I have not set them manually, so they should be the default one on host/guests.
On current rhel7.2z host, it's found the service is inactive:
[root@ibm-p8-kvm-02-qe ~]# service ntpd status
Redirecting to /bin/systemctl status ntpd.service
● ntpd.service - Network Time Service
Loaded: loaded (/usr/lib/systemd/system/ntpd.service; disabled; vendor preset: disabled)
Active: inactive (dead)
[root@ibm-p8-kvm-02-qe ~]# uname -r
3.10.0-327.8.1.el7.ppc64le
[root@ibm-p8-kvm-02-qe ~]# rpm -qa|grep qemu-kvm-rhev
qemu-kvm-rhev-2.3.0-31.el7_2.5.ppc64le
qemu-kvm-rhev-debuginfo-2.3.0-31.el7_2.5.ppc64le
While for a rhel7.2z le guest on the host, it's found there is no the service:
[root@dhcp70-169 ~]# service ntpd status
Redirecting to /bin/systemctl status ntpd.service
● ntpd.service
Loaded: not-found (Reason: No such file or directory)
Active: inactive (dead)
[root@dhcp70-169 ~]# uname -r
3.10.0-327.2.1.el7.ppc64le
Hmm. I suspect ntpd was running in the host at some point. Without something like NTP actively adjusting the host time, I don't see how it could get out of sync with the guets - they're using the same physical timebase.
However, if NTP runs in the host it will adjust the host time and there's no obvious way to communicate those adjustments to the guest. There's not really anything we can do about this.
If we confirmed these got out of sync with no NTPD in the host, we might have a real bug.
The obvious workaround is to run ntpd in the guests.
So, I'm intending to close this as CANTFIX.