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
This commit is contained in:
Georg Kunz 2019-10-15 22:49:04 +02:00 committed by Tin Lam
parent ae8a6c5d50
commit cd27f2714c

View File

@ -32,7 +32,7 @@ exec:
command: command:
- /bin/bash - /bin/bash
- -c - -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 }}
{{- end }} {{- end }}