Merge "Switch pipeline to use new vm lib and few fixes"

This commit is contained in:
Zuul 2018-10-22 18:17:03 +00:00 committed by Gerrit Code Review
commit d9501c6fd3
1 changed files with 9 additions and 4 deletions

View File

@ -335,12 +335,17 @@ def sanity_tests = {
//// main flow
vm2() {
// wait and make sure genesis is up, and remove docker
// this ensures no containers are running after reboot
vm(timeout: 360) {
// wait and make sure genesis is up
ssh.wait (GENESIS_CREDS, GENESIS_IP, 'hostname')
// disable docker/kubelet services
// this is done to be able to properly cleanup genesis after reboot
ssh.cmd (GENESIS_CREDS, GENESIS_IP,
'sudo apt-get remove docker-engine -y')
'sudo systemctl disable kubelet')
ssh.cmd (GENESIS_CREDS, GENESIS_IP,
'sudo systemctl disable docker')
sh 'sudo apt-get update'
sh 'sudo apt-get install docker.io -y'