]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-ci.git/commitdiff
python-common/deployment: allow smb external store to use memory
authorJohn Mulligan <jmulligan@redhat.com>
Wed, 3 Dec 2025 22:03:59 +0000 (17:03 -0500)
committerJohn Mulligan <jmulligan@redhat.com>
Fri, 13 Feb 2026 16:38:11 +0000 (11:38 -0500)
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 <jmulligan@redhat.com>
src/python-common/ceph/deployment/service_spec.py

index 9b15ad1a8294d16ef6bc645614b386a950082832..f3989be1796b4737b293eb8864e298d6801d2cfc 100644 (file)
@@ -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