From: John Mulligan Date: Fri, 24 Nov 2023 19:45:15 +0000 (-0500) Subject: cephadm: add a prepare_data_dir method to container daemon form X-Git-Tag: v19.1.0~139^2~2 X-Git-Url: http://git.apps.os.sepia.ceph.com/?a=commitdiff_plain;h=2677183b60c87232e10605503a839701904b5015;p=ceph.git cephadm: add a prepare_data_dir method to container daemon form The prepare_data_dir method is a general way for classes to prepare the data dir (e.g. `/var/lib/ceph/$FSID/$DAEMON_TYPE.$DAEMON_ID`) before containers will use it. Signed-off-by: John Mulligan (cherry picked from commit 044e4d64790d3c06cbf67a6c783c19edcfcf2d51) (cherry picked from commit f73c0665f2be46b6aef535a988e5550a92669cc1) --- diff --git a/src/cephadm/cephadmlib/container_daemon_form.py b/src/cephadm/cephadmlib/container_daemon_form.py index f99c69f9b6a0e..8696c9cbd66fd 100644 --- a/src/cephadm/cephadmlib/container_daemon_form.py +++ b/src/cephadm/cephadmlib/container_daemon_form.py @@ -120,6 +120,9 @@ class ContainerDaemonForm(DaemonForm): """ return '' + def prepare_data_dir(self, data_dir: str, uid: int, gid: int) -> None: + pass + def daemon_to_container( ctx: CephadmContext,