tripleo-ansible/tripleo_ansible
Haresh Khandelwal 60339f7580 Support for timemaster service with tripleo-ansible role
timemaster service provides provides HA between different
time service i.e chrony, PTP. When timemaster service runs,
it spwans instances/child processes of chronyd, ptp4l and
phy2sys. Look at below output.

[root@hareshcomputesriov-0 heat-admin]# systemctl status timemaster
● timemaster.service - Synchronize system clock to NTP and PTP time
                       sources
   Loaded: loaded (/usr/lib/systemd/system/timemaster.service; disabled;
                   vendor preset: disabled)
   Active: active (running) since Tue 2020-08-11 17:24:45 UTC; 3s ago
 Main PID: 544428 (timemaster)
    Tasks: 4 (limit: 357097)
   Memory: 2.4M
   CGroup: /system.slice/timemaster.service
           ├─544428 /usr/sbin/timemaster -f /etc/timemaster.conf
           ├─544429 /usr/sbin/chronyd -n
                                      -f /var/run/timemaster/chrony.conf
           ├─544430 /usr/sbin/ptp4l -l 5
                                    -f /var/run/timemaster/ptp4l.0.conf
                                    -H -i eno1
           └─544431 /usr/sbin/phc2sys -l 5 -a -r -R 1.00
                                   -z /var/run/timemaster/ptp4l.0.socket
                                   -t [0:eno1] -n 0 -E ntpshm -M 0

Timemaster service uses /etc/chrony.conf and /etc/ptp4l.conf to create
runtime instance for these 2 timeservices. These 2 time services sync to
their respective time source. Timemaster provides HA between chrony
and PTP (between different PTP domains as well which is not part of
this patch).Timemaster compares all time sources and use the best
sources to synchronize the system clock. if chronyd commuication breaks
then timemaster will set system time with PTP grand master's provided
time and vice a versa.

Change-Id: I03953059f96079fbb61899d16147007b2fe023ad
(cherry picked from commit c4950ce46e)
2021-03-30 13:42:35 +00:00
..
ansible_plugins Fix triple molecule modules job 2021-03-03 03:36:56 +00:00
playbooks Update opesntack_ports to use ansible_facts 2021-03-25 19:03:18 +00:00
roles Support for timemaster service with tripleo-ansible role 2021-03-30 13:42:35 +00:00
roles.galaxy Add galaxy role path which will be ignored by git 2019-07-18 13:40:14 -05:00
tests Add tripleo-lvmfilter role to restrict visible block devices for LVM2 2020-10-21 19:57:21 +00:00
ansible-role-requirements.yml Introduce tripleo-config role 2019-07-30 13:02:25 -05:00