git.net

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

[masakari] Run masakari-hostmonitor into Docker container


On Thu, 27 Jun 2019 at 21:52, <gaetan.trellu at incloudus.com> wrote:
>
> Hi,
>
> I'm integrating Masakari into Kolla and Kolla Ansible projects but I'm
> facing
> an issue related to masakari-hostmonitor.
>
> Based on masakari-monitors code[1], "systemctl status" command is used
> to check
> if pacemaker, pacemaker-remote and corosync are running.
>
> Having systemd running into Docker container is not the best solution.
> Does any
> of you has been able to run masakari-monitor into Docker container ?
>

I would not recommend running the systemd daemon in a container, but
you could potentially use the client to access a daemon running on the
host. E.g., for debian:
https://stackoverflow.com/questions/54079586/make-systemctl-work-from-inside-a-container-in-a-debian-stretch-image.
No doubt there will be various gotchas with this.

Are you planning to run pacemaker and corosync on the host?

Mark

> Thanks for your help.
>
> Gaëtan
>
> - [1]
> https://github.com/openstack/masakari-monitors/blob/26d558333d9731ca06da09b26fe6592c49c0ac8a/masakarimonitors/hostmonitor/host_handler/handle_host.py#L48
>