]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
python-common/smb: work around socket path length limits for grpc lib 70684/head
authorJohn Mulligan <jmulligan@redhat.com>
Wed, 29 Jul 2026 19:19:55 +0000 (15:19 -0400)
committerJohn Mulligan <jmulligan@redhat.com>
Wed, 29 Jul 2026 21:53:50 +0000 (17:53 -0400)
commit144c6e8f761ac552c31247295c9f40aa385013c0
tree85cd0a92bf3a41d7e62a887539a8fafb17d2a31e
parente82ccd0873677ffd0cac1d081ecdea512dbc05bd
python-common/smb: work around socket path length limits for grpc lib

The grpc library (at least the version on centos/rocky 10) has a limit
of 107 characters. Even a fairly short host name is going to be close
to this limit due to the UUID and service name in the path.

Because the tool doesn't do much else and it is safe, the workaround is
to chdir to into the parent dir of the socket and only pass the relative
path name of socket.

Fixes: https://tracker.ceph.com/issues/78857
Signed-off-by: John Mulligan <jmulligan@redhat.com>
src/python-common/ceph/smb/ctl/__main__.py