Make initial cluster setup more robust 92/115392/1
authorPawel Wieczorek <p.wieczorek2@samsung.com>
Thu, 29 Oct 2020 11:04:58 +0000 (12:04 +0100)
committerPawel Wieczorek <p.wieczorek2@samsung.com>
Wed, 25 Nov 2020 14:55:49 +0000 (15:55 +0100)
Action "reset" triggers cluster shutdown attempt which will cause
failure of subsequent calls for cluster status.

Issue-ID: INT-1571
Change-Id: I4e607358fbeb910a250ac038cfc43682fb94bdea
Signed-off-by: Pawel Wieczorek <p.wieczorek2@samsung.com>
test/security/check_versions/env/Vagrantfile

index 28abbc5..9753a74 100644 (file)
@@ -27,7 +27,8 @@ Vagrant.configure("2") do |config|
        end
        config.vm.provision :reload;
        config.vm.provision "shell", privileged: false, inline: <<-end
-               microk8s reset &&\
+               microk8s start &&\
+               microk8s status --wait-ready &&\
                microk8s config > /home/vagrant/.kube/config &&\
                microk8s kubectl apply -f /home/vagrant/k8s_bin_versions_inspector/env/configuration
        end