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:
$ ssh -l root $(grep -A20 local_vm_ip $(ls -t
/var/log/ovirt-hosted-engine-setup/ovirt-hosted-engine-setup-ansible-bootstrap_local_vm*
| head -1) | sed -n 's/^ "stdout":
"\([^"]*\)",/\1/p')
Best regards,
--
Didi