cephadm custom mgr modules
Hi there, I'm developing a custom ceph-mgr module and have issues deploying this on a cluster deployed with cephadm. With a cluster deployed with ceph-deploy, I can just put my code under /usr/share/ceph/mgr/ and load the module. This works fine. I think I found 2 options to do this with cephadm: 1. build a custom container image: https://docs.ceph.com/en/octopus/cephadm/install/#deploying-custom-container... 2. use the --shared_ceph_folder during cephadm bootstrap: 'Development mode. Several folders in containers are volumes mapped to different sub-folders in the ceph source folder' The shared folder method is only meant for development. So that is not an option in a production environment. Building a custom container image should be possible, but I don't think I want to go there. Are there more options? It would be nice if it was possible to deploy the managers with a custom service specification that for example mounts a folder from the host system to /usr/share/ceph/mgr/<module> in the container. Thanks! Rob Haverkamp
You want to build a custom container for that user case indeed. On Mon, Apr 12, 2021 at 2:18 PM Rob Haverkamp <r.haverkamp@42on.com> wrote:
Hi there,
I'm developing a custom ceph-mgr module and have issues deploying this on a cluster deployed with cephadm. With a cluster deployed with ceph-deploy, I can just put my code under /usr/share/ceph/mgr/ and load the module. This works fine.
I think I found 2 options to do this with cephadm:
1. build a custom container image: https://docs.ceph.com/en/octopus/cephadm/install/#deploying-custom-container... 2. use the --shared_ceph_folder during cephadm bootstrap: 'Development mode. Several folders in containers are volumes mapped to different sub-folders in the ceph source folder'
The shared folder method is only meant for development. So that is not an option in a production environment. Building a custom container image should be possible, but I don't think I want to go there.
Are there more options?
It would be nice if it was possible to deploy the managers with a custom service specification that for example mounts a folder from the host system to /usr/share/ceph/mgr/<module> in the container.
Thanks!
Rob Haverkamp _______________________________________________ ceph-users mailing list -- ceph-users@ceph.io To unsubscribe send an email to ceph-users-leave@ceph.io
Hi, this is one of the use cases mentioned in Tim Serong's talk: https://youtu.be/pPZsN_urpqw Containers are great for deploying a fixed state of a software project (a release), but not so much for the development of plugins etc. Regards -- Robert Sander Heinlein Support GmbH Schwedter Str. 8/9b, 10119 Berlin https://www.heinlein-support.de Tel: 030 / 405051-43 Fax: 030 / 405051-19 Amtsgericht Berlin-Charlottenburg - HRB 93818 B Geschäftsführer: Peer Heinlein - Sitz: Berlin
participants (3)
-
Rob Haverkamp
-
Robert Sander
-
Sebastian Wagner