From: Dimitri Savineau Date: Fri, 30 Jul 2021 19:27:52 +0000 (-0400) Subject: cephadm: set global default container for ingress X-Git-Tag: v17.1.0~1212^2 X-Git-Url: http://git.apps.os.sepia.ceph.com/?a=commitdiff_plain;h=f9eb7d826563ab9b995b4123c03f6d1b89423e01;p=ceph-ci.git cephadm: set global default container for ingress This was partially done in b94c8de but only for haproxy in the cephadm mgr module not in the cephadm binary. This adds the same change for keepalived container image. Now both haproxy and keepalived container images are fully qualified (registry + namespace + image). Fixes: https://tracker.ceph.com/issues/51973 Signed-off-by: Dimitri Savineau --- diff --git a/src/cephadm/cephadm b/src/cephadm/cephadm index ea9c316425f..c34f5fe0a0e 100755 --- a/src/cephadm/cephadm +++ b/src/cephadm/cephadm @@ -53,6 +53,8 @@ DEFAULT_PROMETHEUS_IMAGE = 'docker.io/prom/prometheus:v2.18.1' DEFAULT_NODE_EXPORTER_IMAGE = 'docker.io/prom/node-exporter:v0.18.1' DEFAULT_GRAFANA_IMAGE = 'docker.io/ceph/ceph-grafana:6.7.4' DEFAULT_ALERT_MANAGER_IMAGE = 'docker.io/prom/alertmanager:v0.20.0' +DEFAULT_HAPROXY_IMAGE = 'docker.io/library/haproxy:2.3' +DEFAULT_KEEPALIVED_IMAGE = 'docker.io/arcts/keepalived' DEFAULT_REGISTRY = 'docker.io' # normalize unqualified digests to this # ------------------------------------------------------------------------------ @@ -640,7 +642,7 @@ class HAproxy(object): """Defines an HAproxy container""" daemon_type = 'haproxy' required_files = ['haproxy.cfg'] - default_image = 'haproxy' + default_image = DEFAULT_HAPROXY_IMAGE def __init__(self, ctx: CephadmContext, @@ -727,7 +729,7 @@ class Keepalived(object): """Defines an Keepalived container""" daemon_type = 'keepalived' required_files = ['keepalived.conf'] - default_image = 'arcts/keepalived' + default_image = DEFAULT_KEEPALIVED_IMAGE def __init__(self, ctx: CephadmContext, diff --git a/src/pybind/mgr/cephadm/module.py b/src/pybind/mgr/cephadm/module.py index 7789fa8346e..1591e5d08bf 100644 --- a/src/pybind/mgr/cephadm/module.py +++ b/src/pybind/mgr/cephadm/module.py @@ -97,6 +97,7 @@ DEFAULT_NODE_EXPORTER_IMAGE = 'docker.io/prom/node-exporter:v0.18.1' DEFAULT_GRAFANA_IMAGE = 'docker.io/ceph/ceph-grafana:6.7.4' DEFAULT_ALERT_MANAGER_IMAGE = 'docker.io/prom/alertmanager:v0.20.0' DEFAULT_HAPROXY_IMAGE = 'docker.io/library/haproxy:2.3' +DEFAULT_KEEPALIVED_IMAGE = 'docker.io/arcts/keepalived' # ------------------------------------------------------------------------------ @@ -214,7 +215,7 @@ class CephadmOrchestrator(orchestrator.Orchestrator, MgrModule, ), Option( 'container_image_keepalived', - default='arcts/keepalived', + default=DEFAULT_KEEPALIVED_IMAGE, desc='Keepalived container image', ), Option(