From 5e3c1507371f7117fe5441070ce19e3a2062aec8 Mon Sep 17 00:00:00 2001 From: zhangzujian Date: Fri, 10 Sep 2021 08:12:56 +0800 Subject: [PATCH] fix variable referrence --- dist/images/install-pre-1.16.sh | 4 ++-- dist/images/install.sh | 4 ++-- dist/images/kubectl-ko | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/dist/images/install-pre-1.16.sh b/dist/images/install-pre-1.16.sh index c9091857554..da9e1c208f5 100644 --- a/dist/images/install-pre-1.16.sh +++ b/dist/images/install-pre-1.16.sh @@ -2573,7 +2573,7 @@ diagnose(){ nodeName="$2" kubectl get no "$nodeName" > /dev/null pinger=$(kubectl get pod -n $KUBE_OVN_NS -o wide | grep kube-ovn-pinger | grep " $nodeName " | awk '{print $1}') - echo "### start to diagnose node nodeName" + echo "### start to diagnose node $nodeName" echo "#### ovn-controller log:" kubectl exec -n $KUBE_OVN_NS "$pinger" -- tail /var/log/ovn/ovn-controller.log echo "" @@ -2581,7 +2581,7 @@ diagnose(){ kubectl exec -n $KUBE_OVN_NS "$pinger" -- tail /var/log/openvswitch/ovs-vswitchd.log echo "" kubectl exec -n $KUBE_OVN_NS "$pinger" -- /kube-ovn/kube-ovn-pinger --mode=job - echo "### finish diagnose node nodeName" + echo "### finish diagnose node $nodeName" echo "" ;; *) diff --git a/dist/images/install.sh b/dist/images/install.sh index 4b1b8a88989..60c2c4312a2 100755 --- a/dist/images/install.sh +++ b/dist/images/install.sh @@ -2646,7 +2646,7 @@ diagnose(){ nodeName="$2" kubectl get no "$nodeName" > /dev/null pinger=$(kubectl get pod -n $KUBE_OVN_NS -o wide | grep kube-ovn-pinger | grep " $nodeName " | awk '{print $1}') - echo "### start to diagnose node nodeName" + echo "### start to diagnose node $nodeName" echo "#### ovn-controller log:" kubectl exec -n $KUBE_OVN_NS "$pinger" -- tail /var/log/ovn/ovn-controller.log echo "" @@ -2654,7 +2654,7 @@ diagnose(){ kubectl exec -n $KUBE_OVN_NS "$pinger" -- tail /var/log/openvswitch/ovs-vswitchd.log echo "" kubectl exec -n $KUBE_OVN_NS "$pinger" -- /kube-ovn/kube-ovn-pinger --mode=job - echo "### finish diagnose node nodeName" + echo "### finish diagnose node $nodeName" echo "" ;; *) diff --git a/dist/images/kubectl-ko b/dist/images/kubectl-ko index dbea5c606e9..1ac50ad0dd5 100644 --- a/dist/images/kubectl-ko +++ b/dist/images/kubectl-ko @@ -299,7 +299,7 @@ diagnose(){ nodeName="$2" kubectl get no "$nodeName" > /dev/null pinger=$(kubectl get pod -n $KUBE_OVN_NS -o wide | grep kube-ovn-pinger | grep " $nodeName " | awk '{print $1}') - echo "### start to diagnose node nodeName" + echo "### start to diagnose node $nodeName" echo "#### ovn-controller log:" kubectl exec -n $KUBE_OVN_NS "$pinger" -- tail /var/log/ovn/ovn-controller.log echo "" @@ -307,7 +307,7 @@ diagnose(){ kubectl exec -n $KUBE_OVN_NS "$pinger" -- tail /var/log/openvswitch/ovs-vswitchd.log echo "" kubectl exec -n $KUBE_OVN_NS "$pinger" -- /kube-ovn/kube-ovn-pinger --mode=job - echo "### finish diagnose node nodeName" + echo "### finish diagnose node $nodeName" echo "" ;; *)