Enforce linux repo update before calling package update
In case of offline deployment at the moment apt01's repositories were
updated and old taggen ones are removed.
Closes-bug: PROD-36246
Change-Id: If01bbb1d1a7aa4161808e644090491d2e3c35811
diff --git a/upgrade-mcp-release.groovy b/upgrade-mcp-release.groovy
index 823c0b6..bb52add 100644
--- a/upgrade-mcp-release.groovy
+++ b/upgrade-mcp-release.groovy
@@ -874,12 +874,11 @@
}
stage('Update Drivetrain') {
+ salt.enforceState(venvPepper, "I@linux:system", 'linux.system.repo', true, true, batchSize)
salt.enforceState(venvPepper, '*', 'linux.system.package', true, true, batchSize, false, 60, 2)
if (upgradeSaltStack) {
updateSaltStack("I@salt:master", '["salt-master", "salt-common", "salt-api", "salt-minion"]')
-
- salt.enforceState(venvPepper, "I@linux:system", 'linux.system.repo', true, true, batchSize)
updateSaltStack("I@salt:minion and not I@salt:master", '["salt-minion"]')
}