]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
qa/cephadm: fix hardcoded 'sshd' unit name in setup_ca_signed_keys 69998/head
authorRedouane Kachach <rkachach@ibm.com>
Tue, 7 Jul 2026 13:47:11 +0000 (15:47 +0200)
committerRedouane Kachach <rkachach@ibm.com>
Tue, 7 Jul 2026 13:47:11 +0000 (15:47 +0200)
commit7b2217caf3c720ca058e3525276d8b6e205fcacb
treeac30470e603a3a1cdd6bc38a479b83fc2c41a50c
parent6c89866b534a380fe99e2e0eae5e4b904f6e6da8
qa/cephadm: fix hardcoded 'sshd' unit name in setup_ca_signed_keys

setup_ca_signed_keys() hardcoded `systemctl restart sshd`, which fails
on Debian/Ubuntu where the SSH server unit is named `ssh.service`
rather than `sshd.service`. Try `ssh` first, fall back to `sshd` if
that fails, grouped so the fallback only fires on restart failure and
doesn't mask a failed config write.

Fixes: https://tracker.ceph.com/issues/77991
Signed-off-by: Redouane Kachach <rkachach@ibm.com>
qa/tasks/cephadm.py