Run jenkins state only on cid node while upgrading
Also refresh pillar before executing the state.
Change-Id: Ifa04d62610c42a4ee08a5e2f43c81534024710cb
diff --git a/tcp_tests/tests/system/test_mcp_update.py b/tcp_tests/tests/system/test_mcp_update.py
index d9ab74b..6c1c257 100644
--- a/tcp_tests/tests/system/test_mcp_update.py
+++ b/tcp_tests/tests/system/test_mcp_update.py
@@ -417,7 +417,10 @@
"[from TCP-QA] Change for mysql new version")
show_step(3)
- salt.enforce_state("I@jenkins:client", "jenkins.client")
+ salt.run_state("I@jenkins:client and not I@salt:master",
+ "saltutil.refresh_pillar")
+ salt.enforce_state("I@jenkins:client and not I@salt:master",
+ "jenkins.client.job")
else:
LOG.info("Skip mysql upgrade fix")
# ############### Enable automatic upgrade ############################