From: John Mulligan Date: Fri, 25 Apr 2025 15:06:41 +0000 (-0400) Subject: mgr/cephadm: always use the internal cryptocaller X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=a467a5572ae23e460804835967e6615fa05af0c0;p=ceph-ci.git mgr/cephadm: always use the internal cryptocaller The cephadm modules needs to use python cryptography module for ssh (via asyncssh) and thus there's no need to use the remote crypto caller in cephadm. Configure cephadm to always use the internal cryptocaller. Signed-off-by: John Mulligan (cherry picked from commit 2128ffa619c9a4a800fb6394503b8ecc5b16fa96) Conflicts: src/pybind/mgr/cephadm/module.py - REQUIRE_POST_OPTIONS import was not present in that file on squid, so removing it --- diff --git a/src/pybind/mgr/cephadm/module.py b/src/pybind/mgr/cephadm/module.py index 1ddfb0240e7..08f1e09b03c 100644 --- a/src/pybind/mgr/cephadm/module.py +++ b/src/pybind/mgr/cephadm/module.py @@ -35,6 +35,7 @@ from ceph.deployment.service_spec import \ HostPlacementSpec, IngressSpec, \ TunedProfileSpec, IscsiServiceSpec from ceph.utils import str_to_datetime, datetime_to_str, datetime_now +from ceph.cryptotools.select import choose_crypto_caller from cephadm.serve import CephadmServe from cephadm.services.cephadmservice import CephadmDaemonDeploySpec from cephadm.http_server import CephadmHttpServer @@ -545,6 +546,10 @@ class CephadmOrchestrator(orchestrator.Orchestrator, MgrModule, super(CephadmOrchestrator, self).__init__(*args, **kwargs) self._cluster_fsid: str = self.get('mon_map')['fsid'] self.last_monmap: Optional[datetime.datetime] = None + # cephadm module always needs access to the real cryptography module + # for asyncssh. It is always permitted to use the internal + # cryptocaller. + choose_crypto_caller('internal') # for serve() self.run = True