[ClusterLabs] Antw: how to connect to the cluster from a docker container

Dejan Muhamedagic dejanmm at fastmail.fm
Wed Aug 7 08:42:55 EDT 2019


Hi,

On Wed, Aug 07, 2019 at 11:23:09AM +0200, Klaus Wenninger wrote:
> On 8/7/19 10:09 AM, Dejan Muhamedagic wrote:
> > Hi Ulrich,
> >
> > On Tue, Aug 06, 2019 at 02:38:10PM +0200, Ulrich Windl wrote:
> >>>>> Dejan Muhamedagic <dejanmm at fastmail.fm> schrieb am 06.08.2019 um 10:37 in
> >> Nachricht <20190806083726.GA8262 at capote>:
> >>> Hi,
> >>>
> >>> Hawk runs in a docker container on one of the cluster nodes (the
> >>> nodes run Debian and apparently it's rather difficult to install
> >>> hawk on a non‑SUSE distribution, hence docker). Now, how to
> >>> connect to the cluster? Hawk uses the pacemaker command line
> >>> tools such as cibadmin. I have a vague recollection that there is
> >>> a way to connect over tcp/ip, but, if that is so, I cannot find
> >>> any documentation about it.
> >> I always thought hawk has to run on one of the cluster nodes (natively).
> > Well, let's see if that is the case. BTW, the Dockerfile is
> > available here:
> >
> > https://github.com/krig/docker-hawk
> >
> > Cheers,
> >
> > Dejan
> That container seems to be foreseen to act as a cluster-node
> controlling docker-containers on the same host.
> If the pacemaker-version inside the container is close enough
> to the pacemaker-version you are running on debian and
> if it has pacemaker-remote you might be able to run the
> container as guest-node.
> No idea though if tooling hawk uses is gonna be happy tunneling
> through pacemaker-remote.

hawk seems to be using only the standard pacemaker-cli-utils
(cibadmin etc).

> A little bit like hypervisors are doing it nowadays - running the
> admin-interface in a VM ...
> Of course just useful if you can live with hawk not being
> available if the cluster is in a state where it doesn't start
> the guest-node.

Interesting idea. Would then cibadmin et al work from this remote
node?

Cheers,

Dejan

> Klaus
> >
> >>> Cheers,
> >>>
> >>> Dejan
> >>> _______________________________________________
> >>> Manage your subscription:
> >>> https://lists.clusterlabs.org/mailman/listinfo/users 
> >>>
> >>> ClusterLabs home: https://www.clusterlabs.org/ 
> >>
> >>
> >> _______________________________________________
> >> Manage your subscription:
> >> https://lists.clusterlabs.org/mailman/listinfo/users
> >>
> >> ClusterLabs home: https://www.clusterlabs.org/
> > _______________________________________________
> > Manage your subscription:
> > https://lists.clusterlabs.org/mailman/listinfo/users
> >
> > ClusterLabs home: https://www.clusterlabs.org/
> 
> _______________________________________________
> Manage your subscription:
> https://lists.clusterlabs.org/mailman/listinfo/users
> 
> ClusterLabs home: https://www.clusterlabs.org/


More information about the Users mailing list