Project

General

Profile

Bug #37712

Failed to execute command: systemctl enable ceph-mgr@

Added by Petr Malkov over 5 years ago. Updated over 5 years ago.

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

0%

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

Description

cat /etc/*release
PRETTY_NAME="Debian GNU/Linux buster/sid"

ceph manualy installed
apt-get install ceph
from default
deb http://mirror.corbina.net/debian/ buster main

ceph -v
ceph version 12.2.8 (ae699615bac534ea496ee965ac6192cb7e0e07c0) luminous (stable)

ceph-deploy --version
2.0.1

from
apt-get install python-pip
pip install ceph-deploy

ceph -s
cluster:
id: 8174d073-d7f9-4dc1-a238-d31e5af6beff
health: HEALTH_WARN
no active mgr

services:
mon: 3 daemons, quorum d10-mpv3,d10-mpv2,d10-mpv1
mgr: no daemons active
osd: 0 osds: 0 up, 0 in
data:
pools: 0 pools, 0 pgs
objects: 0 objects, 0B
usage: 0B used, 0B / 0B avail
pgs:

ceph-deploy mgr create d10-mpv1
[ceph_deploy.conf][DEBUG ] found configuration file at: /home/user/.cephdeploy.conf
[ceph_deploy.cli][INFO ] Invoked (2.0.1): /usr/local/bin/ceph-deploy mgr create d10-mpv1
[ceph_deploy.cli][INFO ] ceph-deploy options:
[ceph_deploy.cli][INFO ] username : None
[ceph_deploy.cli][INFO ] verbose : False
[ceph_deploy.cli][INFO ] mgr : [('d10-mpv1', 'd10-mpv1')]
[ceph_deploy.cli][INFO ] overwrite_conf : False
[ceph_deploy.cli][INFO ] subcommand : create
[ceph_deploy.cli][INFO ] quiet : False
[ceph_deploy.cli][INFO ] cd_conf : <ceph_deploy.conf.cephdeploy.Conf object at 0x7f2f95fb54d0>
[ceph_deploy.cli][INFO ] cluster : ceph
[ceph_deploy.cli][INFO ] func : <function mgr at 0x7f2f95fef578>
[ceph_deploy.cli][INFO ] ceph_conf : None
[ceph_deploy.cli][INFO ] default_release : False
[ceph_deploy.mgr][DEBUG ] Deploying mgr, cluster ceph hosts d10-mpv1:d10-mpv1
[d10-mpv1][DEBUG ] connection detected need for sudo
[d10-mpv1][DEBUG ] connected to host: d10-mpv1
[d10-mpv1][DEBUG ] detect platform information from remote host
[d10-mpv1][DEBUG ] detect machine type
[ceph_deploy.mgr][INFO ] Distro info: debian buster/sid sid
[ceph_deploy.mgr][DEBUG ] remote host will use systemd
[ceph_deploy.mgr][DEBUG ] deploying mgr bootstrap to d10-mpv1
[d10-mpv1][DEBUG ] write cluster configuration to /etc/ceph/{cluster}.conf
[d10-mpv1][DEBUG ] create path recursively if it doesn't exist
[d10-mpv1][INFO ] Running command: sudo ceph --cluster ceph --name client.bootstrap-mgr --keyring /var/lib/ceph/bootstrap-mgr/ceph.keyring auth get-or-create mgr.d10-mpv1 mon allow profile mgr osd allow * mds allow * -o /var/lib/ceph/mgr/ceph-d10-mpv1/keyring
[d10-mpv1][INFO ] Running command: sudo systemctl enable ceph-mgr@d10-mpv1
[d10-mpv1][WARNIN] Failed to enable unit: Unit file does not exist.
[d10-mpv1][ERROR ] RuntimeError: command returned non-zero exit status: 1
[ceph_deploy.mgr][ERROR ] Failed to execute command: systemctl enable ceph-mgr@d10-mpv1
[ceph_deploy][ERROR ] GenericError: Failed to create 1 MGRs

systemctl enable
Failed to enable unit: Unit file does not exist

ls /lib/systemd/system/ceph<-->
ceph-disk@.service ceph-mon.target ceph-osd.target
ceph-mon@.service ceph-osd@.service ceph.target

where is ceph-mgr@ ?

History

#1 Updated by Petr Malkov over 5 years ago

however I can do
ceph-mgr -i d10-mpv1

ceph -s
cluster:
id: 8174d073-d7f9-4dc1-a238-d31e5af6beff
health: HEALTH_OK

services:
mon: 3 daemons, quorum d10-mpv3,d10-mpv2,d10-mpv1
mgr: d10-mpv1(active)
osd: 0 osds: 0 up, 0 in

ceph auth list
mgr.d10-mpv1
key: AQAKSRpcVNrDGRAA5eHgKKfhhpuzcbQZXkNEQw==
caps: [mds] allow *
caps: [mon] allow profile mgr
caps: [osd] allow *

#2 Updated by Petr Malkov over 5 years ago

apt list --installed | grep ceph

ceph-base/testing,now 12.2.8+dfsg1-5 amd64 [installed,automatic]
ceph-common/testing,now 12.2.8+dfsg1-5 amd64 [installed,automatic]
ceph-mgr/testing,now 12.2.8+dfsg1-5 amd64 [installed]
ceph-mon/testing,now 12.2.8+dfsg1-5 amd64 [installed,automatic]
ceph-osd/testing,now 12.2.8+dfsg1-5 amd64 [installed,automatic]
ceph/testing,now 12.2.8+dfsg1-5 all [installed]
libcephfs2/testing,now 12.2.8+dfsg1-5 amd64 [installed,automatic]
python-cephfs/testing,now 12.2.8+dfsg1-5 amd64 [installed,automatic]

#3 Updated by Petr Malkov over 5 years ago

maybe it is connected

later by
http://docs.ceph.com/docs/luminous/install/manual-deployment/

i make filestore
ceph-volume lvm prepare --filestore --data {data-path} --journal {journal-path}

almost done
ceph osd tree
ID CLASS WEIGHT TYPE NAME STATUS REWEIGHT PRI-AFF
-1 0 root default
0 0 osd.0 down 0 1.00000
1 0 osd.1 down 0 1.00000
2 0 osd.2 down 0 1.00000
3 0 osd.3 down 0 1.00000
4 0 osd.4 down 0 1.00000
5 0 osd.5 down 0 1.00000

but
ceph-volume lvm activate --filestore {ID} {FSID}

gives
Failed to enable unit: Unit file does not exist

#4 Updated by Petr Malkov over 5 years ago

I solved it by

cd /lib/systemd/system
wget https://sources.debian.org/data/main/c/ceph/12.2.8+dfsg1-5/systemd/ceph-mgr.target
wget https://sources.debian.org/data/main/c/ceph/12.2.8+dfsg1-5/systemd/ceph-mgr@.service
systemctl daemon-reload
systemctl enable ceph-mgr.target
systemctl start ceph-mgr.target
systemctl enable ceph-mgr@d10-mpv1

pls update buster repo

#5 Updated by Kane Valentine over 5 years ago

This issue also effects Debian 'stretch' 9.6, as I discovered this evening, when using v13.2.2 'Mimic'.

[cpu-01][INFO  ] Running command: sudo systemctl enable ceph-mgr@cpu-01
[cpu-01][WARNIN] Failed to enable unit: File ceph-mgr@cpu-01.service: No such file or directory
[cpu-01][ERROR ] RuntimeError: command returned non-zero exit status: 1
[ceph_deploy.mgr][ERROR ] Failed to execute command: systemctl enable ceph-mgr@cpu-01

Also available in: Atom PDF