← Back to team overview

yahoo-eng-team team mailing list archive

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

 

Public bug reported:

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

** Affects: cloud-init
     Importance: Undecided
         Status: New

-- 
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:
  New

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


Follow ups