Skip to content

Fix NTP test failures due to unsynchronized clock#19444

Merged
yejianquan merged 1 commit intosonic-net:masterfrom
opcoder0:fix/ntp-test-failures-on-ntpsec
Jul 7, 2025
Merged

Fix NTP test failures due to unsynchronized clock#19444
yejianquan merged 1 commit intosonic-net:masterfrom
opcoder0:fix/ntp-test-failures-on-ntpsec

Conversation

@opcoder0
Copy link
Copy Markdown
Contributor

@opcoder0 opcoder0 commented Jul 7, 2025

Description of PR

The PR contains fix for failed NTP testcases on Bookworm based PTF image. The NTPSec daemon on Bookworm has "tos minclock 4 minsane 3" configuration line which requires at least 4 clocks to be available before ntpstat reports synchronized status. Since we use local clock, the line is commented.

Applicable only to docker-ptf images that are based on Bookworm.

Summary:
Fixes # (issue)

Type of change

  • Bug fix
  • Testbed and Framework(new/improvement)
  • New Test case
    • Skipped for non-supported platforms
  • Test case improvement

Back port request

  • 202205
  • 202305
  • 202311
  • 202405
  • 202411
  • 202505

Approach

What is the motivation for this PR?

Fix NTP test failures.

How did you do it?

See description

How did you verify/test it?

Manually in VS test testbed.

Any platform specific information?

No

Supported testbed topology if it's a new test case?

NA

Documentation

NA

@mssonicbld
Copy link
Copy Markdown
Collaborator

/azp run

@azure-pipelines
Copy link
Copy Markdown

Azure Pipelines successfully started running 1 pipeline(s).

@opcoder0 opcoder0 requested review from r12f, wangxin and xwjiang-ms July 7, 2025 06:31
Copy link
Copy Markdown
Collaborator

@yejianquan yejianquan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@mssonicbld
Copy link
Copy Markdown
Collaborator

@opcoder0 PR conflicts with 202505 branch

@r12f
Copy link
Copy Markdown
Collaborator

r12f commented Jul 9, 2025

hi @opcoder0 , do you mind to help pick this change to 202412?

@r12f
Copy link
Copy Markdown
Collaborator

r12f commented Jul 10, 2025

Having dependency on this PR: #18841. Currently, picking this up first.

@mssonicbld
Copy link
Copy Markdown
Collaborator

Cherry-pick PR to msft-202412: Azure/sonic-mgmt.msft#519

@Verma-Anukul
Copy link
Copy Markdown
Contributor

@opcoder0

PR conflicts with 202505 branch. Can you please check it.

@opcoder0
Copy link
Copy Markdown
Contributor Author

@opcoder0

PR conflicts with 202505 branch. Can you please check it.

Thank you @Verma-Anukul I have raised a PR manually - #19948

yejianquan pushed a commit that referenced this pull request Jul 31, 2025
cherry-pick of #19444

Description of PR
Conflicts caused missing fixes in 202505. This PR includes those changes -

a7de0fb
01bd7f2

co-authorized by: [email protected]
nissampa pushed a commit to nissampa/sonic-mgmt_dpu_test that referenced this pull request Aug 7, 2025
Description of PR
The PR contains fix for failed NTP testcases on Bookworm based PTF image. The NTPSec daemon on Bookworm has "tos minclock 4 minsane 3" configuration line which requires at least 4 clocks to be available before ntpstat reports synchronized status. Since we use local clock, the line is commented.

Applicable only to docker-ptf images that are based on Bookworm.

Summary:
Fixes # (issue)

Type of change
 Bug fix
 Testbed and Framework(new/improvement)
 New Test case
 Skipped for non-supported platforms
 Test case improvement

Approach
What is the motivation for this PR?
Fix NTP test failures.

How did you do it?
See description

How did you verify/test it?
Manually in VS test testbed.

Any platform specific information?
No

signed-off-by: [email protected]
ashutosh-agrawal pushed a commit to ashutosh-agrawal/sonic-mgmt that referenced this pull request Aug 14, 2025
Description of PR
The PR contains fix for failed NTP testcases on Bookworm based PTF image. The NTPSec daemon on Bookworm has "tos minclock 4 minsane 3" configuration line which requires at least 4 clocks to be available before ntpstat reports synchronized status. Since we use local clock, the line is commented.

Applicable only to docker-ptf images that are based on Bookworm.

Summary:
Fixes # (issue)

Type of change
 Bug fix
 Testbed and Framework(new/improvement)
 New Test case
 Skipped for non-supported platforms
 Test case improvement

