Merge "skip test_delete_ovn_controller_podified when no ovn-controller pods run"

This commit is contained in:
Zuul
2025-10-01 09:27:07 +00:00
committed by Gerrit Code Review

View File

@@ -748,6 +748,9 @@ class OvnControllerTest(BaseAgentTest):
labels={'service': 'ovn-controller-ovs'})
ovn_ctl_names = _openshift.get_pod_names(
labels={'service': 'ovn-controller'})
if len(ovn_ctl_ovs_names + ovn_ctl_names) == 0:
tobiko.skip_test('No ovn-controller pods running')
# Delete pods
_openshift.delete_pods(labels={'service': 'ovn-controller-ovs'})
_openshift.delete_pods(labels={'service': 'ovn-controller'})