Merge "Adding workaround for trusty network init"
diff --git a/openstack-compute-install.groovy b/openstack-compute-install.groovy
index f3b4ec3..82a3e40 100644
--- a/openstack-compute-install.groovy
+++ b/openstack-compute-install.groovy
@@ -38,6 +38,17 @@
common.infoMsg("Selected nodes: ${targetLiveAll}")
}
+ stage("Trusty workaround") {
+ if(salt.getGrain(saltMaster, minions[0], "oscodename")['return'][0].values()[0]["oscodename"] == "trusty") {
+ common.infoMsg("First node %nodename% has trusty")
+ common.infoMsg("Assuming trusty on all cluster, running extra network states...")
+ common.infoMsg("Network iteration #1. Bonding")
+ salt.enforceState(saltMaster, targetLiveAll, 'linux.network', true)
+ common.infoMsg("Network iteration #2. Vlan tagging and bridging")
+ salt.enforceState(saltMaster, targetLiveAll, 'linux.network', true)
+ }
+ }
+
stage("Setup repositories") {
salt.enforceState(pepperEnv, targetLiveAll, 'linux.system.repo', true)
}