One of the assumptions for ceph is that the entire cluster keeps its clocks in sync. We can thus assume that ntp-client and ntp shoud be installed and enabled for each of the member servers. At the moment ceph's init script only places a depend to run after the network is up and before netmount gets run. I've noticed that my hardware clock has often strayed just enough out of sync that the MON servers will complain about time being out of whack with the services that get started on a newly booted system. I ended up having to manually restart the ceph services after boot until I added an "after ntp-client" to the depend function. Reproducible: Sometimes Steps to Reproduce: 1. reboot a ceph cluster member 2. 3.
(In reply to Bill "vaxbrat" Sharer from comment #0) > One of the assumptions for ceph is that the entire cluster keeps its clocks > in sync. We can thus assume that ntp-client and ntp shoud be installed and > enabled for each of the member servers. You mean only net-misc/ntp will do and none of the other NTP implementations? net-misc/chrony net-misc/ntpclient net-misc/openntpd
this is not a hard requirement, you could even put all services {mon, osd, mds} into one machine, although this may not be a typical use case. but, I see your suggestion valid, one possible solution may just put a note into pkg_postinst() to suggest user install any ntp client to keep several servers time synced.
What I do now by directly editing the depend function in /etc/init.d/ceph is a hack that I have to redo every time that ceph gets updated. Since firefly has made the /etc/conf.d/ceph file pretty much a stub maybe you can introduce a variable in there that depend would pick up and use for additional dependend services. I don't know what additional wrinkles that systemd would cause since I'm staying with openrc. I'm sure I'll eventually have to deal with that beast when RHEL/Centos 7 get adopted.
(In reply to Bill "vaxbrat" Sharer from comment #3) > What I do now by directly editing the depend function in /etc/init.d/ceph is > a hack that I have to redo every time that ceph gets updated. this's fixed without revision bump 1) I've added "after ntp-client" into initd script, it's a slightly weak dependency, rather than "need", "use" which are hard dep. 2) notice/suggest user to install ntp client with README.gentoo doc > Since firefly > has made the /etc/conf.d/ceph file pretty much a stub maybe you can > introduce a variable in there that depend would pick up and use for > additional dependend services. > this would be too complicated, and sounds overkill to me. > I don't know what additional wrinkles that systemd would cause since I'm > staying with openrc. I'm sure I'll eventually have to deal with that beast > when RHEL/Centos 7 get adopted. we haven't supported systemd yet (upstream seems plan this), but let's open another bug if really come to this.. thanks for reporting this, I'm closing this