mgr module interface change in mimic: config vs. store separation

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi all,

Quick heads-up for anyone working on mgr modules: now that the modules
have access to config options stored in the same central store as all
the normal config ceph config options, there are separate functions to
access generic key-value storage:
http://docs.ceph.com/docs/master/mgr/plugins/#kv-store

The config options also now all have to be declared in
MgrModule.OPTIONS -- this is so that ceph-mgr can do an upgrade and
know which keys to migrate into the config store.  If a module tries
to read/write a setting not declared in its OPTIONS it'll get an
exception.

I've updated the modules that were already in the tree, so that can
serve as an example of how to update a module:
https://github.com/ceph/ceph/commit/a5f71c59a5973c65586ee4da5d23eaf3cf8cc098
https://github.com/ceph/ceph/commit/54e5cef23400752add1bfa7cb05ff1599110720f

Cheers,
John
--
To unsubscribe from this list: send the line "unsubscribe ceph-devel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Index of Archives]     [CEPH Users]     [Ceph Large]     [Information on CEPH]     [Linux BTRFS]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux