[ovirt-devel] [ovirt-system-tests] ssh to an oVirt VM in Lago

Valentina Makarova makarovavs07 at gmail.com
Tue May 30 21:53:05 UTC 2017


Hello!

Please, help me to find way to execute some command in oVirt VM.

Is it possible to get ssh connection to non-host VM in LAGO?
And how can I get ssh connection through the console in my computer?

I installed ovirt-system-tests and run tests from basic-suite-master.
So there is 2 hosts and 3 vms in my configuration.
And I want to execute command inside the vm0 using LAGO (as part of my own
test).

It is easy for host vm and engine, there is method ''ssh"
in ovirt-engine-api-model.
And this task for host vm can be performed as there

prefix.virt_env.get_vm(VM_NAME).ssh(['bash_command_what_i_want'])

Please give me advice, can Iget connection to vm0 in a similar way?

And a second question is about ssh to this vm connection from my laptop's
console.
According run_vm test from  004_basic_sanity.py (
https://github.com/oVirt/ovirt-system-tests/blob/master/basic-suite-master/test-scenarios/004_basic_sanity.py#L385
) vm0 should contain interface with ip 192.168.200.200, but ping this from
engine (192.168.200.4) Destination Host Unreachable. And 'ping vm0' defined
vm0 as 192.168.201.213 and also couldn't reach vm0.
And in webadmin (https://engine/ovirt-engine/webadmin/#vms) IP Address
field is empty.

What is a right way to get connection to vm0 console and execute some
command there?

Sincerely,
Valentina Makarova
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.ovirt.org/pipermail/devel/attachments/20170530/6fd01b30/attachment.html>


More information about the Devel mailing list