On Sun, Mar 14, 2021 at 11:15 AM Gianluca Cecchi
<gianluca.cecchi(a)gmail.com> wrote:
Il Dom 14 Mar 2021, 08:41 Yedidyah Bar David <didi(a)redhat.com> ha scritto:
>
> On Sun, Mar 14, 2021 at 8:01 AM <jost.rakovec(a)snt.si> wrote:
> >
> > Is it possible to ssh or any other way connect to self hosted engine during
deployment, since anssible is using ssh? I would like to check something?
> >
> > something like this:
> >
> > ssh -C -o ControlMaster=auto -o ControlPersist=60s -o User="root" -o
ConnectTimeout=10 -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null -o
ControlPath=/root/.ansible/cp/45a9ce675c -tt olvman.example.local /bin/sh -c
>
> An early phase of the deploy process creates a local VM, managed by
> libvirt directly (not vdsm).
>
> The IP address of this VM is written to the log.
>
> I use the following command to ssh to it from the host:
It seems to me that the temporary ip of the engine vm is also written inside /etc/hosts
of the hypervisor so I simply connected via ssh to this ip without any particular
option...
You are right. :-)
That said, the deploy process also removes it from there on cleanup,
so it might be gone by the time you check, even if the VM is still up
and has this IP. But I didn't check thoroughly.
Best regards,
--
Didi