[MaaS] destructive storage test fio on failure 79/55979/1
authorAlexandru Avadanii <Alexandru.Avadanii@enea.com>
Wed, 18 Apr 2018 03:59:09 +0000 (05:59 +0200)
committerAlexandru Avadanii <Alexandru.Avadanii@enea.com>
Wed, 18 Apr 2018 13:42:13 +0000 (13:42 +0000)
commit9ac59e74cb03a86a2a287c132756cea85388eeca
treec807e60afb595a2bbc476a96b612d574a0fbc237
parent744d997ccdea187f8217af4cd12e27e2ac5fa3f1
[MaaS] destructive storage test fio on failure

Perform fio storage destructive test operation (usually takes just a
few minutes) to completely destroy any previous storage metadata that
might cause issues with cleanup in cloud-init/curtin during deploy.

Only resort to fio when a node fails to deploy, which allows us to
reuse the `maas.machines.mark_broken_state` state.

JIRA: FUEL-365

Change-Id: Ief327e6b4fefa83a8a3c131acfdf9f5fd605689d
Signed-off-by: Alexandru Avadanii <Alexandru.Avadanii@enea.com>
(cherry picked from commit 3d6c3323256d6dde62ea335e53427410f730a192)
mcp/salt-formulas/maas/machines/mark_broken_fixed.sls