From: Shachar Sharon Date: Wed, 24 Jul 2024 10:15:46 +0000 (+0300) Subject: cephadm: samba metrics-exporter image X-Git-Tag: v20.0.0~1103^2~3 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=bb6e68a7a9bc48dfa17138fe21fe076363a36c79;p=ceph.git cephadm: samba metrics-exporter image Samba metrics-exporter runs as a different process along-side main samba-server (sidecar) and has its own container-image. Add default image URL and option to control alternative image (where empty string implies running without metrics-exporter). Signed-off-by: Shachar Sharon --- diff --git a/src/cephadm/cephadmlib/constants.py b/src/cephadm/cephadmlib/constants.py index 37df1d48f43..1d064329fd1 100644 --- a/src/cephadm/cephadmlib/constants.py +++ b/src/cephadm/cephadmlib/constants.py @@ -19,6 +19,7 @@ DEFAULT_JAEGER_COLLECTOR_IMAGE = 'quay.io/jaegertracing/jaeger-collector:1.29' DEFAULT_JAEGER_AGENT_IMAGE = 'quay.io/jaegertracing/jaeger-agent:1.29' DEFAULT_JAEGER_QUERY_IMAGE = 'quay.io/jaegertracing/jaeger-query:1.29' DEFAULT_SMB_IMAGE = 'quay.io/samba.org/samba-server:devbuilds-centos-amd64' +DEFAULT_SMBMETRICS_IMAGE = 'quay.io/samba.org/samba-metrics:latest' DEFAULT_NGINX_IMAGE = 'quay.io/ceph/nginx:1.26.1' DEFAULT_OAUTH2_PROXY_IMAGE = 'quay.io/oauth2-proxy/oauth2-proxy:v7.6.0' DEFAULT_REGISTRY = 'docker.io' # normalize unqualified digests to this diff --git a/src/pybind/mgr/cephadm/module.py b/src/pybind/mgr/cephadm/module.py index 780e2b8784e..1a9a1086218 100644 --- a/src/pybind/mgr/cephadm/module.py +++ b/src/pybind/mgr/cephadm/module.py @@ -148,6 +148,7 @@ DEFAULT_NGINX_IMAGE = 'quay.io/ceph/nginx:1.26.1' DEFAULT_OAUTH2_PROXY = 'quay.io/oauth2-proxy/oauth2-proxy:v7.6.0' DEFAULT_JAEGER_QUERY_IMAGE = 'quay.io/jaegertracing/jaeger-query:1.29' DEFAULT_SAMBA_IMAGE = 'quay.io/samba.org/samba-server:devbuilds-centos-amd64' +DEFAULT_SAMBA_METRICS_IMAGE = 'quay.io/samba.org/samba-metrics:latest' # ------------------------------------------------------------------------------ @@ -319,6 +320,11 @@ class CephadmOrchestrator(orchestrator.Orchestrator, MgrModule, default=DEFAULT_SAMBA_IMAGE, desc='Samba/SMB container image', ), + Option( + 'container_image_samba_metrics', + default=DEFAULT_SAMBA_METRICS_IMAGE, + desc='Samba/SMB metrics exporter container image', + ), Option( 'warn_on_stray_hosts', type='bool', @@ -585,6 +591,7 @@ class CephadmOrchestrator(orchestrator.Orchestrator, MgrModule, self.container_image_jaeger_collector = '' self.container_image_jaeger_query = '' self.container_image_samba = '' + self.container_image_samba_metrics = '' self.warn_on_stray_hosts = True self.warn_on_stray_daemons = True self.warn_on_failed_host_check = True