Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 519540 - sys-cluster/ceph - Add depend on ntp-client
Summary: sys-cluster/ceph - Add depend on ntp-client
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Server (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Cluster Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-08-10 00:57 UTC by Bill "vaxbrat" Sharer
Modified: 2014-08-19 09:06 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Bill "vaxbrat" Sharer 2014-08-10 00:57:49 UTC
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.
Comment 1 Jeroen Roovers (RETIRED) gentoo-dev 2014-08-10 08:15:28 UTC
(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
Comment 2 Yixun Lan archtester gentoo-dev 2014-08-18 15:19:55 UTC
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.
Comment 3 Bill "vaxbrat" Sharer 2014-08-18 17:57:04 UTC
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.
Comment 4 Yixun Lan archtester gentoo-dev 2014-08-19 09:06:36 UTC
(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