Fix waiting for logexporter log fetching processes
Fix waiting for logexporter log fetching processes

Fix bug found by shellcheck in logexporter log fetching
where last wait was not working properly.
Fix DumpClusterLogs hanging in 5k nodes clusters:
https://github.com/kubernetes/kubernetes/issues/85753

Change-Id: Id02bf9048b19e790940c7eac6d45d7fa7a3dfb2b

tpepper/kubernetes,ingvagabund/kubernetes,mosoft521/kubernetes,cadmuxe/kubernetes,mengqiy/kubernetes,enj/kubernetes,zetaab/kubernetes,cmluciano/kubernetes,tomzhang/kubernetes,mikedanese/kubernetes,soltysh/kubernetes,matthyx/kubernetes,deads2k/kubernetes,humblec/kubernetes,joelsmith/kubernetes,carlory/kubernetes,wanghaoran1988/kubernetes,tomerf/kubernetes,mboersma/kubernetes,JacobTanenbaum/kubernetes,chrislovecnm/kubernetes,zetaab/kubernetes,yarntime/kubernetes,deads2k/kubernetes,ping035627/kubernetes,andrewsykim/kubernetes,carlory/kubernetes,weiwei04/kubernetes,aveshagarwal/kubernetes,tcnghia/kubernetes,enj/kubernetes,johscheuer/kubernetes,GulajavaMinistudio/kubernetes,cmluciano/kubernetes,tpepper/kubernetes,sethpollack/kubernetes,bparees/kubernetes,fabriziopandini/kubernetes,monopole/kubernetes,JacobTanenbaum/kubernetes,mfojtik/kubernetes,luxas/kubernetes,jessfraz/kubernetes,LalatenduMohanty/kubernetes,stevesloka/kubernetes,sethpollack/kubernetes,fejta/kubernetes,x13n/kubernetes,Clarifai/kubernetes,mkumatag/kubernetes,sdminonne/kubernetes,zhangmingld/kubernetes,fgimenez/kubernetes,ii/kubernetes,jdef/kubernetes,davidz627/kubernetes,ping035627/kubernetes,mikebrow/kubernetes,fgimenez/kubernetes,x13n/kubernetes,maciaszczykm/kubernetes,mfojtik/kubernetes,PI-Victor/kubernetes,MikeSpreitzer/kubernetes,MHBauer/kubernetes,idvoretskyi/kubernetes,rrati/kubernetes,verult/kubernetes,brendandburns/kubernetes,Acidburn0zzz/kubernetes,kevin-wangzefeng/kubernetes,dereknex/kubernetes,mahak/kubernetes,roberthbailey/kubernetes,aledbf/kubernetes,luxas/kubernetes,Lion-Wei/kubernetes,k82cn/kubernetes,cadmuxe/kubernetes,humblec/kubernetes,Acidburn0zzz/kubernetes,PI-Victor/kubernetes,kubernetes/kubernetes,davidz627/kubernetes,chestack/kubernetes,pires/kubernetes,mfojtik/kubernetes,liggitt/kubernetes,warmchang/kubernetes,Acidburn0zzz/kubernetes,yarntime/kubernetes,chestack/kubernetes,PI-Victor/kubernetes,thockin/kubernetes,u2takey/kubernetes,kubernetes/kubernetes,sanjeevm0/kubernetes,derekwaynecarr/kubernetes,tallclair/kubernetes,u2takey/kubernetes,MHBauer/kubernetes,x13n/kubernetes,openshift/kubernetes,u2takey/kubernetes,kitt1987/kubernetes,JacobTanenbaum/kubernetes,lojies/kubernetes,idvoretskyi/kubernetes,LalatenduMohanty/kubernetes,iameli/kubernetes,jackfrancis/kubernetes,andrewsykim/kubernetes,PiotrProkop/kubernetes,gnufied/kubernetes,pmorie/kubernetes,LalatenduMohanty/kubernetes,verb/kubernetes,jsafrane/kubernetes,frodenas/kubernetes,rrati/kubernetes,aledbf/kubernetes,chestack/kubernetes,wanghaoran1988/kubernetes,stevesloka/kubernetes,csrwng/kubernetes,nckturner/kubernetes,olivierlemasle/kubernetes,sethpollack/kubernetes,BenTheElder/kubernetes,kevin-wangzefeng/kubernetes,mYmNeo/kubernetes,stevesloka/kubernetes,cmluciano/kubernetes,feiskyer/kubernetes,coolsvap/kubernetes,tomzhang/kubernetes,gnufied/kubernetes,tomzhang/kubernetes,pires/kubernetes,tcnghia/kubernetes,pwittrock/kubernetes,jackfrancis/kubernetes,jfrazelle/kubernetes,davidz627/kubernetes,fgimenez/kubernetes,rnaveiras/kubernetes,aledbf/kubernetes,mikebrow/kubernetes,mkumatag/kubernetes,rafax/kubernetes,jdef/kubernetes,enj/kubernetes,warmchang/kubernetes,cmluciano/kubernetes,andrewrynhard/kubernetes,x13n/kubernetes,alejandroEsc/kubernetes,fgimenez/kubernetes,cofyc/kubernetes,shyamjvs/kubernetes,jingxu97/kubernetes,PI-Victor/kubernetes,mYmNeo/kubernetes,kevin-wangzefeng/kubernetes,micahhausler/kubernetes,dixudx/kubernetes,mengqiy/kubernetes,li-ang/kubernetes,jessfraz/kubernetes,kevensen/kubernetes,alejandroEsc/kubernetes,x13n/kubernetes,weiwei04/kubernetes,sdminonne/kubernetes,micahhausler/kubernetes,cofyc/kubernetes,fejta/kubernetes,xlgao-zju/kubernetes,coolsvap/kubernetes,mahak/kubernetes,pweil-/kubernetes,saad-ali/kubernetes,openshift/kubernetes,hex108/kubernetes,wanghaoran1988/kubernetes,spzala/kubernetes,ixdy/kubernetes,nak3/kubernetes,tcnghia/kubernetes,liggitt/kubernetes,deads2k/kubernetes,kitt1987/kubernetes,lojies/kubernetes,aveshagarwal/kubernetes,dereknex/kubernetes,yujuhong/kubernetes,xychu/kubernetes,andrewrynhard/kubernetes,hex108/kubernetes,mikedanese/kubernetes,mkumatag/kubernetes,chestack/kubernetes,tomzhang/kubernetes,jsafrane/kubernetes,nak3/kubernetes,deads2k/kubernetes,pires/kubernetes,PiotrProkop/kubernetes,maciaszczykm/kubernetes,cadmuxe/kubernetes,wongma7/kubernetes,aveshagarwal/kubernetes,du2016/kubernetes,tpepper/kubernetes,pwittrock/kubernetes,Lion-Wei/kubernetes,tallclair/kubernetes,roberthbailey/kubernetes,derekwaynecarr/kubernetes,sanjeevm0/kubernetes,Acidburn0zzz/kubernetes,mahak/kubernetes,yujuhong/kubernetes,mikedanese/kubernetes,krmayankk/kubernetes,gnufied/kubernetes,soltysh/kubernetes,yujuhong/kubernetes,micahhausler/kubernetes,k82cn/kubernetes,pires/kubernetes,johscheuer/kubernetes,nckturner/kubernetes,MikeSpreitzer/kubernetes,krmayankk/kubernetes,sanjeevm0/kubernetes,johscheuer/kubernetes,wongma7/kubernetes,carlory/kubernetes,jessfraz/kubernetes,du2016/kubernetes,joelsmith/kubernetes,warmchang/kubernetes,luxas/kubernetes,krmayankk/kubernetes,tallclair/kubernetes,brendandburns/kubernetes,k82/kubernetes,dixudx/kubernetes,dereknex/kubernetes,ravisantoshgudimetla/kubernetes,nckturner/kubernetes,aveshagarwal/kubernetes,mfojtik/kubernetes,verb/kubernetes,dlorenc/kubernetes,ravisantoshgudimetla/kubernetes,nikhita/kubernetes,pweil-/kubernetes,gnufied/kubernetes,verult/kubernetes,maciaszczykm/kubernetes,joelsmith/kubernetes,pwittrock/kubernetes,coolsvap/kubernetes,mfojtik/kubernetes,liggitt/kubernetes,kevensen/kubernetes,ravilr/kubernetes,tengqm/kubernetes,iterion/kubernetes,linux-on-ibm-z/kubernetes,pmorie/kubernetes,feiskyer/kubernetes,ravilr/kubernetes,nckturner/kubernetes,erwinvaneyk/kubernetes,luxas/kubernetes,roberthbailey/kubernetes,fanzhangio/kubernetes,andrewsykim/kubernetes,kitt1987/kubernetes,ingvagabund/kubernetes,cblecker/kubernetes,sdminonne/kubernetes,kpgriffith/kubernetes,cblecker/kubernetes,li-ang/kubernetes,brendandburns/kubernetes,andrewsykim/kubernetes,rafax/kubernetes,derekwaynecarr/kubernetes,nckturner/kubernetes,fabriziopandini/kubernetes,bparees/kubernetes,kevin-wangzefeng/kubernetes,jdef/kubernetes,wanghaoran1988/kubernetes,monopole/kubernetes,humblec/kubernetes,pweil-/kubernetes,Acidburn0zzz/kubernetes,huangjiuyuan/kubernetes,xychu/kubernetes,brendandburns/kubernetes,mosoft521/kubernetes,li-ang/kubernetes,kpgriffith/kubernetes,spzala/kubernetes,ingvagabund/kubernetes,sdminonne/kubernetes,MikeSpreitzer/kubernetes,MHBauer/kubernetes,openshift/kubernetes,du2016/kubernetes,MHBauer/kubernetes,idvoretskyi/kubernetes,chrislovecnm/kubernetes,jsafrane/kubernetes,yujuhong/kubernetes,humblec/kubernetes,pwittrock/kubernetes,li-ang/kubernetes,linux-on-ibm-z/kubernetes,csrwng/kubernetes,mosoft521/kubernetes,soltysh/kubernetes,verult/kubernetes,Lion-Wei/kubernetes,zetaab/kubernetes,tpepper/kubernetes,fanzhangio/kubernetes,xychu/kubernetes,mkumatag/kubernetes,weiwei04/kubernetes,iterion/kubernetes,chrislovecnm/kubernetes,ii/kubernetes,k82cn/kubernetes,tomzhang/kubernetes,u2takey/kubernetes,roberthbailey/kubernetes,MikeSpreitzer/kubernetes,ixdy/kubernetes,cmluciano/kubernetes,chrislovecnm/kubernetes,spzala/kubernetes,xlgao-zju/kubernetes,liggitt/kubernetes,thockin/kubernetes,iterion/kubernetes,dlorenc/kubernetes,alejandroEsc/kubernetes,yarntime/kubernetes,xlgao-zju/kubernetes,tcnghia/kubernetes,derekwaynecarr/kubernetes,tengqm/kubernetes,rafax/kubernetes,micahhausler/kubernetes,kevensen/kubernetes,GulajavaMinistudio/kubernetes,jagosan/kubernetes,yujuhong/kubernetes,kevensen/kubernetes,joelsmith/kubernetes,nikhita/kubernetes,luxas/kubernetes,fanzhangio/kubernetes,feiskyer/kubernetes,zhangmingld/kubernetes,coolsvap/kubernetes,kubernetes/kubernetes,verult/kubernetes,pmorie/kubernetes,idvoretskyi/kubernetes,tomerf/kubernetes,bparees/kubernetes,Clarifai/kubernetes,jsafrane/kubernetes,ravisantoshgudimetla/kubernetes,Clarifai/kubernetes,PI-Victor/kubernetes,ravisantoshgudimetla/kubernetes,iameli/kubernetes,openshift/kubernetes,soltysh/kubernetes,JacobTanenbaum/kubernetes,chrislovecnm/kubernetes,erwinvaneyk/kubernetes,klaus1982/kubernetes,yarntime/kubernetes,zetaab/kubernetes,hex108/kubernetes,mYmNeo/kubernetes,fabriziopandini/kubernetes,stevesloka/kubernetes,MikeSpreitzer/kubernetes,k82/kubernetes,erwinvaneyk/kubernetes,dixudx/kubernetes,BenTheElder/kubernetes,k82/kubernetes,warmchang/kubernetes,weiwei04/kubernetes,mfojtik/kubernetes,mikedanese/kubernetes,thockin/kubernetes,mYmNeo/kubernetes,carlory/kubernetes,sethpollack/kubernetes,pires/kubernetes,fejta/kubernetes,mengqiy/kubernetes,nikhita/kubernetes,spzala/kubernetes,k82cn/kubernetes,chrislovecnm/kubernetes,k82/kubernetes,frodenas/kubernetes,erwinvaneyk/kubernetes,lojies/kubernetes,verb/kubernetes,alejandroEsc/kubernetes,ingvagabund/kubernetes,andrewrynhard/kubernetes,olivierlemasle/kubernetes,ixdy/kubernetes,dims/kubernetes,micahhausler/kubernetes,idvoretskyi/kubernetes,JacobTanenbaum/kubernetes,monopole/kubernetes,joelsmith/kubernetes,dlorenc/kubernetes,fanzhangio/kubernetes,gnufied/kubernetes,sanjeevm0/kubernetes,cadmuxe/kubernetes,brendandburns/kubernetes,aveshagarwal/kubernetes,mboersma/kubernetes,luxas/kubernetes,soltysh/kubernetes,zhouhaibing089/kubernetes,erwinvaneyk/kubernetes,iterion/kubernetes,carlory/kubernetes,matthyx/kubernetes,Lion-Wei/kubernetes,monopole/kubernetes,jfrazelle/kubernetes,MHBauer/kubernetes,yujuhong/kubernetes,k82/kubernetes,frodenas/kubernetes,ii/kubernetes,weiwei04/kubernetes,Lion-Wei/kubernetes,liggitt/kubernetes,zhangmingld/kubernetes,mboersma/kubernetes,mkumatag/kubernetes,fgimenez/kubernetes,tomerf/kubernetes,shyamjvs/kubernetes,andrewsykim/kubernetes,csrwng/kubernetes,mikebrow/kubernetes,wongma7/kubernetes,cmluciano/kubernetes,tallclair/kubernetes,mahak/kubernetes,jingxu97/kubernetes,klaus1982/kubernetes,thockin/kubernetes,csrwng/kubernetes,tengqm/kubernetes,frodenas/kubernetes,jagosan/kubernetes,davidz627/kubernetes,tengqm/kubernetes,matthyx/kubernetes,openshift/kubernetes,li-ang/kubernetes,jingxu97/kubernetes,tomerf/kubernetes,kpgriffith/kubernetes,cofyc/kubernetes,tcnghia/kubernetes,jackfrancis/kubernetes,LalatenduMohanty/kubernetes,olivierlemasle/kubernetes,pwittrock/kubernetes,BenTheElder/kubernetes,mengqiy/kubernetes,zhouhaibing089/kubernetes,ping035627/kubernetes,fejta/kubernetes,rnaveiras/kubernetes,kitt1987/kubernetes,dims/kubernetes,cblecker/kubernetes,rrati/kubernetes,mboersma/kubernetes,MHBauer/kubernetes,iterion/kubernetes,fejta/kubernetes,linux-on-ibm-z/kubernetes,johscheuer/kubernetes,iameli/kubernetes,feiskyer/kubernetes,GulajavaMinistudio/kubernetes,sdminonne/kubernetes,mahak/kubernetes,maciaszczykm/kubernetes,x13n/kubernetes,aledbf/kubernetes,mboersma/kubernetes,saad-ali/kubernetes,jdef/kubernetes,csrwng/kubernetes,mYmNeo/kubernetes,derekwaynecarr/kubernetes,pweil-/kubernetes,jsafrane/kubernetes,tomzhang/kubernetes,Acidburn0zzz/kubernetes,hex108/kubernetes,mboersma/kubernetes,johscheuer/kubernetes,verult/kubernetes,nikhita/kubernetes,enj/kubernetes,dlorenc/kubernetes,kpgriffith/kubernetes,ii/kubernetes,maciaszczykm/kubernetes,huangjiuyuan/kubernetes,fabriziopandini/kubernetes,huangjiuyuan/kubernetes,andrewrynhard/kubernetes,verult/kubernetes,fanzhangio/kubernetes,xychu/kubernetes,ping035627/kubernetes,xlgao-zju/kubernetes,jfrazelle/kubernetes,sanjeevm0/kubernetes,pmorie/kubernetes,tcnghia/kubernetes,alejandroEsc/kubernetes,ping035627/kubernetes,mikedanese/kubernetes,zhangmingld/kubernetes,rafax/kubernetes,maciaszczykm/kubernetes,dereknex/kubernetes,stevesloka/kubernetes,u2takey/kubernetes,zhouhaibing089/kubernetes,shyamjvs/kubernetes,wongma7/kubernetes,feiskyer/kubernetes,fejta/kubernetes,fgimenez/kubernetes,sanjeevm0/kubernetes,tallclair/kubernetes,PI-Victor/kubernetes,rnaveiras/kubernetes,dixudx/kubernetes,thockin/kubernetes,ravisantoshgudimetla/kubernetes,yarntime/kubernetes,mikebrow/kubernetes,chestack/kubernetes,jackfrancis/kubernetes,wanghaoran1988/kubernetes,yarntime/kubernetes,nak3/kubernetes,fabriziopandini/kubernetes,kitt1987/kubernetes,PiotrProkop/kubernetes,tpepper/kubernetes,kpgriffith/kubernetes,zetaab/kubernetes,andrewsykim/kubernetes,cadmuxe/kubernetes,krmayankk/kubernetes,kubernetes/kubernetes,dlorenc/kubernetes,mboersma/kubernetes,huangjiuyuan/kubernetes,verb/kubernetes,ixdy/kubernetes,rnaveiras/kubernetes,dlorenc/kubernetes,pweil-/kubernetes,cblecker/kubernetes,krmayankk/kubernetes,jessfraz/kubernetes,ravilr/kubernetes,saad-ali/kubernetes,brendandburns/kubernetes,tomzhang/kubernetes,tomzhang/kubernetes,sethpollack/kubernetes,saad-ali/kubernetes,jackfrancis/kubernetes,pmorie/kubernetes,jdef/kubernetes,tomzhang/kubernetes,BenTheElder/kubernetes,pires/kubernetes,johscheuer/kubernetes,jdef/kubernetes,jagosan/kubernetes,PiotrProkop/kubernetes,k82cn/kubernetes,jagosan/kubernetes,cblecker/kubernetes,huangjiuyuan/kubernetes,spzala/kubernetes,iameli/kubernetes,monopole/kubernetes,humblec/kubernetes,cofyc/kubernetes,andrewrynhard/kubernetes,mboersma/kubernetes,zetaab/kubernetes,linux-on-ibm-z/kubernetes,nikhita/kubernetes,shyamjvs/kubernetes,andrewrynhard/kubernetes,bparees/kubernetes,cofyc/kubernetes,GulajavaMinistudio/kubernetes,coolsvap/kubernetes,aledbf/kubernetes,jessfraz/kubernetes,davidz627/kubernetes,hex108/kubernetes,verb/kubernetes,nak3/kubernetes,tallclair/kubernetes,saad-ali/kubernetes,pweil-/kubernetes,rrati/kubernetes,kevensen/kubernetes,xlgao-zju/kubernetes,iameli/kubernetes,du2016/kubernetes,enj/kubernetes,ii/kubernetes,kevin-wangzefeng/kubernetes,coolsvap/kubernetes,LalatenduMohanty/kubernetes,dixudx/kubernetes,frodenas/kubernetes,aveshagarwal/kubernetes,linux-on-ibm-z/kubernetes,ravilr/kubernetes,mikebrow/kubernetes,dereknex/kubernetes,u2takey/kubernetes,huangjiuyuan/kubernetes,LalatenduMohanty/kubernetes,JacobTanenbaum/kubernetes,deads2k/kubernetes,pwittrock/kubernetes,BenTheElder/kubernetes,dims/kubernetes,kpgriffith/kubernetes,pmorie/kubernetes,zhangmingld/kubernetes,hex108/kubernetes,tomerf/kubernetes,lojies/kubernetes,kubernetes/kubernetes,Lion-Wei/kubernetes,tomerf/kubernetes,xychu/kubernetes,nak3/kubernetes,Clarifai/kubernetes,ravilr/kubernetes,rnaveiras/kubernetes,fanzhangio/kubernetes,warmchang/kubernetes,xychu/kubernetes,olivierlemasle/kubernetes,dims/kubernetes,olivierlemasle/kubernetes,saad-ali/kubernetes,tengqm/kubernetes,ixdy/kubernetes,shyamjvs/kubernetes,jfrazelle/kubernetes,nak3/kubernetes,ingvagabund/kubernetes,iterion/kubernetes,wongma7/kubernetes,krmayankk/kubernetes,stevesloka/kubernetes,idvoretskyi/kubernetes,GulajavaMinistudio/kubernetes,jagosan/kubernetes,derekwaynecarr/kubernetes,wanghaoran1988/kubernetes,Clarifai/kubernetes,dereknex/kubernetes,klaus1982/kubernetes,lojies/kubernetes,zhouhaibing089/kubernetes,mosoft521/kubernetes,jingxu97/kubernetes,dims/kubernetes,ixdy/kubernetes,cadmuxe/kubernetes,matthyx/kubernetes,bparees/kubernetes,davidz627/kubernetes,zhangmingld/kubernetes,PiotrProkop/kubernetes,matthyx/kubernetes,rrati/kubernetes,mengqiy/kubernetes,frodenas/kubernetes,Clarifai/kubernetes,roberthbailey/kubernetes,mYmNeo/kubernetes,weiwei04/kubernetes,jingxu97/kubernetes,xlgao-zju/kubernetes,cofyc/kubernetes,zhouhaibing089/kubernetes,joelsmith/kubernetes,tpepper/kubernetes,mosoft521/kubernetes,erwinvaneyk/kubernetes,ravisantoshgudimetla/kubernetes,kitt1987/kubernetes,klaus1982/kubernetes,jfrazelle/kubernetes,du2016/kubernetes,ingvagabund/kubernetes