]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
cephadm/smb: Update CTDB bind mount for new socket path 70238/head
authorAnoop C S <anoopcs@cryptolab.net>
Wed, 15 Jul 2026 18:41:13 +0000 (00:11 +0530)
committerAnoop C S <anoopcs@cryptolab.net>
Thu, 16 Jul 2026 16:51:38 +0000 (22:21 +0530)
commitc069e89cf7974eb4536a32d0eb46a8c60f3f175c
tree1c8055972aead6b98cf41a616b7521cba6e2f014
parent83da7b9683517bddb5b2c1e477e0ec74d160be43
cephadm/smb: Update CTDB bind mount for new socket path

Samba recently changed CTDB to derive its runtime paths from Samba's
configure options instead of using a monolithic CTDB_RUNDIR[1].
With current packaging[2], the CTDB socket path moved from
/var/run/ctdb/ctdbd.socket to /run/samba/ctdb/ctdbd.socket.

Update the CTDB runtime bind mount target from /var/run/ctdb to
/run/samba/ctdb to match the new CTDB_SOCKETDIR. Additionally,
create the CTDB pid directory, /run/ctdb, and lock directory,
/var/lib/samba/lock/ctdb, on the host side as they are hidden
when their parent directories are bind mounted over.

Ideally these directories should be created by sambacc but sambacc is
included in samba-container images that may be built with different
Samba packages where these path configurations might not hold true.

[1] https://gitlab.com/samba-team/samba/-/merge_requests/4631
[2] https://github.com/samba-in-kubernetes/samba-build/blob/main/packaging/samba-master.spec.j2

Fixes: https://tracker.ceph.com/issues/78309
Signed-off-by: Anoop C S <anoopcs@cryptolab.net>
src/cephadm/cephadmlib/daemons/smb.py