From: John Mulligan Date: Wed, 3 Dec 2025 22:03:59 +0000 (-0500) Subject: python-common/deployment: allow smb external store to use memory X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=76a3bbdd738098c4ae9d34cdf8250b16429e9b6a;p=ceph.git python-common/deployment: allow smb external store to use memory This is needed to fix a test failure, users probably don't even know mem: exists and the risk that they'd use it is low. Signed-off-by: John Mulligan --- diff --git a/src/python-common/ceph/deployment/service_spec.py b/src/python-common/ceph/deployment/service_spec.py index 9b15ad1a829..f3989be1796 100644 --- a/src/python-common/ceph/deployment/service_spec.py +++ b/src/python-common/ceph/deployment/service_spec.py @@ -3831,7 +3831,7 @@ class SMBSpec(ServiceSpec): raise ValueError(f'{key} is not a valid service name') def _derive_cluster_uri(self, uri: str, objname: str) -> str: - if not uri.startswith('rados://'): + if not uri.startswith(('rados://', 'mem:')): raise ValueError('invalid uri scheme for cluster metadata') parts = uri[8:].split('/') parts[-1] = objname