For NTPsec, ignore error about statistics directory not existing#10502
Merged
saiarcot895 merged 1 commit intosonic-net:masterfrom Oct 26, 2023
Merged
Conversation
NTPsec by default wants to log statistics to a file (or at least check to see that the statistics directory exists, even if no logging is enabled). To match the behavior we had with NTP where no logging is enabled, don't configure the statistics directory for NTPsec, and ignore any errors about it not existing. Signed-off-by: Saikrishna Arcot <[email protected]>
yxieca
approved these changes
Oct 26, 2023
weiguo-nvidia
added a commit
to weiguo-nvidia/sonic-mgmt
that referenced
this pull request
Nov 7, 2025
PR sonic-net#10502 already ignore the error log, but the regex can not match this error log, fix it. Change-Id: I2af0013631ffd1c9706f5bd8c48341132324ffaa
11 tasks
wangxin
pushed a commit
that referenced
this pull request
Dec 16, 2025
PR #10502 already ignore the error log, but the regex .* ERR ntpd.*: statistics directory .* does not exist or is unwriteable, error No such file or directory can not match this error log. So update the regex. ERR ntpd[25710]: statistics directory /var/log/ntpsec/ does not exist or is unwriteable, error Permission denied
gshemesh2
pushed a commit
to gshemesh2/sonic-mgmt
that referenced
this pull request
Dec 16, 2025
PR sonic-net#10502 already ignore the error log, but the regex .* ERR ntpd.*: statistics directory .* does not exist or is unwriteable, error No such file or directory can not match this error log. So update the regex. ERR ntpd[25710]: statistics directory /var/log/ntpsec/ does not exist or is unwriteable, error Permission denied Signed-off-by: Guy Shemesh <[email protected]>
selldinesh
pushed a commit
to selldinesh/sonic-mgmt
that referenced
this pull request
Dec 18, 2025
PR sonic-net#10502 already ignore the error log, but the regex .* ERR ntpd.*: statistics directory .* does not exist or is unwriteable, error No such file or directory can not match this error log. So update the regex. ERR ntpd[25710]: statistics directory /var/log/ntpsec/ does not exist or is unwriteable, error Permission denied Signed-off-by: selldinesh <[email protected]>
gshemesh2
pushed a commit
to gshemesh2/sonic-mgmt
that referenced
this pull request
Dec 21, 2025
PR sonic-net#10502 already ignore the error log, but the regex .* ERR ntpd.*: statistics directory .* does not exist or is unwriteable, error No such file or directory can not match this error log. So update the regex. ERR ntpd[25710]: statistics directory /var/log/ntpsec/ does not exist or is unwriteable, error Permission denied Signed-off-by: Guy Shemesh <[email protected]>
gshemesh2
pushed a commit
to gshemesh2/sonic-mgmt
that referenced
this pull request
Dec 21, 2025
PR sonic-net#10502 already ignore the error log, but the regex .* ERR ntpd.*: statistics directory .* does not exist or is unwriteable, error No such file or directory can not match this error log. So update the regex. ERR ntpd[25710]: statistics directory /var/log/ntpsec/ does not exist or is unwriteable, error Permission denied Signed-off-by: Guy Shemesh <[email protected]>
vrajeshe
pushed a commit
to Akshath-17/sonic-mgmt
that referenced
this pull request
Jan 4, 2026
PR sonic-net#10502 already ignore the error log, but the regex .* ERR ntpd.*: statistics directory .* does not exist or is unwriteable, error No such file or directory can not match this error log. So update the regex. ERR ntpd[25710]: statistics directory /var/log/ntpsec/ does not exist or is unwriteable, error Permission denied Signed-off-by: Venkata Gouri Rajesh Etla <[email protected]>
venu-nexthop
pushed a commit
to venu-nexthop/sonic-mgmt
that referenced
this pull request
Jan 13, 2026
PR sonic-net#10502 already ignore the error log, but the regex .* ERR ntpd.*: statistics directory .* does not exist or is unwriteable, error No such file or directory can not match this error log. So update the regex. ERR ntpd[25710]: statistics directory /var/log/ntpsec/ does not exist or is unwriteable, error Permission denied
yifan-nexthop
pushed a commit
to nexthop-ai/sonic-mgmt
that referenced
this pull request
Jan 14, 2026
PR sonic-net#10502 already ignore the error log, but the regex .* ERR ntpd.*: statistics directory .* does not exist or is unwriteable, error No such file or directory can not match this error log. So update the regex. ERR ntpd[25710]: statistics directory /var/log/ntpsec/ does not exist or is unwriteable, error Permission denied Signed-off-by: YiFan Wang <[email protected]>
mssonicbld
pushed a commit
to mssonicbld/sonic-mgmt
that referenced
this pull request
Jan 20, 2026
PR sonic-net#10502 already ignore the error log, but the regex .* ERR ntpd.*: statistics directory .* does not exist or is unwriteable, error No such file or directory can not match this error log. So update the regex. ERR ntpd[25710]: statistics directory /var/log/ntpsec/ does not exist or is unwriteable, error Permission denied
11 tasks
PriyanshTratiya
pushed a commit
to PriyanshTratiya/sonic-mgmt
that referenced
this pull request
Jan 21, 2026
PR sonic-net#10502 already ignore the error log, but the regex .* ERR ntpd.*: statistics directory .* does not exist or is unwriteable, error No such file or directory can not match this error log. So update the regex. ERR ntpd[25710]: statistics directory /var/log/ntpsec/ does not exist or is unwriteable, error Permission denied Signed-off-by: Priyansh Tratiya <[email protected]>
ytzur1
pushed a commit
to ytzur1/sonic-mgmt
that referenced
this pull request
Feb 2, 2026
PR sonic-net#10502 already ignore the error log, but the regex .* ERR ntpd.*: statistics directory .* does not exist or is unwriteable, error No such file or directory can not match this error log. So update the regex. ERR ntpd[25710]: statistics directory /var/log/ntpsec/ does not exist or is unwriteable, error Permission denied Signed-off-by: Yael Tzur <[email protected]>
abhishek-nexthop
pushed a commit
to nexthop-ai/sonic-mgmt
that referenced
this pull request
Feb 6, 2026
PR sonic-net#10502 already ignore the error log, but the regex .* ERR ntpd.*: statistics directory .* does not exist or is unwriteable, error No such file or directory can not match this error log. So update the regex. ERR ntpd[25710]: statistics directory /var/log/ntpsec/ does not exist or is unwriteable, error Permission denied
rraghav-cisco
pushed a commit
to rraghav-cisco/sonic-mgmt
that referenced
this pull request
Feb 13, 2026
PR sonic-net#10502 already ignore the error log, but the regex .* ERR ntpd.*: statistics directory .* does not exist or is unwriteable, error No such file or directory can not match this error log. So update the regex. ERR ntpd[25710]: statistics directory /var/log/ntpsec/ does not exist or is unwriteable, error Permission denied Signed-off-by: Raghavendran Ramanathan <[email protected]>
anilal-amd
pushed a commit
to anilal-amd/anilal-forked-sonic-mgmt
that referenced
this pull request
Feb 19, 2026
PR sonic-net#10502 already ignore the error log, but the regex .* ERR ntpd.*: statistics directory .* does not exist or is unwriteable, error No such file or directory can not match this error log. So update the regex. ERR ntpd[25710]: statistics directory /var/log/ntpsec/ does not exist or is unwriteable, error Permission denied Signed-off-by: Zhuohui Tan <[email protected]>
vmittal-msft
pushed a commit
that referenced
this pull request
Feb 23, 2026
PR #10502 already ignore the error log, but the regex .* ERR ntpd.*: statistics directory .* does not exist or is unwriteable, error No such file or directory can not match this error log. So update the regex. ERR ntpd[25710]: statistics directory /var/log/ntpsec/ does not exist or is unwriteable, error Permission denied Co-authored-by: weguo-NV <[email protected]>
abhishek-nexthop
pushed a commit
to nexthop-ai/sonic-mgmt
that referenced
this pull request
Mar 17, 2026
PR sonic-net#10502 already ignore the error log, but the regex .* ERR ntpd.*: statistics directory .* does not exist or is unwriteable, error No such file or directory can not match this error log. So update the regex. ERR ntpd[25710]: statistics directory /var/log/ntpsec/ does not exist or is unwriteable, error Permission denied Signed-off-by: Abhishek <[email protected]>
venu-nexthop
pushed a commit
to venu-nexthop/sonic-mgmt
that referenced
this pull request
Mar 27, 2026
PR sonic-net#10502 already ignore the error log, but the regex .* ERR ntpd.*: statistics directory .* does not exist or is unwriteable, error No such file or directory can not match this error log. So update the regex. ERR ntpd[25710]: statistics directory /var/log/ntpsec/ does not exist or is unwriteable, error Permission denied
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description of PR
Summary:
Fixes # (issue)
Type of change
Back port request
Approach
What is the motivation for this PR?
NTPsec by default wants to log statistics to a file (or at least check to see that the statistics directory exists, even if no logging is enabled). To match the behavior we had with NTP where no logging is enabled, don't configure the statistics directory for NTPsec, and ignore any errors about it not existing.
How did you do it?
How did you verify/test it?
Tested on Bookworm image by running
generic_config_updater/test_aaa.pytest suite. This suite was previously failing with loganalyzer errors from ntpd.Any platform specific information?
Supported testbed topology if it's a new test case?
Documentation