Reload salt.minion before running jenkins.client state
Resresh salt-minion service to make sure it loads
the latest version of python libs on the targets
PROD-35056
Change-Id: I5ee85b83fe09ec0878bbe2cc50df4fb5d08f3b62
diff --git a/src/com/mirantis/mk/Orchestrate.groovy b/src/com/mirantis/mk/Orchestrate.groovy
index 429e8a2..47c8fbb 100644
--- a/src/com/mirantis/mk/Orchestrate.groovy
+++ b/src/com/mirantis/mk/Orchestrate.groovy
@@ -813,6 +813,9 @@
salt.enforceStateWithTest([saltId: master, target: "I@python:environment ${extra_tgt}", state: 'python'])
+ // Make sure salt minion is restarted and it loads latest python libs
+ salt.restartSaltMinion(master, gerrit_compound)
+ salt.restartSaltMinion(master, jenkins_compound)
withEnv(['ASK_ON_ERROR=false']){
retry(2){
try{