]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
cephadm: add a prepare_data_dir method to container daemon form
authorJohn Mulligan <jmulligan@redhat.com>
Fri, 24 Nov 2023 19:45:15 +0000 (14:45 -0500)
committerAdam King <adking@redhat.com>
Tue, 20 Feb 2024 14:04:02 +0000 (09:04 -0500)
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 <jmulligan@redhat.com>
(cherry picked from commit 044e4d64790d3c06cbf67a6c783c19edcfcf2d51)

src/cephadm/cephadmlib/container_daemon_form.py

index 1b65194aae7a3766d2263326b96124422b9fcc74..cab57871b8de0712b4c6aa5d474ce5706e1e5734 100644 (file)
@@ -118,6 +118,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,