[vagrant] packaging tests: add parametrized retries for dnf install (#20749)
[vagrant] packaging tests: add parametrized retries for dnf install (#20749)

* Add parametrized retries for dnf install

Given that dnf doesn't do retries installation of openjdk can sometimes
be affected by checksum or network issues with mirrors offered by
metalink.

Allow setting number of retries through the parameter
`install_command_retries`

* Insert delay between package install retries

Fedora's metalink occasionally returns broken mirrors. Pausing for a few
seconds between retries increases the chance of receiving a different
list of mirrors from metalink and success with package installation.

geidies/elasticsearch,uschindler/elasticsearch,qwerty4030/elasticsearch,mortonsykes/elasticsearch,gmarz/elasticsearch,rajanm/elasticsearch,yanjunh/elasticsearch,vroyer/elasticassandra,fred84/elasticsearch,JSCooke/elasticsearch,JervyShi/elasticsearch,fred84/elasticsearch,LewayneNaidoo/elasticsearch,henakamaMSFT/elasticsearch,wenpos/elasticsearch,nknize/elasticsearch,lks21c/elasticsearch,masaruh/elasticsearch,kalimatas/elasticsearch,GlenRSmith/elasticsearch,a2lin/elasticsearch,geidies/elasticsearch,naveenhooda2000/elasticsearch,coding0011/elasticsearch,s1monw/elasticsearch,mohit/elasticsearch,MaineC/elasticsearch,maddin2016/elasticsearch,nezirus/elasticsearch,spiegela/elasticsearch,vroyer/elasticassandra,nezirus/elasticsearch,ZTE-PaaS/elasticsearch,artnowo/elasticsearch,Shepard1212/elasticsearch,obourgain/elasticsearch,StefanGor/elasticsearch,lks21c/elasticsearch,nilabhsagar/elasticsearch,artnowo/elasticsearch,scottsom/elasticsearch,LeoYao/elasticsearch,gfyoung/elasticsearch,Stacey-Gammon/elasticsearch,C-Bish/elasticsearch,henakamaMSFT/elasticsearch,shreejay/elasticsearch,pozhidaevak/elasticsearch,naveenhooda2000/elasticsearch,masaruh/elasticsearch,markwalkom/elasticsearch,strapdata/elassandra,LeoYao/elasticsearch,jimczi/elasticsearch,rajanm/elasticsearch,fred84/elasticsearch,elasticdog/elasticsearch,wangtuo/elasticsearch,scottsom/elasticsearch,kalimatas/elasticsearch,fforbeck/elasticsearch,uschindler/elasticsearch,kalimatas/elasticsearch,henakamaMSFT/elasticsearch,ThiagoGarciaAlves/elasticsearch,strapdata/elassandra,artnowo/elasticsearch,geidies/elasticsearch,IanvsPoplicola/elasticsearch,spiegela/elasticsearch,strapdata/elassandra,Shepard1212/elasticsearch,mjason3/elasticsearch,scorpionvicky/elasticsearch,uschindler/elasticsearch,brandonkearby/elasticsearch,robin13/elasticsearch,ThiagoGarciaAlves/elasticsearch,LeoYao/elasticsearch,StefanGor/elasticsearch,gingerwizard/elasticsearch,nezirus/elasticsearch,robin13/elasticsearch,C-Bish/elasticsearch,JackyMai/elasticsearch,sneivandt/elasticsearch,ThiagoGarciaAlves/elasticsearch,rlugojr/elasticsearch,nknize/elasticsearch,geidies/elasticsearch,wuranbo/elasticsearch,njlawton/elasticsearch,scorpionvicky/elasticsearch,jprante/elasticsearch,nilabhsagar/elasticsearch,Helen-Zhao/elasticsearch,i-am-Nathan/elasticsearch,sneivandt/elasticsearch,gingerwizard/elasticsearch,nazarewk/elasticsearch,C-Bish/elasticsearch,rlugojr/elasticsearch,wenpos/elasticsearch,obourgain/elasticsearch,markwalkom/elasticsearch,umeshdangat/elasticsearch,masaruh/elasticsearch,MisterAndersen/elasticsearch,IanvsPoplicola/elasticsearch,wuranbo/elasticsearch,JSCooke/elasticsearch,lks21c/elasticsearch,bawse/elasticsearch,gingerwizard/elasticsearch,gfyoung/elasticsearch,alexshadow007/elasticsearch,strapdata/elassandra,s1monw/elasticsearch,IanvsPoplicola/elasticsearch,Helen-Zhao/elasticsearch,markwalkom/elasticsearch,obourgain/elasticsearch,GlenRSmith/elasticsearch,qwerty4030/elasticsearch,robin13/elasticsearch,Stacey-Gammon/elasticsearch,JackyMai/elasticsearch,lks21c/elasticsearch,wangtuo/elasticsearch,JackyMai/elasticsearch,njlawton/elasticsearch,mortonsykes/elasticsearch,spiegela/elasticsearch,MisterAndersen/elasticsearch,JervyShi/elasticsearch,vroyer/elassandra,njlawton/elasticsearch,ZTE-PaaS/elasticsearch,markwalkom/elasticsearch,a2lin/elasticsearch,jimczi/elasticsearch,maddin2016/elasticsearch,artnowo/elasticsearch,Shepard1212/elasticsearch,umeshdangat/elasticsearch,pozhidaevak/elasticsearch,scottsom/elasticsearch,LewayneNaidoo/elasticsearch,gfyoung/elasticsearch,fernandozhu/elasticsearch,fforbeck/elasticsearch,wangtuo/elasticsearch,mortonsykes/elasticsearch,wenpos/elasticsearch,coding0011/elasticsearch,gingerwizard/elasticsearch,JSCooke/elasticsearch,s1monw/elasticsearch,JackyMai/elasticsearch,elasticdog/elasticsearch,fred84/elasticsearch,uschindler/elasticsearch,mikemccand/elasticsearch,Helen-Zhao/elasticsearch,spiegela/elasticsearch,umeshdangat/elasticsearch,coding0011/elasticsearch,umeshdangat/elasticsearch,kalimatas/elasticsearch,fforbeck/elasticsearch,gfyoung/elasticsearch,spiegela/elasticsearch,ThiagoGarciaAlves/elasticsearch,nezirus/elasticsearch,brandonkearby/elasticsearch,HonzaKral/elasticsearch,nilabhsagar/elasticsearch,sneivandt/elasticsearch,rlugojr/elasticsearch,Stacey-Gammon/elasticsearch,maddin2016/elasticsearch,elasticdog/elasticsearch,rlugojr/elasticsearch,mikemccand/elasticsearch,nezirus/elasticsearch,lks21c/elasticsearch,pozhidaevak/elasticsearch,scorpionvicky/elasticsearch,masaruh/elasticsearch,JervyShi/elasticsearch,gmarz/elasticsearch,qwerty4030/elasticsearch,C-Bish/elasticsearch,henakamaMSFT/elasticsearch,winstonewert/elasticsearch,HonzaKral/elasticsearch,i-am-Nathan/elasticsearch,jimczi/elasticsearch,liweinan0423/elasticsearch,MisterAndersen/elasticsearch,scorpionvicky/elasticsearch,Stacey-Gammon/elasticsearch,qwerty4030/elasticsearch,glefloch/elasticsearch,glefloch/elasticsearch,fernandozhu/elasticsearch,i-am-Nathan/elasticsearch,IanvsPoplicola/elasticsearch,wuranbo/elasticsearch,bawse/elasticsearch,s1monw/elasticsearch,fernandozhu/elasticsearch,shreejay/elasticsearch,mjason3/elasticsearch,gmarz/elasticsearch,JSCooke/elasticsearch,sneivandt/elasticsearch,Shepard1212/elasticsearch,gingerwizard/elasticsearch,nazarewk/elasticsearch,a2lin/elasticsearch,gmarz/elasticsearch,wangtuo/elasticsearch,shreejay/elasticsearch,LeoYao/elasticsearch,liweinan0423/elasticsearch,JervyShi/elasticsearch,Stacey-Gammon/elasticsearch,yanjunh/elasticsearch,MisterAndersen/elasticsearch,jprante/elasticsearch,nazarewk/elasticsearch,brandonkearby/elasticsearch,gingerwizard/elasticsearch,nazarewk/elasticsearch,naveenhooda2000/elasticsearch,mohit/elasticsearch,yanjunh/elasticsearch,vroyer/elasticassandra,HonzaKral/elasticsearch,obourgain/elasticsearch,winstonewert/elasticsearch,mohit/elasticsearch,mohit/elasticsearch,GlenRSmith/elasticsearch,mjason3/elasticsearch,fred84/elasticsearch,coding0011/elasticsearch,rajanm/elasticsearch,ThiagoGarciaAlves/elasticsearch,HonzaKral/elasticsearch,scottsom/elasticsearch,uschindler/elasticsearch,sneivandt/elasticsearch,bawse/elasticsearch,maddin2016/elasticsearch,LeoYao/elasticsearch,coding0011/elasticsearch,jprante/elasticsearch,JervyShi/elasticsearch,nilabhsagar/elasticsearch,MaineC/elasticsearch,jprante/elasticsearch,vroyer/elassandra,rajanm/elasticsearch,LeoYao/elasticsearch,a2lin/elasticsearch,scorpionvicky/elasticsearch,wuranbo/elasticsearch,alexshadow007/elasticsearch,rajanm/elasticsearch,rlugojr/elasticsearch,mortonsykes/elasticsearch,glefloch/elasticsearch,wenpos/elasticsearch,fernandozhu/elasticsearch,njlawton/elasticsearch,glefloch/elasticsearch,ZTE-PaaS/elasticsearch,pozhidaevak/elasticsearch,naveenhooda2000/elasticsearch,geidies/elasticsearch,jimczi/elasticsearch,MaineC/elasticsearch,liweinan0423/elasticsearch,StefanGor/elasticsearch,LeoYao/elasticsearch,robin13/elasticsearch,fforbeck/elasticsearch,liweinan0423/elasticsearch,C-Bish/elasticsearch,ZTE-PaaS/elasticsearch,naveenhooda2000/elasticsearch,yanjunh/elasticsearch,alexshadow007/elasticsearch,nazarewk/elasticsearch,LewayneNaidoo/elasticsearch,ZTE-PaaS/elasticsearch,mjason3/elasticsearch,MisterAndersen/elasticsearch,JackyMai/elasticsearch,gingerwizard/elasticsearch,jimczi/elasticsearch,henakamaMSFT/elasticsearch,JervyShi/elasticsearch,GlenRSmith/elasticsearch,mjason3/elasticsearch,kalimatas/elasticsearch,s1monw/elasticsearch,qwerty4030/elasticsearch,shreejay/elasticsearch,markwalkom/elasticsearch,shreejay/elasticsearch,JSCooke/elasticsearch,mikemccand/elasticsearch,IanvsPoplicola/elasticsearch,elasticdog/elasticsearch,Helen-Zhao/elasticsearch,gfyoung/elasticsearch,mikemccand/elasticsearch,mortonsykes/elasticsearch,glefloch/elasticsearch,StefanGor/elasticsearch,nknize/elasticsearch,masaruh/elasticsearch,bawse/elasticsearch,elasticdog/elasticsearch,alexshadow007/elasticsearch,LewayneNaidoo/elasticsearch,i-am-Nathan/elasticsearch,wenpos/elasticsearch,LewayneNaidoo/elasticsearch,a2lin/elasticsearch,liweinan0423/elasticsearch,i-am-Nathan/elasticsearch,nknize/elasticsearch,geidies/elasticsearch,robin13/elasticsearch,bawse/elasticsearch,winstonewert/elasticsearch,alexshadow007/elasticsearch,scottsom/elasticsearch,markwalkom/elasticsearch,nknize/elasticsearch,fforbeck/elasticsearch,mikemccand/elasticsearch,brandonkearby/elasticsearch,jprante/elasticsearch,obourgain/elasticsearch,vroyer/elassandra,rajanm/elasticsearch,MaineC/elasticsearch,gmarz/elasticsearch,umeshdangat/elasticsearch,ThiagoGarciaAlves/elasticsearch,strapdata/elassandra,Shepard1212/elasticsearch,pozhidaevak/elasticsearch,brandonkearby/elasticsearch,wuranbo/elasticsearch,GlenRSmith/elasticsearch,yanjunh/elasticsearch,nilabhsagar/elasticsearch,wangtuo/elasticsearch,njlawton/elasticsearch,mohit/elasticsearch,winstonewert/elasticsearch,winstonewert/elasticsearch,maddin2016/elasticsearch,StefanGor/elasticsearch,MaineC/elasticsearch,fernandozhu/elasticsearch,Helen-Zhao/elasticsearch,artnowo/elasticsearch