Bug 1576003

Summary: ntp package is missing from undercloud
Product: Red Hat OpenStack Reporter: Noam Manos <nmanos>
Component: instack-undercloudAssignee: Emilien Macchi <emacchi>
Status: CLOSED ERRATA QA Contact: Raviv Bar-Tal <rbartal>
Severity: medium Docs Contact:
Priority: medium    
Version: 13.0 (Queens)CC: aschultz, astafeye, augol, dbecker, jschluet, mburns, morazi, tfreger
Target Milestone: betaKeywords: Triaged
Target Release: 13.0 (Queens)   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: instack-undercloud-8.4.1-1.el7ost Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2018-06-27 13:55:29 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Noam Manos 2018-05-08 14:12:03 UTC
Description of problem:
Updating Undercloud with latest packages as described here:
https://access.redhat.com/documentation/en-us/red_hat_openstack_platform/12/html/upgrading_red_hat_openstack_platform/keeping_openstack_platform_updated

Requires to check that clocks are synchronized on the undercloud with ntpstat.
However it fails with "ntpstat: command not found".


Version-Release number of selected component (if applicable):
OSP: 13   
Puddle: 2018-04-10.2

How reproducible:
Always


Steps to Reproduce:
(undercloud) [stack@undercloud-0 ~]$ sudo ntpstat


Actual results:
sudo: ntpstat: command not found


Expected results:

ntpstat should work.
Or, if it is not necessary, remove ntpstat step from:
https://access.redhat.com/documentation/en-us/red_hat_openstack_platform/12/html/upgrading_red_hat_openstack_platform/keeping_openstack_platform_updated

Comment 1 Noam Manos 2018-05-08 14:43:35 UTC
Workaround:

(undercloud) [stack@undercloud-0 ~]$ sudo yum install ntp
...                                                                                                                                                                                      
Installed:
  ntp.x86_64 0:4.2.6p5-28.el7                                                                                                                                                                                                                  
                                                                                                                                                                                                          

(undercloud) [stack@undercloud-0 ~]$ sudo systemctl enable ntpd

Created symlink from /etc/systemd/system/multi-user.target.wants/ntpd.service to /usr/lib/systemd/system/ntpd.service.

(undercloud) [stack@undercloud-0 ~]$ sudo systemctl start ntpd

(undercloud) [stack@undercloud-0 ~]$ sudo ntpstat

unsynchronised
  time server re-starting
   polling server every 8 s

(undercloud) [stack@undercloud-0 ~]$ sudo ntpstat

synchronised to NTP server (138.236.128.112) at stratum 3 
   time correct to within 1110 ms
   polling server every 64 s

Comment 2 Alex Schultz 2018-05-08 16:25:49 UTC
It is not installed unless you configure ntp via the undercloud.conf. We've recently changed this to always be installed, but if you aren't properly configuring the ntp servers in the undercloud.conf at install time it would not install ntp.

Comment 6 errata-xmlrpc 2018-06-27 13:55:29 UTC
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-2018:2086