Network Time Protocol (NTP) in OpenStack Installation Guide for Ubuntu 12.04/14.04 (LTS) - icehouse
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: 0c7c513d09a2a08
URL: http://
source File: file:/home/
xml:id: basics-ntp
Changed in openstack-manuals: | |
milestone: | none → juno |
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