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

Migrate from ntpd to Chrony #1852

Open
wants to merge 5 commits into
base: master
Choose a base branch
from
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Document new NTP add options being added
Signed-off-by: Saikrishna Arcot <[email protected]>
saiarcot895 committed Oct 16, 2024
commit 50bb55ef8cbc6e1728b23bfa589b7b8bdc78a43f
11 changes: 11 additions & 0 deletions doc/ntp/migration-to-chrony.md
Original file line number Diff line number Diff line change
@@ -180,6 +180,17 @@ There are no changes needed in the SAI API or in the implementation by vendors.
The output of the `show ntp` CLI will change as the output format of `chronyc`
is different. There will be no other changes specifically related to this.

However, `config ntp` will have additional options added. Specifically, it will
accept `--iburst`, `--version`, and `--association-type` arguments when adding
a NTP server, to enable iburst, specify the NTP association version, or specify
the association type, respectively.

Examples:

```
Copy link
Collaborator

@venkatmahalingam venkatmahalingam Nov 25, 2024

Choose a reason for hiding this comment

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

Can you make sure Chrony works with mgmt VRF as well? Please add examples with mgmt VRF.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Chrony running in mgmt vrf:

admin@vlab-01:~$ systemctl status chrony
● chrony.service - chrony, an NTP client/server
     Loaded: loaded (/lib/systemd/system/chrony.service; enabled; preset: enabled)
    Drop-In: /usr/lib/systemd/system/chrony.service.d
             └─override.conf
     Active: active (running) since Fri 2025-01-24 01:25:41 UTC; 18h ago
       Docs: man:chronyd(8)
             man:chronyc(1)
             man:chrony.conf(5)
    Process: 61323 ExecStartPre=/usr/bin/chrony-config.sh (code=exited, status=0/SUCCESS)
    Process: 61327 ExecStart=/usr/local/sbin/chronyd-starter.sh (code=exited, status=0/SUCCESS)
   Main PID: 61332 (chronyd)
      Tasks: 2 (limit: 4570)
     Memory: 1.5M
     CGroup: /system.slice/chrony.service
             └─vrf
               └─mgmt
                 ├─61332 /usr/sbin/chronyd -F 1
                 └─61333 /usr/sbin/chronyd -F 1

With the following config blocks:

    "MGMT_VRF_CONFIG": {
            "vrf_global": {
                    "mgmtVrfEnabled": "true"
            }
    },
    "NTP": {
        "global": {
            "admin_state": "enabled",
            "authentication": "disabled",
            "dhcp": "enabled",
            "server_role": "disabled",
            "src_intf": "eth0",
            "vrf": "mgmt"
        }
    }

Copy link
Collaborator

Choose a reason for hiding this comment

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

Thanks!

sudo config ntp add --iburst 10.250.0.1
```

## Restrictions/Limitations

There are expected to be no new restrictions or limitations with this change.