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

Bug #1897915 reported by Scott Moser
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Fix Released
Scott Moser

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
[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
Description=Network Time Service
After=syslog.target ntpdate.service sntp.service

ExecStart=/usr/sbin/ntpd -u ntp:ntp $OPTIONS


Revision history for this message
Scott Moser (smoser) wrote :
Revision history for this message
Scott Moser (smoser) wrote :
Changed in cloud-init:
assignee: nobody → Scott Moser (smoser)
status: New → Fix Committed
importance: Undecided → Medium
Revision history for this message
Chad Smith (chad.smith) wrote : Fixed in cloud-init version 20.4.

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
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.