When Exception in setup_interface, there was a error :ovn-k8s-cni-overlay 
| ERR | Unexpected exception not all arguments converted during string 
formatting

commit 5ad1515fbcd8f30302597affd24de5b09a686533
Author: Zhou Huijing <zhou.huij...@zte.com.cn>
Date:   Fri Nov 25 15:17:53 2016 +0800

<
https://github.com/openvswitch/ovn-kubernetes/blob/master/bin/ovn-k8s-cni-overlay
>:<when Exception,the log is missing a parameter>
 
Signed-off-by: Zhou Huijing <zhou.huij...@zte.com.cn>

diff --git a/bin/ovn-k8s-cni-overlay b/bin/ovn-k8s-cni-overlay
index 5562c8d..03d6fcc 100755
--- a/bin/ovn-k8s-cni-overlay
+++ b/bin/ovn-k8s-cni-overlay
@@ -133,7 +133,7 @@ def setup_interface(pid, container_id, cni_ifname, 
mac_address,
 
         return veth_outside
     except Exception as e:
-        vlog.warn("Failed to setup veth pair for pod" % str(e))
+        vlog.warn("Failed to setup veth pair for pod:%s" % str(e))
         command = "ip link delete %s" % (veth_outside)
         call_popen(shlex.split(command))
         raise OVNCNIException(100, "veth setup failure")
_______________________________________________
dev mailing list
d...@openvswitch.org
https://mail.openvswitch.org/mailman/listinfo/ovs-dev

Reply via email to