]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
cephadm: allow longer subcomponent names
authorJohn Mulligan <jmulligan@redhat.com>
Mon, 15 Jul 2024 19:14:37 +0000 (15:14 -0400)
committerJohn Mulligan <jmulligan@redhat.com>
Tue, 20 Aug 2024 13:42:12 +0000 (09:42 -0400)
Allow subcomponent names up to 32 chars long.

Signed-off-by: John Mulligan <jmulligan@redhat.com>
src/cephadm/cephadmlib/daemon_identity.py

index 760401a3e5402923bf4a06bef430cabed9d9b396..52a18092bf0bc8429163cf55f53b8346167ef70f 100644 (file)
@@ -117,7 +117,7 @@ class DaemonSubIdentity(DaemonIdentity):
     ) -> None:
         super().__init__(fsid, daemon_type, daemon_id)
         self._subcomponent = subcomponent
-        if not re.match('^[a-zA-Z0-9]{1,15}$', self._subcomponent):
+        if not re.match('^[a-zA-Z0-9]{1,32}$', self._subcomponent):
             raise ValueError(
                 f'invalid subcomponent; invalid characters: {subcomponent!r}'
             )