From b99f0296ff07a38e2a87133938017fc30f20a905 Mon Sep 17 00:00:00 2001 From: John Mulligan Date: Wed, 13 Aug 2025 11:06:35 -0400 Subject: [PATCH] python-common: add a new smb sub package Add a new smb sub package for smb related things that are meant to be shared throughout the Ceph python code related to smb and the smb management stack. Signed-off-by: John Mulligan --- src/python-common/ceph/smb/__init__.py | 0 src/python-common/ceph/smb/constants.py | 49 +++++++++++++++++++++++++ 2 files changed, 49 insertions(+) create mode 100644 src/python-common/ceph/smb/__init__.py create mode 100644 src/python-common/ceph/smb/constants.py diff --git a/src/python-common/ceph/smb/__init__.py b/src/python-common/ceph/smb/__init__.py new file mode 100644 index 00000000000..e69de29bb2d diff --git a/src/python-common/ceph/smb/constants.py b/src/python-common/ceph/smb/constants.py new file mode 100644 index 00000000000..bc2961de49a --- /dev/null +++ b/src/python-common/ceph/smb/constants.py @@ -0,0 +1,49 @@ +# Shared constant values that apply across all ceph components that manage +# smb services (mgr module, cephadm mgr module, cephadm binary, etc) + + +# Generic/common names +SMB = 'smb' +CTDB = 'ctdb' + + +# Feature names +CEPHFS_PROXY = 'cephfs-proxy' +CLUSTERED = 'clustered' +DOMAIN = 'domain' +REMOTE_CONTROL = 'remote-control' +SMBMETRICS = 'smbmetrics' + + +# Features are optional components that can be deployed in a suite of smb +# related containers. It may run as a separate sidecar or side-effect the +# configuration of another component. +FEATURES = { + CEPHFS_PROXY, + CLUSTERED, + DOMAIN, + REMOTE_CONTROL, +} + +# Services are components that listen on a "public" network port, to expose +# network services to remote clients. +SERVICES = { + CTDB, + REMOTE_CONTROL, + SMB, + SMBMETRICS, +} + + +# Default port values +SMB_PORT = 445 +SMBMETRICS_PORT = 9922 +CTDB_PORT = 4379 +REMOTE_CONTROL_PORT = 54445 + +DEFAULT_PORTS = { + SMB: SMB_PORT, + SMBMETRICS: SMBMETRICS_PORT, + CTDB: CTDB_PORT, + REMOTE_CONTROL: REMOTE_CONTROL_PORT, +} -- 2.39.5