Make cluster removal fail softly 99/100899/2
authorPawel Wieczorek <p.wieczorek2@samsung.com>
Mon, 27 Jan 2020 16:32:20 +0000 (17:32 +0100)
committerPawel Wieczorek <p.wieczorek2@samsung.com>
Wed, 29 Jan 2020 16:12:32 +0000 (17:12 +0100)
VM destruction ("vagrant destroy") failed in case RKE cluster had not
been set up properly.

Initial intention for this trigger was to leave Control and Worker VMs
provisioned even if Operator VM is destroyed.

Issue-ID: ONAPARC-551
Change-Id: I2b47c539e2517a7c72675924731a0186d1ae25c0
Signed-off-by: Pawel Wieczorek <p.wieczorek2@samsung.com>
bootstrap/vagrant-minimal-onap/Vagrantfile

index e3b2c95..3ffa6a3 100644 (file)
@@ -149,7 +149,7 @@ $link_file = <<-SCRIPT
 SCRIPT
 
 $rke_up = "rke up"
-$rke_down = "rke remove --force"
+$rke_down = "rke remove --force || true" # best effort
 
 $get_oom = <<-SCRIPT
   BRANCH="${1:-5.0.1-ONAP}"