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

Also available in: Atom PDF