From cd27f2714c039930f0c032908a8f722e271110b2 Mon Sep 17 00:00:00 2001 From: Georg Kunz Date: Tue, 15 Oct 2019 22:49:04 +0200 Subject: [PATCH] Fix OVS-DPDK readiness probe for OVS < v2.10.0 A recently introduced readiness probe for OVS with DPDK makes use of an OVSDB table entry 'dpdk_initialized' which does not exist in OVS versions preceeding v2.10.0. This patch changes the readiness probe to exit successfully if this table entry does not exit. Change-Id: I1776ac4bf736220267a49042f1b7092f3cf5ed16 --- openvswitch/templates/daemonset-ovs-vswitchd.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/openvswitch/templates/daemonset-ovs-vswitchd.yaml b/openvswitch/templates/daemonset-ovs-vswitchd.yaml index fe0dc4343..598dbae13 100644 --- a/openvswitch/templates/daemonset-ovs-vswitchd.yaml +++ b/openvswitch/templates/daemonset-ovs-vswitchd.yaml @@ -32,7 +32,7 @@ exec: command: - /bin/bash - -c - - '/usr/bin/ovs-vsctl show && [ $(ovs-vsctl get Open_vSwitch . dpdk_initialized) == true ]' + - '/usr/bin/ovs-vsctl show && ! /usr/bin/ovs-vsctl list Open_vSwitch | grep -q dpdk_initialized.*false' {{- end }} {{- end }}