]> git-server-git.apps.pok.os.sepia.ceph.com Git - teuthology.git/commitdiff
provision/downburst: add ntp or chrony to cloud-init packages
authorKyr Shatskyy <kyrylo.shatskyy@clyso.com>
Thu, 3 Apr 2025 10:35:52 +0000 (12:35 +0200)
committerKyr Shatskyy <kyrylo.shatskyy@clyso.com>
Sun, 6 Apr 2025 17:00:32 +0000 (19:00 +0200)
Since downburst may use default cloud images which mostly
miss ntp by default, make sure we preinstall ntp or chrony
required for ceph cluster to sync the date time, otherwise
osd self scrub check will fail.

Signed-off-by: Kyr Shatskyy <kyrylo.shatskyy@clyso.com>
teuthology/provision/downburst.py

index 7dac58efc370b2901b96846f07f51658a40e1771..92604a0d7369974c119b2c95df72f180759af7a6 100644 (file)
@@ -246,6 +246,15 @@ class Downburst(object):
             'git',
             'wget',
         ])
+        if os_type in ('centos', 'opensuse'):
+            user_info['packages'].extend([
+                'chrony',
+            ])
+        if os_type in ('ubuntu', 'debian'):
+            user_info['packages'].extend([
+                'ntp',
+            ])
+
         # On CentOS/RHEL/Fedora, write the correct mac address and
         # install redhab-lsb-core for `lsb_release`
         if os_type in ['centos', 'rhel', 'fedora']: