Add support for timemaster service

Bug #1893025 reported by Haresh
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
tripleo
In Progress
Wishlist
Haresh

Bug Description

Right now, we have support for chronyd/ntpd in tripleO.
My changes will add support for timemaster service as well by adding support under "TimeSync" service.

Haresh (hakhande)
Changed in tripleo:
assignee: nobody → Haresh (hakhande)
Changed in tripleo:
importance: Undecided → Wishlist
status: New → Triaged
milestone: none → victoria-3
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to tripleo-heat-templates (master)

Fix proposed to branch: master
Review: https://review.opendev.org/748439

Changed in tripleo:
status: Triaged → In Progress
Changed in tripleo:
milestone: victoria-3 → wallaby-1
Changed in tripleo:
milestone: wallaby-1 → wallaby-2
Changed in tripleo:
milestone: wallaby-2 → wallaby-3
Changed in tripleo:
milestone: wallaby-3 → wallaby-rc1
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to tripleo-heat-templates (stable/train)

Reviewed: https://review.opendev.org/c/openstack/tripleo-heat-templates/+/783861
Committed: https://opendev.org/openstack/tripleo-heat-templates/commit/3f59a3aa9721e5c385065fb8b0204a90ca862bd1
Submitter: "Zuul (22348)"
Branch: stable/train

commit 3f59a3aa9721e5c385065fb8b0204a90ca862bd1
Author: Haresh Khandelwal <email address hidden>
Date: Thu Aug 27 19:01:32 2020 +0530

    Config parameters for timemaster service

    timemaster service 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.

    2 new parameters added by this patch in order to make above work.

    In order to use timemaster service, we need to remove Timesync and
    add TimeMaster in roles_data.yaml for the role we desire to have
    Timemaster service.

        - OS::TripleO::Services::TimeMaster

    Change-Id: I32e9d17132d188aaddc5f5be578643a5f25ea375
    Closes-Bug: #1893025
    Depends-On: https://review.opendev.org/#/c/748431/
    Depends-On: https://review.opendev.org/#/c/749093/
    (cherry picked from commit 98c48b2299a9a4d4cc618d417f1fcd686e99b536)

tags: added: in-stable-train
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/tripleo-heat-templates 14.1.0

This issue was fixed in the openstack/tripleo-heat-templates 14.1.0 release.

Changed in tripleo:
milestone: wallaby-rc1 → xena-1
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to tripleo-heat-templates (stable/victoria)

Reviewed: https://review.opendev.org/c/openstack/tripleo-heat-templates/+/783856
Committed: https://opendev.org/openstack/tripleo-heat-templates/commit/4be13739505c5e741cc6b15eadb9ee6b71f18ef1
Submitter: "Zuul (22348)"
Branch: stable/victoria

commit 4be13739505c5e741cc6b15eadb9ee6b71f18ef1
Author: Haresh Khandelwal <email address hidden>
Date: Thu Aug 27 19:01:32 2020 +0530

    Config parameters for timemaster service

    timemaster service 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.

    2 new parameters added by this patch in order to make above work.

    In order to use timemaster service, we need to remove Timesync and
    add TimeMaster in roles_data.yaml for the role we desire to have
    Timemaster service.

        - OS::TripleO::Services::TimeMaster

    Change-Id: I32e9d17132d188aaddc5f5be578643a5f25ea375
    Closes-Bug: #1893025
    Depends-On: https://review.opendev.org/#/c/748431/
    Depends-On: https://review.opendev.org/#/c/749093/
    (cherry picked from commit 98c48b2299a9a4d4cc618d417f1fcd686e99b536)

tags: added: in-stable-victoria
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to tripleo-heat-templates (stable/ussuri)

Reviewed: https://review.opendev.org/c/openstack/tripleo-heat-templates/+/783860
Committed: https://opendev.org/openstack/tripleo-heat-templates/commit/cab6bbd6c76f28bf4f577fb6a914dd248b2874ea
Submitter: "Zuul (22348)"
Branch: stable/ussuri

commit cab6bbd6c76f28bf4f577fb6a914dd248b2874ea
Author: Haresh Khandelwal <email address hidden>
Date: Thu Aug 27 19:01:32 2020 +0530

    Config parameters for timemaster service

    timemaster service 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.

    2 new parameters added by this patch in order to make above work.

    In order to use timemaster service, we need to remove Timesync and
    add TimeMaster in roles_data.yaml for the role we desire to have
    Timemaster service.

        - OS::TripleO::Services::TimeMaster

    Change-Id: I32e9d17132d188aaddc5f5be578643a5f25ea375
    Closes-Bug: #1893025
    Depends-On: https://review.opendev.org/#/c/748431/
    Depends-On: https://review.opendev.org/#/c/749093/
    (cherry picked from commit 98c48b2299a9a4d4cc618d417f1fcd686e99b536)

tags: added: in-stable-ussuri
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/tripleo-heat-templates 13.3.0

This issue was fixed in the openstack/tripleo-heat-templates 13.3.0 release.

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/tripleo-heat-templates 11.6.0

This issue was fixed in the openstack/tripleo-heat-templates 11.6.0 release.

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/tripleo-heat-templates 12.4.4

This issue was fixed in the openstack/tripleo-heat-templates 12.4.4 release.

Changed in tripleo:
milestone: xena-1 → xena-2
Changed in tripleo:
milestone: xena-2 → xena-3
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.