use magic reboot
Change-Id: I8759f1f60ee4554b93e9b781e9ea0a90f9f82d2b
diff --git a/lab-pipeline.groovy b/lab-pipeline.groovy
index a9673de..5751926 100644
--- a/lab-pipeline.groovy
+++ b/lab-pipeline.groovy
@@ -396,8 +396,8 @@
salt.runSaltProcessStep(saltMaster, 'I@opencontrail:control:id:1', 'cmd.run', ['/usr/share/contrail-utils/provision_vrouter.py --host_name cmp01 --host_ip 172.16.10.105 --api_server_ip 172.16.10.254 --oper add --admin_user admin --admin_password workshop --admin_tenant_name admin'], null, true)
}
- salt.runSaltProcessStep(saltMaster, 'I@nova:compute', 'system.reboot', [], null, true)
- sleep(10)
+ salt.runSaltProcessStep(saltMaster, 'I@nova:compute', 'cmd.run', ['exec 0>&-; exec 1>&-; exec 2>&-; nohup bash -c "ip link | grep vhost && echo no_reboot || sleep 5 && reboot & "'], null, true)
+ sleep(120)
}
}