From: John Mulligan Date: Tue, 3 Oct 2023 20:33:46 +0000 (-0400) Subject: cephadm: remove gateways property from Ceph type X-Git-Tag: v19.0.0~277^2~13 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=14664264e51eec8e62119439f92dffd3cc487607;p=ceph.git cephadm: remove gateways property from Ceph type The gateways list property of the Ceph type was used in exactly one place. In order to provide a clearer structure to the classes in cephadm, remove this property and simply list the daemon types specifically where they are needed. In the future, I hope to see these handled in a class/object based manner but this is still better for now. Signed-off-by: John Mulligan --- diff --git a/src/cephadm/cephadm.py b/src/cephadm/cephadm.py index 4901abf42cd..ed6841bbae8 100755 --- a/src/cephadm/cephadm.py +++ b/src/cephadm/cephadm.py @@ -211,7 +211,6 @@ class ContainerInfo: class Ceph(DaemonForm): daemons = ('mon', 'mgr', 'osd', 'mds', 'rgw', 'rbd-mirror', 'crash', 'cephfs-mirror', 'ceph-exporter') - gateways = ('iscsi', 'nfs', 'nvmeof') @classmethod def for_daemon_type(cls, daemon_type: str) -> bool: @@ -2553,7 +2552,11 @@ def get_container( envs.append('TCMALLOC_MAX_TOTAL_THREAD_CACHE_BYTES=134217728') if container_args is None: container_args = [] - if daemon_type in Ceph.daemons or daemon_type in Ceph.gateways: + unlimited_daemons = set(Ceph.daemons) + unlimited_daemons.add(CephIscsi.daemon_type) + unlimited_daemons.add(CephNvmeof.daemon_type) + unlimited_daemons.add(NFSGanesha.daemon_type) + if daemon_type in unlimited_daemons: set_pids_limit_unlimited(ctx, container_args) if daemon_type in ['mon', 'osd']: # mon and osd need privileged in order for libudev to query devices