Merge "Replace pause with chronyc waitsync in ntp sync" into stable/2023.2
This commit is contained in:
commit
8e70eb6b6c
@ -38,3 +38,17 @@ chrony_ntp_servers:
|
||||
|
||||
# Synchronise hardware clock with system time. Default is true.
|
||||
chrony_rtcsync_enabled: true
|
||||
|
||||
# Force synchronisation from NTP sources. This methods may jump the clock by
|
||||
# large values which can cause issues with some software. Disabled by default.
|
||||
ntp_force_sync: false
|
||||
|
||||
# Maximum number of tries used by the `chronyc waitsync` command. Only used
|
||||
# when ntp_force_sync is true. Default is 60 which waits for a maximum of 10
|
||||
# minutes (60 times 10 seconds).
|
||||
chrony_waitsync_max_tries: 60
|
||||
|
||||
# Maximum correction used by the `chronyc waitsync` command. Only used when
|
||||
# ntp_force_sync is true. Default is 0.01 which waits for the remaining
|
||||
# correction to be less than 10 milliseconds.
|
||||
chrony_waitsync_max_correction: 0.01
|
||||
|
@ -1,4 +1,9 @@
|
||||
---
|
||||
# NOTE(priteau): We need to run handlers to restart chronyd before forcing
|
||||
# clock synchronisation, or the system clock could appear as not synchronised
|
||||
# during CI jobs because the tests run too quickly after the chronyd restart.
|
||||
- meta: flush_handlers
|
||||
|
||||
- name: Force time synchronisation
|
||||
become: True
|
||||
block:
|
||||
@ -9,8 +14,7 @@
|
||||
command: chronyc makestep
|
||||
|
||||
- name: Wait before hardware clock synchronisation
|
||||
pause:
|
||||
seconds: 5
|
||||
command: "chronyc waitsync {{ chrony_waitsync_max_tries }} {{ chrony_waitsync_max_correction }}"
|
||||
|
||||
- name: Force hardware clock synchronisation
|
||||
command: hwclock --systohc
|
||||
|
@ -33,6 +33,20 @@
|
||||
# Synchronise hardware clock with system time. Default is true.
|
||||
#chrony_rtcsync_enabled:
|
||||
|
||||
# Force synchronisation from NTP sources. This methods may jump the clock by
|
||||
# large values which can cause issues with some software. Disabled by default.
|
||||
#ntp_force_sync:
|
||||
|
||||
# Maximum number of tries used by the `chronyc waitsync` command. Only used
|
||||
# when ntp_force_sync is true. Default is 60 which waits for a maximum of 10
|
||||
# minutes (60 times 10 seconds).
|
||||
#chrony_waitsync_max_tries:
|
||||
|
||||
# Maximum correction used by the `chronyc waitsync` command. Only used when
|
||||
# ntp_force_sync is true. Default is 0.01 which waits for the remaining
|
||||
# correction to be less than 10 milliseconds.
|
||||
#chrony_waitsync_max_correction:
|
||||
|
||||
###############################################################################
|
||||
# Dummy variable to allow Ansible to accept this file.
|
||||
workaround_ansible_issue_8743: yes
|
||||
|
@ -15,6 +15,9 @@ pip_upper_constraints_file: "/tmp/upper-constraints.txt"
|
||||
# QEMU.
|
||||
libvirt_vm_engine: "qemu"
|
||||
|
||||
# Force system clock synchronisation
|
||||
ntp_force_sync: True
|
||||
|
||||
# Use the CI infra's PyPI mirror.
|
||||
pip_local_mirror: true
|
||||
pip_index_url: "http://{{ zuul_site_mirror_fqdn }}/pypi/simple"
|
||||
|
@ -15,6 +15,9 @@ kolla_ansible_requirements_yml: "/tmp/kolla-ansible-requirements.yml"
|
||||
kolla_openstack_logging_debug: True
|
||||
pip_upper_constraints_file: "/tmp/upper-constraints.txt"
|
||||
|
||||
# Force system clock synchronisation
|
||||
ntp_force_sync: True
|
||||
|
||||
# Use the CI infra's PyPI mirror.
|
||||
pip_local_mirror: true
|
||||
pip_index_url: "http://{{ zuul_site_mirror_fqdn }}/pypi/simple"
|
||||
|
@ -184,6 +184,9 @@ chrony_ntp_servers:
|
||||
- option: maxsources
|
||||
val: 2
|
||||
|
||||
# Force system clock synchronisation
|
||||
ntp_force_sync: True
|
||||
|
||||
# Enable firewalld
|
||||
controller_firewalld_enabled: true
|
||||
controller_firewalld_zones:
|
||||
|
@ -19,6 +19,9 @@ kolla_ansible_requirements_yml: "/tmp/previous-kolla-ansible-requirements.yml"
|
||||
{% endif %}
|
||||
kolla_openstack_logging_debug: true
|
||||
|
||||
# Force system clock synchronisation
|
||||
ntp_force_sync: True
|
||||
|
||||
# Use the CI infra's PyPI mirror.
|
||||
pip_local_mirror: true
|
||||
pip_index_url: "http://{{ zuul_site_mirror_fqdn }}/pypi/simple"
|
||||
|
@ -17,6 +17,9 @@ kolla_ansible_requirements_yml: "/tmp/kolla-ansible-requirements.yml"
|
||||
kolla_openstack_logging_debug: True
|
||||
pip_upper_constraints_file: "/tmp/upper-constraints.txt"
|
||||
|
||||
# Force system clock synchronisation
|
||||
ntp_force_sync: True
|
||||
|
||||
# Use the CI infra's PyPI mirror.
|
||||
pip_local_mirror: true
|
||||
pip_index_url: "http://{{ zuul_site_mirror_fqdn }}/pypi/simple"
|
||||
|
@ -19,6 +19,9 @@ kolla_ansible_requirements_yml: "/tmp/previous-kolla-ansible-requirements.yml"
|
||||
{% endif %}
|
||||
kolla_openstack_logging_debug: True
|
||||
|
||||
# Force system clock synchronisation
|
||||
ntp_force_sync: True
|
||||
|
||||
# Use the CI infra's PyPI mirror.
|
||||
pip_local_mirror: true
|
||||
pip_index_url: "http://{{ zuul_site_mirror_fqdn }}/pypi/simple"
|
||||
|
@ -16,6 +16,9 @@ pip_upper_constraints_file: "/tmp/upper-constraints.txt"
|
||||
# QEMU.
|
||||
libvirt_vm_engine: "qemu"
|
||||
|
||||
# Force system clock synchronisation
|
||||
ntp_force_sync: True
|
||||
|
||||
# Use the CI infra's PyPI mirror.
|
||||
pip_local_mirror: true
|
||||
pip_index_url: "http://{{ zuul_site_mirror_fqdn }}/pypi/simple"
|
||||
|
Loading…
x
Reference in New Issue
Block a user