Approach
What is the motivation for this PR?
Fix NTP test failures.

How did you do it?
See description

How did you verify/test it?
Manually in VS test testbed.

Any platform specific information?
No

signed-off-by: [email protected]
vidyac86 pushed a commit to vidyac86/sonic-mgmt that referenced this pull request Oct 23, 2025
Description of PR
The PR contains fix for failed NTP testcases on Bookworm based PTF image. The NTPSec daemon on Bookworm has "tos minclock 4 minsane 3" configuration line which requires at least 4 clocks to be available before ntpstat reports synchronized status. Since we use local clock, the line is commented.

Applicable only to docker-ptf images that are based on Bookworm.

Summary:
Fixes # (issue)

Type of change
 Bug fix
 Testbed and Framework(new/improvement)
 New Test case
 Skipped for non-supported platforms
 Test case improvement

Approach
What is the motivation for this PR?
Fix NTP test failures.

How did you do it?
See description

How did you verify/test it?
Manually in VS test testbed.

Any platform specific information?
No

signed-off-by: [email protected]
opcoder0 added a commit to opcoder0/sonic-mgmt that referenced this pull request Dec 8, 2025
Description of PR
The PR contains fix for failed NTP testcases on Bookworm based PTF image. The NTPSec daemon on Bookworm has "tos minclock 4 minsane 3" configuration line which requires at least 4 clocks to be available before ntpstat reports synchronized status. Since we use local clock, the line is commented.

Applicable only to docker-ptf images that are based on Bookworm.

Summary:
Fixes # (issue)

Type of change
 Bug fix
 Testbed and Framework(new/improvement)
 New Test case
 Skipped for non-supported platforms
 Test case improvement

Approach
What is the motivation for this PR?
Fix NTP test failures.

How did you do it?
See description

How did you verify/test it?
Manually in VS test testbed.

Any platform specific information?
No

signed-off-by: [email protected]

Signed-off-by: opcoder0 <[email protected]>
gshemesh2 pushed a commit to gshemesh2/sonic-mgmt that referenced this pull request Dec 16, 2025
Description of PR
The PR contains fix for failed NTP testcases on Bookworm based PTF image. The NTPSec daemon on Bookworm has "tos minclock 4 minsane 3" configuration line which requires at least 4 clocks to be available before ntpstat reports synchronized status. Since we use local clock, the line is commented.

Applicable only to docker-ptf images that are based on Bookworm.

Summary:
Fixes # (issue)

Type of change
 Bug fix
 Testbed and Framework(new/improvement)
 New Test case
 Skipped for non-supported platforms
 Test case improvement

Approach
What is the motivation for this PR?
Fix NTP test failures.

How did you do it?
See description

How did you verify/test it?
Manually in VS test testbed.

Any platform specific information?
No

signed-off-by: [email protected]
Signed-off-by: Guy Shemesh <[email protected]>
AharonMalkin pushed a commit to AharonMalkin/sonic-mgmt that referenced this pull request Dec 16, 2025
Description of PR
The PR contains fix for failed NTP testcases on Bookworm based PTF image. The NTPSec daemon on Bookworm has "tos minclock 4 minsane 3" configuration line which requires at least 4 clocks to be available before ntpstat reports synchronized status. Since we use local clock, the line is commented.

Applicable only to docker-ptf images that are based on Bookworm.

Summary:
Fixes # (issue)

Type of change
 Bug fix
 Testbed and Framework(new/improvement)
 New Test case
 Skipped for non-supported platforms
 Test case improvement

Approach
What is the motivation for this PR?
Fix NTP test failures.

How did you do it?
See description

How did you verify/test it?
Manually in VS test testbed.

Any platform specific information?
No

signed-off-by: [email protected]
Signed-off-by: Aharon Malkin <[email protected]>
gshemesh2 pushed a commit to gshemesh2/sonic-mgmt that referenced this pull request Dec 21, 2025
Description of PR
The PR contains fix for failed NTP testcases on Bookworm based PTF image. The NTPSec daemon on Bookworm has "tos minclock 4 minsane 3" configuration line which requires at least 4 clocks to be available before ntpstat reports synchronized status. Since we use local clock, the line is commented.

Applicable only to docker-ptf images that are based on Bookworm.

Summary:
Fixes # (issue)

Type of change
 Bug fix
 Testbed and Framework(new/improvement)
 New Test case
 Skipped for non-supported platforms
 Test case improvement

Approach
What is the motivation for this PR?
Fix NTP test failures.

How did you do it?
See description

