All of lore.kernel.org
 help / color / mirror / Atom feed
* subpackages for mgr modules
@ 2017-05-19  6:19 Tim Serong
  2017-05-19 12:14 ` Sage Weil
  2017-05-19 18:25 ` Ken Dreyer
  0 siblings, 2 replies; 10+ messages in thread
From: Tim Serong @ 2017-05-19  6:19 UTC (permalink / raw)
  To: ceph-devel

Hi All,

At some point, we're going to want to have (some of) mgr's python
modules shipped not as part of the ceph-mgr package, but as subpackages
that can be optionally installed (ceph-mgr-foo, ceph-mgr-bar, whatever).
 That's easy to do.  What I'm wondering about is having installation of
an mgr module subpackage automatically enable the loading of that module.

Ordinarily, to enable an mgr module that isn't enabled by default at
compile time, you'd set "mgr modules = foo bar" in the [mgr] section of
ceph.conf.  But that will get irritating.

We can't have mgr just load everything that exists (someone might want
to disable some modules, without necessarily uninstalling them).

A couple of approaches I thought of are:

1) Add a command line argument (or arguments) to ceph-mgr to list
modules to enable (or disable).  This could in turn be set by some
variable(s) in /etc/sysconfig/ceph.  Subpackages then tweak those
variables at install time.

2) Do something with symlinks; set up a directory structure something
like this:

/usr/lib64/ceph/mgr/enabled/
/usr/lib64/ceph/mgr/modules/
/usr/lib64/ceph/mgr/modules/fsstatus
/usr/lib64/ceph/mgr/modules/rest
/usr/lib64/ceph/mgr/modules/...

Then, any module you want to enable, create a symlink to it from the
"enabled" directory.  Subpackages could do this at install time.  mgr
iterates through that directory and loads anything present.

(Personally I rather prefer approach 2 to approach 1).

I'm sure there's other possibilities.  Thoughts, anyone?

Thanks,

Tim
-- 
Tim Serong
Senior Clustering Engineer
SUSE
tserong@suse.com

^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2017-05-24 20:54 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-05-19  6:19 subpackages for mgr modules Tim Serong
2017-05-19 12:14 ` Sage Weil
2017-05-19 18:25 ` Ken Dreyer
2017-05-20  0:24   ` kefu chai
2017-05-21 22:31   ` John Spray
2017-05-22  8:22     ` Tim Serong
2017-05-22  8:51       ` Willem Jan Withagen
2017-05-22 15:45     ` Ken Dreyer
2017-05-24 20:15       ` Alfredo Deza
2017-05-24 20:53         ` John Spray

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.