← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1897915] Re: ntp service on centos is ntp.service, but cloud-init uses nptd.service

 

This bug is believed to be fixed in cloud-init in version 20.4. If this
is still a problem for you, please make a comment and set the state back
to New

Thank you.

** Changed in: cloud-init
       Status: Fix Committed => Fix Released

-- 
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to cloud-init.
https://bugs.launchpad.net/bugs/1897915

Title:
  ntp service on centos is ntp.service, but cloud-init uses nptd.service

Status in cloud-init:
  Fix Released

Bug description:
  The ntp (client) service file installed by the centos 7 'ntp' package is named
  'ntpd' (note the d), but cloud-init's cc_ntp module identifies that
  'service_name' as 'ntp'.

  See below on centos 7.  For centos 8, there is no 'ntp' package that I see,
  it seems to have been replaced by chrony.

  [root@cent71 ~]# rpm -ql ntp | grep systemd
  /usr/lib/systemd/ntp-units.d/60-ntpd.list
  /usr/lib/systemd/system/ntpd.service
  [root@cent71 ~]# systemctl status ntp.service 
  Unit ntp.service could not be found.
  [root@cent71 ~]# systemctl cat ntp.service
  No files found for ntp.service.
  [root@cent71 ~]# systemctl cat ntpd.service
  # /usr/lib/systemd/system/ntpd.service
  [Unit]
  Description=Network Time Service
  After=syslog.target ntpdate.service sntp.service

  [Service]
  Type=forking
  EnvironmentFile=-/etc/sysconfig/ntpd
  ExecStart=/usr/sbin/ntpd -u ntp:ntp $OPTIONS
  PrivateTmp=true

  [Install]
  WantedBy=multi-user.target

To manage notifications about this bug go to:
https://bugs.launchpad.net/cloud-init/+bug/1897915/+subscriptions


References