deploy: Delete old Fuel env if present 87/19487/1
authorAlexandru Avadanii <Alexandru.Avadanii@enea.com>
Mon, 18 Jul 2016 15:42:48 +0000 (17:42 +0200)
committerAlexandru Avadanii <Alexandru.Avadanii@enea.com>
Wed, 24 Aug 2016 13:42:57 +0000 (15:42 +0200)
commitf1e808677a29a157e009f33a1a5a024eaad2c021
tree41414e280333f4b33d26df8a2af15399ef62584d
parentae8196be2c5863a5ca837828eead7188d608023d
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: I7b61124ea9182ce2d599adcdedef03e0d8d67ed6
Signed-off-by: Alexandru Avadanii <Alexandru.Avadanii@enea.com>
deploy/deploy.py