sonic-net / sonic-buildimage

Scripts which perform an installable binary image build for SONiC
Other
730 stars 1.4k forks source link

[ntpd] leapsecond file ('/usr/share/zoneinfo/leap-seconds.list'): expired error message #11327

Open stepanblyschak opened 2 years ago

stepanblyschak commented 2 years ago

Description

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

Describe the results you expected:

No errors reported by ntpd.

Output of show version:

SONiC Software Version: SONiC.202111.85-e8daeacd3_Internal
Distribution: Debian 11.3
Kernel: 5.10.0-8-2-amd64
Build commit: e8daeacd3
Build date: Sun Jun 26 08:27:14 UTC 2022
Built by: sw-r2d2-bot@r-build-sonic02-006

Platform: x86_64-mlnx_msn3800-r0
HwSKU: ACS-MSN3800
ASIC: mellanox
ASIC Count: 1
Serial Number: MT1937X00527
Model Number: MSN3800-CS2FO
Hardware Revision: A2
Uptime: 14:44:13 up 11 min,  1 user,  load average: 0.59, 0.79, 0.58

Docker images:
REPOSITORY                                         TAG                            IMAGE ID       SIZE
docker-dhcp-relay                                  latest                         e5f022f96fe2   440MB
docker-teamd                                       202111.85-e8daeacd3_Internal   43b8942e58fa   441MB
docker-teamd                                       latest                         43b8942e58fa   441MB
docker-sonic-telemetry                             202111.85-e8daeacd3_Internal   ed680a1b7112   515MB
docker-sonic-telemetry                             latest                         ed680a1b7112   515MB
docker-sonic-mgmt-framework                        202111.85-e8daeacd3_Internal   81083c613e74   582MB
docker-sonic-mgmt-framework                        latest                         81083c613e74   582MB
docker-snmp                                        202111.85-e8daeacd3_Internal   02c3f49ab9fb   470MB
docker-snmp                                        latest                         02c3f49ab9fb   470MB
docker-sflow                                       202111.85-e8daeacd3_Internal   2f7addff22fc   442MB
docker-sflow                                       latest                         2f7addff22fc   442MB
docker-router-advertiser                           202111.85-e8daeacd3_Internal   badeb599c642   427MB
docker-router-advertiser                           latest                         badeb599c642   427MB
docker-orchagent                                   202111.85-e8daeacd3_Internal   30d325397f0d   459MB
docker-orchagent                                   latest                         30d325397f0d   459MB
docker-nat                                         202111.85-e8daeacd3_Internal   63543566f96b   444MB
docker-nat                                         latest                         63543566f96b   444MB
docker-mux                                         202111.85-e8daeacd3_Internal   0ea5f0a9ccfb   479MB
docker-mux                                         latest                         0ea5f0a9ccfb   479MB
docker-macsec                                      202111.85-e8daeacd3_Internal   166bf4fad94d   444MB
docker-macsec                                      latest                         166bf4fad94d   444MB
docker-lldp                                        202111.85-e8daeacd3_Internal   7c8efac3480e   467MB
docker-lldp                                        latest                         7c8efac3480e   467MB
docker-fpm-frr                                     202111.85-e8daeacd3_Internal   877d61c181b2   459MB
docker-fpm-frr                                     latest                         877d61c181b2   459MB
docker-database                                    202111.85-e8daeacd3_Internal   963b1342a59a   427MB
docker-database                                    latest                         963b1342a59a   427MB
urm.nvidia.com/sw-nbu-sws-sonic-docker/sonic-wjh   1.2.0-202111-internal-38       e1bb8b5eb8f7   460MB
docker-syncd-mlnx                                  202111.85-e8daeacd3_Internal   3b1693b9a29c   926MB
docker-syncd-mlnx                                  latest                         3b1693b9a29c   926MB
docker-platform-monitor                            202111.85-e8daeacd3_Internal   686d0a029b0c   818MB
docker-platform-monitor                            latest                         686d0a029b0c   818MB

Output of show techsupport:

(paste your output here or download and attach the file here )

Additional information you deem important (e.g. issue happens only occasionally):

sysdump_test_check_errors_in_log_during_deploy_sonic_image.tar.gz

zhangyanzhao commented 2 years ago

Need someone to investigate the impact from this leap second issue.

psvz commented 1 year ago

any news on this please? Is this expiration of any concern?