Project

General

Profile

Actions

Bug #15333

closed

stale /etc/systemd/system/ceph* files after ceph uninstall

Added by Shinobu Kinjo about 8 years ago. Updated almost 6 years ago.

Status:
Resolved
Priority:
Urgent
Assignee:
Category:
-
Target version:
-
% Done:

0%

Source:
other
Tags:
Backport:
Regression:
No
Severity:
5 - suggestion
Reviewed:
Affected Versions:
ceph-qa-suite:
ceph-deploy
Pull request ID:
Crash signature (v1):
Crash signature (v2):

Description

[Description]

After uninstalling ceph using ""ceph-deploy"", it's not able to be completed to do "ceph-deploy mon create-initial".
It always ended up with being failure with the following output, "ceph-deploy install" worked fine though.

[Log]
[ceph_deploy.conf][DEBUG ] found configuration file at: /root/.cephdeploy.conf
[ceph_deploy.cli][INFO ] Invoked (1.5.31): /bin/ceph-deploy mon create-initial
[ceph_deploy.cli][INFO ] ceph-deploy options:
[ceph_deploy.cli][INFO ] username : None
[ceph_deploy.cli][INFO ] verbose : False
[ceph_deploy.cli][INFO ] overwrite_conf : False
[ceph_deploy.cli][INFO ] subcommand : create-initial
[ceph_deploy.cli][INFO ] quiet : False
[ceph_deploy.cli][INFO ] cd_conf :
<ceph_deploy.conf.cephdeploy.Conf instance at 0x1018c20>
[ceph_deploy.cli][INFO ] cluster : ceph
[ceph_deploy.cli][INFO ] func : <function
mon at 0x1011320>
[ceph_deploy.cli][INFO ] ceph_conf : None
[ceph_deploy.cli][INFO ] default_release : False
[ceph_deploy.cli][INFO ] keyrings : None
[ceph_deploy.mon][DEBUG ] Deploying mon, cluster ceph hosts octopus
[ceph_deploy.mon][DEBUG ] detecting platform for host octopus ...
[octopus][DEBUG ] connected to host: octopus
[octopus][DEBUG ] detect platform information from remote host
[octopus][DEBUG ] detect machine type
[octopus][DEBUG ] find the location of an executable
[ceph_deploy.mon][INFO ] distro info: CentOS Linux 7.2.1511 Core
[octopus][DEBUG ] determining if provided host has same hostname in remote
[octopus][DEBUG ] get remote short hostname
[octopus][DEBUG ] deploying mon to octopus
[octopus][DEBUG ] get remote short hostname
[octopus][DEBUG ] remote hostname: octopus
[octopus][DEBUG ] write cluster configuration to /etc/ceph/{cluster}.conf
[octopus][DEBUG ] create the mon path if it does not exist
[octopus][DEBUG ] checking for done path: /var/lib/ceph/mon/ceph-octopus/done
[octopus][DEBUG ] create a done file to avoid re-doing the mon deployment
[octopus][DEBUG ] create the init path if it does not exist
[octopus][INFO ] Running command: systemctl enable ceph.target
[octopus][WARNIN] Failed to execute operation: Access denied
[octopus][ERROR ] RuntimeError: command returned non-zero exit status: 1
[ceph_deploy.mon][ERROR ] Failed to execute command: systemctl enable
ceph.target
[ceph_deploy][ERROR ] GenericError: Failed to create 1 monitors

When the following files were deleted manually before reinstallation, everything seemed to fine.

[Files]
/etc/systemd/system/multi-user.target.wants/ceph.target
/etc/systemd/system/ceph-mon.target.wants

[Version]
1.5.31

[Operation]
ceph-deploy uninstall `hostname`


Related issues 1 (1 open0 closed)

Related to Ceph - Fix #17433: [systemd]: Ceph doesn`t remove symlinks for systemd servicesNew09/29/2016

Actions
Actions #1

Updated by Vasu Kulkarni almost 7 years ago

  • Project changed from 18 to devops
  • Assignee set to Boris Ranto
  • Priority changed from Low to Urgent

This is actually a issue with ceph uninstall, there is one more http://tracker.ceph.com/issues/17433

It can actually cause difficult issues to debug due to stale old entries, Please look at them and see how we can remove them during uninstall. Boris if you are not the right person, feel free to unassign.

Actions #2

Updated by Vasu Kulkarni almost 7 years ago

  • Related to Fix #17433: [systemd]: Ceph doesn`t remove symlinks for systemd services added
Actions #3

Updated by Vasu Kulkarni almost 7 years ago

  • Subject changed from "ceph-deploy uninstall" does not completely uninstall ceph to stale /etc/systemd/system/ceph* files after ceph uninstall
Actions #4

Updated by Boris Ranto over 6 years ago

Hi,

this should be a SELinux/systemd issue where SELinux is preventing the access to the old uninstalled files and should be fixed in later RHEL/Centos (7.3, ideally 7.4), see bugs like

https://bugzilla.redhat.com/show_bug.cgi?id=1154065
https://bugzilla.redhat.com/show_bug.cgi?id=1337041

-boris

Actions #5

Updated by Sage Weil almost 6 years ago

  • Status changed from New to Resolved

rhel 7.4 has been out for a while

Actions

Also available in: Atom PDF