Network Time Protocol (NTP) in OpenStack Installation Guide for Ubuntu 12.04/14.04 (LTS)  - icehouse

Bug #1337793 reported by Marco CONSONNI
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
openstack-manuals
Fix Released
Low
Matt Kassawara

Bug Description

The guide doesn't give information on how to configure controller as the NTP "master".

Actually, in order to configure the controller as master, you need to modify ntp.conf as follows:

1) comment all the "server" lines

2) add a line as follow:
   server 127.127.1.0

that forces controller to use the local clock as reference

3) modify the following "restrict" lines

restrict -4 default kod notrap nomodify nopeer noquery

into

restrict -4 default kod notrap nomodify

and

restrict -6 default kod notrap nomodify nopeer noquery

into

restrict -6 default kod notrap nomodify

(e.g. eliminate "nopeer" and "noquery")

4) close the ntp.conf file

At this point, you can restart ntp on the controller with command

service services ntp restart

Then, in order to verify that the controller works properly as NTP master, on another node (e.g. network or compute) first you need to verify that the controller node works as an NTP master.

On the network (or compute) node type command

sudo ntpdate -d controller

You get several message, if the last line you get looks like

25 Sep 15:00:47 ntpdate[1695]: step time server 10.15.5.98 offset 24355345.479363 sec

you are fine. Otherwise, if you get something like

25 Sep 15:04:55 ntpdate[1702]: no server suitable for synchronization found

The NTP master (on the controller) is not reachable and you need to investigate.

If the NTP master (the controller) is reachable, you can configure the NTP client (network or compute node) as follows:

1) modify ntp.conf by commenting all the "server" lines and adding a ""server" line as follow

server controller

2) restart the ntp server with the following instruction

sudo service ntp restart

-----------------------------------
Built: 2014-06-30T10:48:05 00:00
git SHA: 0c7c513d09a2a080ab8b77ea7833886323484cfe
URL: http://docs.openstack.org/icehouse/install-guide/install/apt/content/basics-ntp.html
source File: file:/home/jenkins/workspace/openstack-manuals-tox-doc-publishdocs/doc/install-guide/section_basics-ntp.xml
xml:id: basics-ntp

Revision history for this message
Matt Kassawara (ionosphere80) wrote :

The "trunk" version contains more details than "icehouse" and some of your comments probably also apply to it. What do you think?

http://docs.openstack.org/trunk/install-guide/install/apt/content/basics-ntp.html

Changed in openstack-manuals:
status: New → Confirmed
importance: Undecided → Low
Revision history for this message
Matt Kassawara (ionosphere80) wrote :

Looking into this further, the controller would most likely reference an upstream NTP server rather than itself.

Changed in openstack-manuals:
assignee: nobody → Matt Kassawara (ionosphere80)
Revision history for this message
Marco CONSONNI (marco-consonni) wrote :

Yes, maybe it makes sense for the controller to reference an upstream NTP.

Changed in openstack-manuals:
milestone: none → juno
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to openstack-manuals (master)

Fix proposed to branch: master
Review: https://review.openstack.org/113055

Changed in openstack-manuals:
status: Confirmed → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to openstack-manuals (master)

Reviewed: https://review.openstack.org/113055
Committed: https://git.openstack.org/cgit/openstack/openstack-manuals/commit/?id=3351f94ec486645bda260ef5d9d4d89b3aa33670
Submitter: Jenkins
Branch: master

commit 3351f94ec486645bda260ef5d9d4d89b3aa33670
Author: Matthew Kassawara <email address hidden>
Date: Sat Aug 9 02:50:50 2014 +0000

    Improve NTP section

    I improved the NTP section with additional configuration keys
    on the server and some other minor clarifications.

    Change-Id: Idb81f970b8862e61bffd604ba400d0a18bb3b3fe
    Closes-Bug: #1337793

Changed in openstack-manuals:
status: In Progress → Fix Released
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/openstack-manuals 15.0.0

This issue was fixed in the openstack/openstack-manuals 15.0.0 release.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.