From 2677183b60c87232e10605503a839701904b5015 Mon Sep 17 00:00:00 2001 From: John Mulligan Date: Fri, 24 Nov 2023 14:45:15 -0500 Subject: [PATCH] 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) --- src/cephadm/cephadmlib/container_daemon_form.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/cephadm/cephadmlib/container_daemon_form.py b/src/cephadm/cephadmlib/container_daemon_form.py index f99c69f9b6a..8696c9cbd66 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, -- 2.39.5