Operations Manager does not sync with the configured NTP server in PCF 2.0
search cancel

Operations Manager does not sync with the configured NTP server in PCF 2.0

book

Article ID: 293587

calendar_today

Updated On:

Products

Operations Manager

Issue/Introduction

Symptoms:

Operations Manager 2.0 no longer uses ntpd (Network Time Protocol daemon) to sync its time with the configured Network Time Protocol (NTP) server. Instead, the Operations Manager (Ops Manager) now syncs NTP using the ntpdate command scheduled in 15-minute intervals by crontab.

This change introduced a bug where Ops Manager no longer syncs with the configured NTP servers by default.

Environment


Cause

The Ops Manager now syncs NTP using the ntpdate command scheduled in 15-minute intervals by crontab.

Resolution

This is resolved in Operations Manager v2.0.16 and v2.1.7 or later.  Ops Manager reverted the change to ntpdate and again uses ntpd to sync its time with remote servers.

If using Ops Manager v2.0.0 - v2.0.15 or v2.1.0 - v2.1.6 and you are unable to upgrade, use the workaround below.

1. Create the ntpserver file on the Ops Manager VM using the following command:
sudo touch /var/vcap/bosh/etc/ntpserver
2. Open the file with a text editor and add a space delimited list of NTP servers:
10.2.3.4 10.2.3.5
3. Ops Manager will now sync with these defined NTP servers every 15 minutes. If you need to sync the time right away you can run this command:
sudo /var/vcap/bosh/bin/ntpdate