Project

General

Profile

Actions

Bug #55321

open

ceph-common RPM deletes /etc/ceph on removal

Added by Michel Jouvin about 2 years ago. Updated almost 2 years ago.

Status:
New
Priority:
Normal
Assignee:
-
Category:
build
Target version:
-
% Done:

0%

Source:
Community (user)
Tags:
Backport:
Regression:
No
Severity:
3 - minor
Reviewed:
Affected Versions:
ceph-qa-suite:
Pull request ID:
Crash signature (v1):
Crash signature (v2):

Description

Hi,

After migrating an existing cluster to cephadm, I decided to remove the Ceph packages from the cluster nodes, except cephadm. As a result, after the deployment of this change to the cluster, I lost the /etc/ceph directory on all nodes and when I reinstalled ceph-common to have the ceph command available on the nodes, I had a hard time to rebuild the keyring (in fact it is pretty simple once you know how to do it but finding the info took me some time). Looking a ceph-common RPM uninstall script, I saw that this script does a "rm -Rf /etc/ceph" rather than renaming it (or backuping it before removing it). IMO it is unexpected.

I suggest improving the uninstall script to use the common approach of renaming (something like /etc/ceph.rpmsave for example) or backuping the directory.

I had the problem with Octopus but check that Pacific ceph-common RPM has the same uninstall script.

Michel

Actions #1

Updated by Scott Shambarger almost 2 years ago

I just did a similar ceph-common removal after switching to cephadm, and found that /var/log/ceph/{fsid} was also removed, so ceph orch containers couldn't start after /etc/ceph was restored.

Actions #2

Updated by Ilya Dryomov almost 2 years ago

  • Target version deleted (v15.2.16)
Actions

Also available in: Atom PDF