Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Don't restart ntpsec if the mgmt address gets a DHCP response #17296

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

saiarcot895
Copy link
Contributor

Fixes #17114.

Why I did it

For setups where the mgmt interface address is assigned by a DHCP server, don't restart ntpsec in those cases with any NTP information received by the DHCP server. For SONiC, NTP configuration is (currently) separate from any information received from DHCP. In addition, if this happens at bootup time, there's a chance of a deadlock within systemctl happening.

Work item tracking
  • Microsoft ADO (number only):

How I did it

How to verify it

Which release branch to backport (provide reason below if selected)

  • 201811
  • 201911
  • 202006
  • 202012
  • 202106
  • 202111
  • 202205
  • 202211
  • 202305

Tested branch (Please provide the tested image version)

Description for the changelog

Link to config_db schema for YANG module changes

A picture of a cute animal (not mandatory but encouraged)

For setups where the mgmt interface address is assigned by a DHCP
server, don't restart ntpsec in those cases with any NTP information
received by the DHCP server. For SONiC, NTP configuration is (currently)
separate from any information received from DHCP. In addition, if this
happens at bootup time, there's a chance of a deadlock within systemctl
happening.

Fixes sonic-net#17114.

Signed-off-by: Saikrishna Arcot <sarcot@microsoft.com>
@saiarcot895 saiarcot895 requested a review from lguohan as a code owner November 24, 2023 20:27
@saiarcot895 saiarcot895 requested a review from yxieca November 28, 2023 00:59
@saiarcot895
Copy link
Contributor Author

@fastiuk Should the NTP server information given in DHCP server responses be applied to the NTP server on the DUT? I was under the assumption that the NTP configuration should be separate from DHCP, but I see the HLD for NTP configuration mentions DHCP support/handling.

@fastiuk
Copy link
Contributor

fastiuk commented Nov 29, 2023

@fastiuk Should the NTP server information given in DHCP server responses be applied to the NTP server on the DUT? I was under the assumption that the NTP configuration should be separate from DHCP, but I see the HLD for NTP configuration mentions DHCP support/handling.

Under this PR we add support for controlling NTP dhcp configuration. So if NTP dhcp state is enabled - we need to use the config provided by DHCP server. But if disabled, we don't need to do so

@dgsudharsan
Copy link
Collaborator

@saiarcot895 Any update on this?

@dgsudharsan
Copy link
Collaborator

@saiarcot895 Can you please provide ETA for merging this PR?

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.

[Bookworm] DUT loosing ssh connectivity and interfaces-config is stuck in activating state
4 participants