Skip to content

Add check for max root dispersion on the PTF's NTP daemon#17629

Merged
yxieca merged 2 commits intosonic-net:masterfrom
saiarcot895:check-for-max-root-dispersion
Mar 21, 2025
Merged

Add check for max root dispersion on the PTF's NTP daemon#17629
yxieca merged 2 commits intosonic-net:masterfrom
saiarcot895:check-for-max-root-dispersion

Conversation

@saiarcot895
Copy link
Copy Markdown
Contributor

Description of PR

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

  • 202012
  • 202205
  • 202305
  • 202311
  • 202405
  • 202411

Approach

What is the motivation for this PR?

When using Chrony as the NTP daemon on the DUT, Chrony will not use NTP sources that have a root dispersion of more than 3 seconds (configurable via /etc/chrony/chrony.conf, but we currently don't touch that setting).

How did you do it?

Block here until the root dispersion is less than 3 seconds so that we don't incorrectly fail the test.

How did you verify/test it?

Any platform specific information?

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

Documentation

When using Chrony as the NTP daemon on the DUT, Chrony will not use NTP
sources that have a root dispersion of more than 3 seconds (configurable
via /etc/chrony/chrony.conf, but we currently don't touch that setting).
Therefore, block here until the root dispersion is less than 3 seconds
so that we don't incorrectly fail the test.

Signed-off-by: Saikrishna Arcot <sarcot@microsoft.com>
@mssonicbld
Copy link
Copy Markdown
Collaborator

/azp run

@azure-pipelines
Copy link
Copy Markdown

Azure Pipelines successfully started running 1 pipeline(s).

Signed-off-by: Saikrishna Arcot <sarcot@microsoft.com>
@mssonicbld
Copy link
Copy Markdown
Collaborator

/azp run

@azure-pipelines
Copy link
Copy Markdown

Azure Pipelines successfully started running 1 pipeline(s).

@saiarcot895 saiarcot895 marked this pull request as ready for review March 20, 2025 21:25
@saiarcot895 saiarcot895 requested a review from yxieca March 21, 2025 00:53
@yxieca yxieca merged commit 04f0eb0 into sonic-net:master Mar 21, 2025
18 checks passed
@saiarcot895 saiarcot895 deleted the check-for-max-root-dispersion branch March 21, 2025 23:36
amulyan7 pushed a commit to amulyan7/sonic-mgmt that referenced this pull request Mar 31, 2025
…17629)

* Add check for max root dispersion on the PTF's NTP daemon

When using Chrony as the NTP daemon on the DUT, Chrony will not use NTP
sources that have a root dispersion of more than 3 seconds (configurable
via /etc/chrony/chrony.conf, but we currently don't touch that setting).
Therefore, block here until the root dispersion is less than 3 seconds
so that we don't incorrectly fail the test.

Signed-off-by: Saikrishna Arcot <sarcot@microsoft.com>

* Fix math and fix whitespace

Signed-off-by: Saikrishna Arcot <sarcot@microsoft.com>

---------

Signed-off-by: Saikrishna Arcot <sarcot@microsoft.com>
OriTrabelsi pushed a commit to OriTrabelsi/sonic-mgmt that referenced this pull request Apr 1, 2025
…17629)

* Add check for max root dispersion on the PTF's NTP daemon

When using Chrony as the NTP daemon on the DUT, Chrony will not use NTP
sources that have a root dispersion of more than 3 seconds (configurable
via /etc/chrony/chrony.conf, but we currently don't touch that setting).
Therefore, block here until the root dispersion is less than 3 seconds
so that we don't incorrectly fail the test.

Signed-off-by: Saikrishna Arcot <sarcot@microsoft.com>

* Fix math and fix whitespace

Signed-off-by: Saikrishna Arcot <sarcot@microsoft.com>

---------

Signed-off-by: Saikrishna Arcot <sarcot@microsoft.com>
@mssonicbld
Copy link
Copy Markdown
Collaborator

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

opcoder0 pushed a commit to opcoder0/sonic-mgmt that referenced this pull request Dec 8, 2025
…17629)

* Add check for max root dispersion on the PTF's NTP daemon

When using Chrony as the NTP daemon on the DUT, Chrony will not use NTP
sources that have a root dispersion of more than 3 seconds (configurable
via /etc/chrony/chrony.conf, but we currently don't touch that setting).
Therefore, block here until the root dispersion is less than 3 seconds
so that we don't incorrectly fail the test.

Signed-off-by: Saikrishna Arcot <sarcot@microsoft.com>

* Fix math and fix whitespace

Signed-off-by: Saikrishna Arcot <sarcot@microsoft.com>

---------

Signed-off-by: Saikrishna Arcot <sarcot@microsoft.com>
gshemesh2 pushed a commit to gshemesh2/sonic-mgmt that referenced this pull request Dec 21, 2025
…17629)

* Add check for max root dispersion on the PTF's NTP daemon

When using Chrony as the NTP daemon on the DUT, Chrony will not use NTP
sources that have a root dispersion of more than 3 seconds (configurable
via /etc/chrony/chrony.conf, but we currently don't touch that setting).
Therefore, block here until the root dispersion is less than 3 seconds
so that we don't incorrectly fail the test.

Signed-off-by: Saikrishna Arcot <sarcot@microsoft.com>

* Fix math and fix whitespace

Signed-off-by: Saikrishna Arcot <sarcot@microsoft.com>

---------

Signed-off-by: Saikrishna Arcot <sarcot@microsoft.com>
Signed-off-by: Guy Shemesh <gshemesh@nvidia.com>
gshemesh2 pushed a commit to gshemesh2/sonic-mgmt that referenced this pull request Jan 26, 2026
…17629)

* Add check for max root dispersion on the PTF's NTP daemon

When using Chrony as the NTP daemon on the DUT, Chrony will not use NTP
sources that have a root dispersion of more than 3 seconds (configurable
via /etc/chrony/chrony.conf, but we currently don't touch that setting).
Therefore, block here until the root dispersion is less than 3 seconds
so that we don't incorrectly fail the test.

Signed-off-by: Saikrishna Arcot <sarcot@microsoft.com>

* Fix math and fix whitespace

Signed-off-by: Saikrishna Arcot <sarcot@microsoft.com>

---------

Signed-off-by: Saikrishna Arcot <sarcot@microsoft.com>
Signed-off-by: Guy Shemesh <gshemesh@nvidia.com>
auspham pushed a commit to auspham/sonic-mgmt that referenced this pull request Feb 3, 2026
…17629)

* Add check for max root dispersion on the PTF's NTP daemon

When using Chrony as the NTP daemon on the DUT, Chrony will not use NTP
sources that have a root dispersion of more than 3 seconds (configurable
via /etc/chrony/chrony.conf, but we currently don't touch that setting).
Therefore, block here until the root dispersion is less than 3 seconds
so that we don't incorrectly fail the test.

Signed-off-by: Saikrishna Arcot <sarcot@microsoft.com>

* Fix math and fix whitespace

Signed-off-by: Saikrishna Arcot <sarcot@microsoft.com>

---------

Signed-off-by: Saikrishna Arcot <sarcot@microsoft.com>
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.

5 participants