summaryrefslogtreecommitdiffstats
path: root/src/cephadm
diff options
context:
space:
mode:
authorJohn Mulligan <jmulligan@redhat.com>2024-07-15 21:14:37 +0200
committerJohn Mulligan <jmulligan@redhat.com>2024-08-20 15:42:12 +0200
commit9c06ff345d5c39c6c014907c48eb1d2799e12a34 (patch)
treea10dee35bfd713db7eef16e1331578aecf46ac08 /src/cephadm
parentcephadm: add a new context getter for rank (diff)
downloadceph-9c06ff345d5c39c6c014907c48eb1d2799e12a34.tar.xz
ceph-9c06ff345d5c39c6c014907c48eb1d2799e12a34.zip
cephadm: allow longer subcomponent names
Allow subcomponent names up to 32 chars long. Signed-off-by: John Mulligan <jmulligan@redhat.com>
Diffstat (limited to 'src/cephadm')
-rw-r--r--src/cephadm/cephadmlib/daemon_identity.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cephadm/cephadmlib/daemon_identity.py b/src/cephadm/cephadmlib/daemon_identity.py
index 760401a3e54..52a18092bf0 100644
--- a/src/cephadm/cephadmlib/daemon_identity.py
+++ b/src/cephadm/cephadmlib/daemon_identity.py
@@ -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}'
)