From db1b7bb4f58659e80b3b1eadf9325143595069f1 Mon Sep 17 00:00:00 2001 From: Kyr Shatskyy Date: Thu, 3 Apr 2025 12:35:52 +0200 Subject: [PATCH] provision/downburst: add ntp or chrony to cloud-init packages 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 --- teuthology/provision/downburst.py | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/teuthology/provision/downburst.py b/teuthology/provision/downburst.py index 7dac58efc..92604a0d7 100644 --- a/teuthology/provision/downburst.py +++ b/teuthology/provision/downburst.py @@ -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']: -- 2.47.3