Discussion:
[ceph-users] systemctl enable ceph-mon fails in ceph-deploy create initial (no such service)
Gruher, Joseph R
2015-12-02 21:32:13 UTC
Permalink
Hey folks. Running RHEL7.1 with stock 3.10.0 kernel and trying to deploy Infernalis. Haven't done this since Firefly but I used to know what I was doing. My problem is "ceph-deploy new" and "ceph-deploy install" seem to go well but "ceph-deploy mon create-initial" reliably fails when starting the ceph-mon service. I attached a full log of the deploy attempt and have pasted a sample of the problem below. Problem seems to be that the ceph-mon service it wants to start doesn't actually exist on the target system. Any ideas? Thanks!

[***@bdcr151 ceph]# ceph-deploy --overwrite-conf mon create-initial
[ceph_deploy.conf][DEBUG ] found configuration file at: /root/.cephdeploy.conf
[ceph_deploy.cli][INFO ] Invoked (1.5.28): /usr/bin/ceph-deploy --overwrite-conf 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 : True
[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 0x7f6078a1b638>
[ceph_deploy.cli][INFO ] cluster : ceph
[ceph_deploy.cli][INFO ] func : <function mon at 0x7f6078a0de60>
[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 bdcr151 bdcr153 bdcr155
[ceph_deploy.mon][DEBUG ] detecting platform for host bdcr151 ...
[bdcr151][DEBUG ] connected to host: bdcr151
[bdcr151][DEBUG ] detect platform information from remote host
[bdcr151][DEBUG ] detect machine type
[bdcr151][DEBUG ] find the location of an executable
[ceph_deploy.mon][INFO ] distro info: Red Hat Enterprise Linux Server 7.1 Maipo
[bdcr151][DEBUG ] determining if provided host has same hostname in remote
[bdcr151][DEBUG ] get remote short hostname
[bdcr151][DEBUG ] deploying mon to bdcr151
[bdcr151][DEBUG ] get remote short hostname
[bdcr151][DEBUG ] remote hostname: bdcr151
[bdcr151][DEBUG ] write cluster configuration to /etc/ceph/{cluster}.conf
[bdcr151][DEBUG ] create the mon path if it does not exist
[bdcr151][DEBUG ] checking for done path: /var/lib/ceph/mon/ceph-bdcr151/done
[bdcr151][DEBUG ] create a done file to avoid re-doing the mon deployment
[bdcr151][DEBUG ] create the init path if it does not exist
[bdcr151][INFO ] Running command: systemctl enable ceph.target
[bdcr151][INFO ] Running command: systemctl enable ceph-***@bdcr151
[bdcr151][WARNIN] Failed to issue method call: No such file or directory
[bdcr151][ERROR ] RuntimeError: command returned non-zero exit status: 1
[ceph_deploy.mon][ERROR ] Failed to execute command: systemctl enable ceph-***@bdcr151
[ceph_deploy.mon][DEBUG ] detecting platform for host bdcr153 ...
Loading...