Chrony¶
This page was the starting point for chrony, the chrony role of Ussuri. 2023.1 has no chrony role CODE:
ansible/roles/ has no chrony directory, site.yml has no chrony play (its first service play is "Apply role
common", site.yml:86-97), inventory/multinode has no chrony or chrony-server group, and kolla 2023.1 has no
docker/chrony image. Kolla-Ansible no longer deploys a time service. Time sync is left to the host, and the only code
that deals with it is a precheck (Before and after a run). The page keeps its sections so
that
links to it still resolve; each says what still applies.
Where to look¶
Operate¶
- Scenario: none for chrony in 2023.1. The Ussuri use of
-t chronyto pushcommonchanges is replaced by-t common(Applycommonchanges (fluentd, cron, kolla_toolbox) §3). - Command: Apply
commonchanges (fluentd, cron, kolla_toolbox) §1.1:kolla-ansible -i multinode -t common reconfigure. - Command quick lookup by tag, row
-t chrony reconfigure: nochronyrole or play in 2023.1; only thealways-tagged plays run (fact gathering,site.yml:2andgather-facts.yml; host grouping,site.yml:7-77). - Host time sync itself is checked by
kolla-ansible prechecks(tools/kolla-ansible:433-435setskolla_action=precheck; the prechecks play runs on the groupkolla_action_precheck,site.yml:79-84).
Impact and risk¶
- What the tag executes (
chrony): Tags §3 and Tags §3.1, rowschrony: nothing besides thealwaysplays. - Risks: R2 and R25 no longer involve chrony: the
commonplay is reached with-t commonor an untagged run (R25 does not apply to 2023.1).
Dependencies¶
- Dependencies: Component dependencies §2 (row "Chrony"),
Component dependencies §5: no chrony container and no
chrony.confon any host, so the internal VIP andexternal_ntp_serversare no longer inputs of a compute host's configuration CODE (no reference toexternal_ntp_serversorchronyinansible/outsideroles/prechecks/tasks/timesync_checks.yml).
Evidence¶
- Fact sheet: fact sheet A §4 describes the Ussuri role.
- Code for 2023.1:
roles/prechecks/tasks/timesync_checks.yml:1-47(host NTP daemon and clock checks),roles/prechecks/tasks/main.yml:7-9(where they run),roles/prechecks/defaults/main.yml:6(the switch). - Image side: Kolla images §5: no chrony image in kolla 2023.1.
- Host side: ansible-collection-kolla (
bootstrap-servers) neither installs nor configures an NTP daemon (nochronyorntpin itsroles/), and no longer removes the hostchronypackage (R14) CODE.
Before and after a run¶
kolla-ansible prechecks, on every host except those of thedeploymentgroup (roles/prechecks/tasks/main.yml:7-9) and only whileprechecks_enable_host_ntp_checksis true (the default,roles/prechecks/defaults/main.yml:6;roles/prechecks/tasks/timesync_checks.yml:47) CODE:systemctl is-active chrony chronyd ntp ntpd systemd-timesyncd; fails with "No host NTP daemon is running" when the command's return code is not 0 (timesync_checks.yml:3-28);timedatectl status; fails when its output lackssynchronized: yes(timesync_checks.yml:30-46).
roles/prechecks/tasks/datetime_checks.yml:1-26also fails when/etc/localtimeis missing (all hosts) or/etc/timezoneis missing (Debian family): both are bind-mounted into the containers (e.g.roles/iscsi/defaults/main.yml:42-43) CODE.- Set
prechecks_enable_host_ntp_checks: falseonly when the host runs a daemon the check does not know, or onetimedatectldoes not recognise (the messages attimesync_checks.yml:21-26, :39-44).
Known limits and open points¶
- The fact sheet items on the Ussuri role
(fact sheet A §4.7,
§4.8; fact sheet D
§5.12): the VIP as internal time
source,
ip_nonlocal_bindon the chrony servers, the public pool default, a chrony restart stepping the clock. None of them applies to 2023.1: there is no chrony container, configuration or VIP time source to restart or reconfigure. - NOT AVAILABLE Which time source the hosts use, and how the operator configures it: the host NTP daemon is outside
the Kolla-Ansible code. The precheck only proves that one of five daemons is active and that
timedatectlreports a synchronised clock at precheck time; no deploy or reconfigure task checks it again. - NOT AVAILABLE What happens to a
chronycontainer left on a host from an earlier release: no 2023.1 task stops, removes or checks it (nochronyreference inansible/outside the precheck that looks at host services). - R14: a
bootstrap-serversre-run on a live host still removes host packages (open-iscsi,libvirt*, …), butchronyis no longer among them (ansible-collection-kollaroles/packages/defaults/main.yml:24-33). - Known bugs and limitations, Open questions and Findings have no entry on chrony.
Service card¶
The rows of the card are explained in How to read a service card.
Related¶
- Apply
commonchanges (fluentd, cron, kolla_toolbox) —-t common reconfigure, the 2023.1 command that pushescommonchanges (it replaces-t chrony reconfigure) - Common: fluentd, cron, kolla_toolbox — the
commonrole and its own play - HAProxy + Keepalived — the loadbalancer role; the VIP is no longer a time source
- Component dependencies §5 — the global inputs of a compute host
- Components — the other component pages