Run podified tobiko background test on tripleo topologies

Tobiko can execute the background ping test from a pod when the
topology is tripleo. The only requirement is that openshift client is
available from the test/tobiko machine.

Change-Id: I55fa72bf88bd8664ea980d1cdab54f0e918ac6bd
This commit is contained in:
Eduardo Olivares 2025-01-29 11:00:57 +01:00
parent a17a603975
commit 57aa66b3af

View File

@ -25,6 +25,7 @@ from tobiko import config
from tobiko.openstack import neutron
from tobiko.openstack import nova
from tobiko.openstack import topology
from tobiko.podified import _openshift
from tobiko import rhosp
from tobiko.shell import files
from tobiko.shell import sh
@ -190,8 +191,10 @@ class TripleoTopology(rhosp.RhospTopology):
def check_or_start_background_vm_ping(self, server_ip):
if CONF.tobiko.tripleo.run_background_ping_in_pod:
tobiko.skip_test("Running background ping in the POD "
"is not implemented yet")
# this fails if `oc` (openshift client) is not available
# so, if `run_background_ping_in_pod` is true, make sure `oc` is
# available
_openshift.check_or_start_tobiko_ping_command(server_ip)
else:
tripleo_nova.check_or_start_background_vm_ping(server_ip)