-
Notifications
You must be signed in to change notification settings - Fork 24
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
management framework NTP support HLD #69
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks.
1.1.6 Scalability Requirements |
|
||
``` | ||
|
||
### 3.6.2 CLI |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
NTPD supports behaving as an NTP server to downstream (downStratum ?) NTP clients. Is there any plan on implementing this in the UI? Requests coming in from the field.
} | ||
``` | ||
|
||
A change in the NTP_SERVER entry triggers hostcfgd to start the NTP configuration script, which in turn writes each NTP server to the ntp.conf and then restart the ntp service. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Getting requests for avoiding NTP service restart if possible. I believe the ticket is created SNC-9556 (SONIC-33081). If the configuration state is maintained outside ntpd, would it be possible (for some cases) to configure the ntpd through NTP mode 6 control message incrementally instead of forcing a restart? Investigating @brcm as well.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@bhavini-gada @bsun-sudo @sameerdell
HLD for restart avoidance: https://github.com/BRCM-SONIC/sonic_doc_private/pull/92
"NTP|global": { | ||
"type": "hash", | ||
"value": { | ||
"src_intf": "Ethernet36" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Per 0.5 version src_intf would be a list now (with the trailing @ symbol) ? Eg: "\src_intf@": "Loopback0,eth0"
|
||
sonic(config)# ntp server pool.ntp.org | ||
|
||
``` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Getting comments: "HI Arun
how many max ntp servers we can configure ?
i cannot find this in below hld
"
I found this link on ntp.conf advising on the number of NTP servers. (http://support.ntp.org/bin/view/Support/SelectingOffsiteNTPServers) Section 5.3.4. Excessive Number of Upstream Time Servers
| Delete NTP source interface| Verify that NTP source interface is removed from the configDB, NTP packets are transmitted and received over the default interface| | ||
| Configure NTP vrf| Verify that NTP vrf is installed correctly in the configDB and ntp service is running in the specified VRF| | ||
| | Verify that only default and mgmt can be configured as NTP vrf| | ||
| Delete NTP vrf| Verify that NTP vrf is removed from the configDB and ntp service is running in the default instance| |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There seems to be some confusion between Section 1.1.1.5 which talks about VRF configuration when Management VRF is configured (1.1.1.5 Overall Behavior related to NTP source interface and NTP vrf
, When mgmt VRF is configured ), and this Unit Test. Please clarify that this UT is being run when no Management VRF is configured ? (Reference JIRA ID https://it-jira.broadcom.net/browse/SONIC-33434) (Dell SNC-????)
|
||
Enhancing the management framework backend code and transformer methods to add support for NTP. | ||
|
||
## 3.2 DB Changes |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please put all the config DB schema change details in this section, even though they are spread across multiple sections in the doc. Please consolidate them into this section.
First draft of HLD for management framework NTP support