Description of problem:
Upgrading the cephadm package removes the cephadm user (and home directory), which removes the ~cephadm/.ssh/authorized_keys file, causing the node to appear offline in the orchestrator.
Version-Release number of selected component (if applicable):
Always when upgrading the cephadm package from a prior release.
Steps to Reproduce:
1. Install cephadm
2. Install ssh public keys in ~cephadm/.ssh/authorized_keys
3. Upgrade cephadm
~cephadm home directory is removed
~cephadm/.ssh/authorized_keys should remain unchanged.
I've reported this upstream at https://tracker.ceph.com/issues/55664 (now fixed)
To fix the Fedora rpm spec, two patches are required... (both applied to ceph master and being backported)
# only remove cephadm user on uninstall:
# correctly mark ~cephadm/.ssh/authorized_keys as config(noreplace):
For ref: there is also a bug for this issue fixed in Red Hat Ceph Storage: https://bugzilla.redhat.com/show_bug.cgi?id=2013085
FEDORA-2022-8c9a42cf02 has been submitted as an update to Fedora 35. https://bodhi.fedoraproject.org/updates/FEDORA-2022-8c9a42cf02
Looks good, worked on second reinstall (of course, during upgrade from previous version, cephadm was still removed as the bug was still present in the old package... but that's to be expected)
FEDORA-2022-8c9a42cf02 has been pushed to the Fedora 35 testing repository.
Soon you'll be able to install the update with the following command:
`sudo dnf upgrade --enablerepo=updates-testing --advisory=FEDORA-2022-8c9a42cf02`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2022-8c9a42cf02
See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.
FEDORA-2022-8c9a42cf02 has been pushed to the Fedora 35 stable repository.
If problem still persists, please make note of it in this bug report.