Hi,

Just checking before I start looking into ceph-deploy if the behavior I'm 
seeing is correct.

On a freshly installed Ubuntu 16.04 + Luminous 12.1.0 system I see that my 
ceph-mon services aren't starting on boot.

Deployed Ceph on three machines: alpha, bravo and charlie. Using 'alpha' I've 
deployed using ceph-deploy.

I found my thread from last year and followed the hints there: 
http://lists.ceph.com/pipermail/ceph-users-ceph.com/2016-May/009617.html

I checked the dependencies and ceph-mon.target wasn't enabled nor was it 
depending on ceph-mon@bravo (same happens on alpha and charlie).

I enabled the ceph-mon.target and re-enabled ceph-mon@bravo and now it works.

root@bravo:~# systemctl list-dependencies ceph.target
ceph.target
● ├─ceph-mon.target
● ├─ceph-mon.target
● └─ceph-osd.target
●   ├─[email protected]
●   └─[email protected]
root@bravo:~# systemctl enable ceph-mon@bravo
Created symlink from 
/etc/systemd/system/ceph-mon.target.wants/[email protected] to 
/lib/systemd/system/[email protected].
root@bravo:~# systemctl list-dependencies ceph.target
ceph.target
● ├─ceph-mgr.target
● │ ├─[email protected]
● │ └─[email protected]
● ├─ceph-mon.target
● │ ├─[email protected]
● │ └─[email protected]
● ├─ceph-mon.target
● │ ├─[email protected]
● │ └─[email protected]
● └─ceph-osd.target
●   ├─[email protected]
●   └─[email protected]
root@bravo:~#

Looking in my ceph-deploy log I found this:

[2017-06-26 11:20:57,386][bravo][INFO  ] Running command: systemctl enable 
ceph.target
[2017-06-26 11:20:57,396][bravo][WARNING] Created symlink from 
/etc/systemd/system/multi-user.target.wants/ceph.target to 
/lib/systemd/system/ceph.target.
[2017-06-26 11:20:57,465][bravo][INFO  ] Running command: systemctl enable 
ceph-mon@bravo
[2017-06-26 11:20:57,475][bravo][WARNING] Created symlink from 
/etc/systemd/system/ceph-mon.target.wants/[email protected] to 
/lib/systemd/system/[email protected].
[2017-06-26 11:20:57,541][bravo][INFO  ] Running command: systemctl start 
ceph-mon@bravo

So it enables ceph.target, ceph-mon@bravo and then starts the MON. But it never 
enabled ceph-mon.target. Is that correct?

If not I'll open a PR for ceph-deploy to enable ceph-mon.target as well.

Wido
_______________________________________________
ceph-users mailing list
[email protected]
http://lists.ceph.com/listinfo.cgi/ceph-users-ceph.com

Reply via email to