awslabs / ami-builder-packer

An example of an AMI Builder using CI/CD with AWS CodePipeline, AWS CodeBuild, Hashicorp Packer and Ansible.
Apache License 2.0
461 stars 230 forks source link

kernel time synchronization flag is not set #8

Closed errordeveloper closed 5 years ago

errordeveloper commented 6 years ago

It appears that Amazon Linux 2 use crony as NTP daemon, but according to timedatectl status the NTP synchronization is off:

[root@ip-192-168-254-114 /]# timedatectl status
      Local time: Sun 2018-07-08 11:58:28 UTC
  Universal time: Sun 2018-07-08 11:58:28 UTC
        RTC time: Sun 2018-07-08 11:58:27
       Time zone: n/a (UTC, +0000)
     NTP enabled: yes
NTP synchronized: no
 RTC in local TZ: no
      DST active: n/a
[root@ip-192-168-254-114 /]# 

In turns, this breaks Prometheus timex metric.

errordeveloper commented 6 years ago

I don't think this issue strictly belongs here, but I have no idea where else to report it.

heitorlessa commented 5 years ago

Hello and thank you for opening up an issue - This would be best reported in the Amazon Linux Forum.