How did you verify/test it?
Manually in VS test testbed.

Any platform specific information?
No

signed-off-by: [email protected]
Signed-off-by: Guy Shemesh <[email protected]>
venu-nexthop pushed a commit to venu-nexthop/sonic-mgmt that referenced this pull request Jan 13, 2026
Description of PR
The PR contains fix for failed NTP testcases on Bookworm based PTF image. The NTPSec daemon on Bookworm has "tos minclock 4 minsane 3" configuration line which requires at least 4 clocks to be available before ntpstat reports synchronized status. Since we use local clock, the line is commented.

Applicable only to docker-ptf images that are based on Bookworm.

Summary:
Fixes # (issue)

Type of change
 Bug fix
 Testbed and Framework(new/improvement)
 New Test case
 Skipped for non-supported platforms
 Test case improvement

Approach
What is the motivation for this PR?
Fix NTP test failures.

How did you do it?
See description

How did you verify/test it?
Manually in VS test testbed.

Any platform specific information?
No

signed-off-by: [email protected]
gshemesh2 pushed a commit to gshemesh2/sonic-mgmt that referenced this pull request Jan 26, 2026
Description of PR
The PR contains fix for failed NTP testcases on Bookworm based PTF image. The NTPSec daemon on Bookworm has "tos minclock 4 minsane 3" configuration line which requires at least 4 clocks to be available before ntpstat reports synchronized status. Since we use local clock, the line is commented.

Applicable only to docker-ptf images that are based on Bookworm.

Summary:
Fixes # (issue)

Type of change
 Bug fix
 Testbed and Framework(new/improvement)
 New Test case
 Skipped for non-supported platforms
 Test case improvement

Approach
What is the motivation for this PR?
Fix NTP test failures.

How did you do it?
See description

How did you verify/test it?
Manually in VS test testbed.

Any platform specific information?
No

signed-off-by: [email protected]
Signed-off-by: Guy Shemesh <[email protected]>
ytzur1 pushed a commit to ytzur1/sonic-mgmt that referenced this pull request Feb 2, 2026
Description of PR
The PR contains fix for failed NTP testcases on Bookworm based PTF image. The NTPSec daemon on Bookworm has "tos minclock 4 minsane 3" configuration line which requires at least 4 clocks to be available before ntpstat reports synchronized status. Since we use local clock, the line is commented.

Applicable only to docker-ptf images that are based on Bookworm.

Summary:
Fixes # (issue)

Type of change
 Bug fix
 Testbed and Framework(new/improvement)
 New Test case
 Skipped for non-supported platforms
 Test case improvement

Approach
What is the motivation for this PR?
Fix NTP test failures.

How did you do it?
See description

How did you verify/test it?
Manually in VS test testbed.

Any platform specific information?
No

signed-off-by: [email protected]
Signed-off-by: Yael Tzur <[email protected]>
auspham pushed a commit to auspham/sonic-mgmt that referenced this pull request Feb 3, 2026
Description of PR
The PR contains fix for failed NTP testcases on Bookworm based PTF image. The NTPSec daemon on Bookworm has "tos minclock 4 minsane 3" configuration line which requires at least 4 clocks to be available before ntpstat reports synchronized status. Since we use local clock, the line is commented.

Applicable only to docker-ptf images that are based on Bookworm.

Summary:
Fixes # (issue)

Type of change
 Bug fix
 Testbed and Framework(new/improvement)
 New Test case
 Skipped for non-supported platforms
 Test case improvement

Approach
What is the motivation for this PR?
Fix NTP test failures.

How did you do it?
See description

How did you verify/test it?
Manually in VS test testbed.

Any platform specific information?
No

signed-off-by: [email protected]
venu-nexthop pushed a commit to venu-nexthop/sonic-mgmt that referenced this pull request Mar 27, 2026
Description of PR
The PR contains fix for failed NTP testcases on Bookworm based PTF image. The NTPSec daemon on Bookworm has "tos minclock 4 minsane 3" configuration line which requires at least 4 clocks to be available before ntpstat reports synchronized status. Since we use local clock, the line is commented.

Applicable only to docker-ptf images that are based on Bookworm.

Summary:
Fixes # (issue)

Type of change
 Bug fix
 Testbed and Framework(new/improvement)
 New Test case
 Skipped for non-supported platforms
 Test case improvement

Approach
What is the motivation for this PR?
Fix NTP test failures.

How did you do it?
See description

How did you verify/test it?
Manually in VS test testbed.

Any platform specific information?
No

signed-off-by: [email protected]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants