deploy: Delete old Fuel env if present 89/17089/2
authorAlexandru Avadanii <Alexandru.Avadanii@enea.com>
Mon, 18 Jul 2016 15:48:53 +0000 (17:48 +0200)
committerAlexandru Avadanii <Alexandru.Avadanii@enea.com>
Mon, 18 Jul 2016 20:32:53 +0000 (22:32 +0200)
commit1c3f4a62f06a41186fd5f2a2d0ff9404330d2a41
tree51c2adbbcd0b60683b1598141ac105b324e281b1
parentc303d39b58243eab8a255f58e0bfa07371df168c
deploy: Delete old Fuel env if present

In order to clean up old partitioning and boot entries on target
nodes, before removing the Fuel Master, try ssh-ing into it and
removing all environments/nodes.

This is especially important for EFI systems, where old boot
entries are left behind without a proper env delete, leading to
target nodes failing to PXE boot on Fuel Master re-install.

This change assumes that:
- all Fuel Master information is unchanged between old and new
  deploy (fuel IP, password etc.);
- Fuel Master is up and running, in a sane state (target nodes
  are also online), when deploy starts;

Closes: ARMBAND-51

Change-Id: I52b853b37a0d226a9cb33179f7aeb65eff74da4e
Signed-off-by: Alexandru Avadanii <Alexandru.Avadanii@enea.com>
patches/opnfv-fuel/0002-deploy-Delete-old-Fuel-env-if-present.patch [new file with mode: 0644]