It is observed that images built prior to Jun 28th have outdated /usr/share/zoneinfo/leap-seconds.list file.
admin@r-tigris-13:~$ cat /usr/share/zoneinfo/leap-seconds.list | grep expires
# File expires on: 28 June 2022
and ntpd reports about it with error severity:
admin@r-tigris-13:~$ show log ntpd | grep leap
Jul 4 14:33:28.188826 sonic NOTICE ntpd[6042]: leapsecond file ('/usr/share/zoneinfo/leap-seconds.list'): good hash signature
Jul 4 14:33:28.189130 sonic NOTICE ntpd[6042]: leapsecond file ('/usr/share/zoneinfo/leap-seconds.list'): loaded, expire=2022-06-28T00:00:00Z last=2017-01-01T00:00:00Z ofs=37
Jul 4 14:33:28.189168 sonic ERR ntpd[6042]: leapsecond file ('/usr/share/zoneinfo/leap-seconds.list'): expired 7 days ago
Images built after the file beeing updated in the corresponding debian upstream repository do not have such problem as newer images have newer file that expires in Dec 2022.
The ntpd uses leap-seconds.list file located at /usr/share/zoneinfo/ to adjust the time. This file is beeing updated from time to time so that when there is a leap second in a near future the ntpd can be aware of it. However, /usr/share/zoneinfo/leap-seconds.list is not updated automatically by the system nor can it be done manually as the corresponding command is not working:
admin@r-tigris-13:~$ sudo update-leap
Can't locate Net/SSLeay.pm in @INC (you may need to install the Net::SSLeay module) (@INC contains: /etc/perl /usr/local/lib/x86_64-linux-gnu/perl/5.32.1 /usr/local/share/perl/5.32.1 /usr/lib/x86_64-linux-gnu/perl5/5.32 /usr/share/perl5 /usr/lib/x86_64-linux-gnu/perl-base /usr/lib/x86_64-linux-gnu/perl/5.32 /usr/share/perl/5.32 /usr/local/lib/site_perl) at /usr/bin/update-leap line 30.
BEGIN failed--compilation aborted at /usr/bin/update-leap line 30.
Steps to reproduce the issue:
1.Deploy an image built prior to 28th Jub
Describe the results you received:
Error in the log:
admin@r-tigris-13:~$ show log ntpd | grep leap
Jul 4 14:33:28.188826 sonic NOTICE ntpd[6042]: leapsecond file ('/usr/share/zoneinfo/leap-seconds.list'): good hash signature
Jul 4 14:33:28.189130 sonic NOTICE ntpd[6042]: leapsecond file ('/usr/share/zoneinfo/leap-seconds.list'): loaded, expire=2022-06-28T00:00:00Z last=2017-01-01T00:00:00Z ofs=37
Jul 4 14:33:28.189168 sonic ERR ntpd[6042]: leapsecond file ('/usr/share/zoneinfo/leap-seconds.list'): expired 7 days ago
Description
It is observed that images built prior to Jun 28th have outdated /usr/share/zoneinfo/leap-seconds.list file.
and ntpd reports about it with error severity:
Images built after the file beeing updated in the corresponding debian upstream repository do not have such problem as newer images have newer file that expires in Dec 2022.
The ntpd uses leap-seconds.list file located at /usr/share/zoneinfo/ to adjust the time. This file is beeing updated from time to time so that when there is a leap second in a near future the ntpd can be aware of it. However, /usr/share/zoneinfo/leap-seconds.list is not updated automatically by the system nor can it be done manually as the corresponding command is not working:
Steps to reproduce the issue:
1.Deploy an image built prior to 28th Jub
Describe the results you received:
Error in the log:
Describe the results you expected:
No errors reported by ntpd.
Output of
show version
:Output of
show techsupport
:Additional information you deem important (e.g. issue happens only occasionally):
sysdump_test_check_errors_in_log_during_deploy_sonic_image.tar.gz