[MaaS] Override failed testing by default 77/52277/2
authorAlexandru Avadanii <Alexandru.Avadanii@enea.com>
Sat, 17 Feb 2018 17:01:57 +0000 (18:01 +0100)
committerAlexandru Avadanii <Alexandru.Avadanii@enea.com>
Sat, 17 Feb 2018 20:08:38 +0000 (21:08 +0100)
commit9f082ecb39beaa09132a8be611bb640c579d95d0
tree7d83a092409ceb8fc19635a58ad6089657ad3a46
parent7a464cc994463231bb7d5dfbc9a29bcfcea5bbdb
[MaaS] Override failed testing by default

Some nodes fail automatic testing done by MaaS during commissioning,
although running the testing suites one more time manually works.
For now, just override all 'failed testing' nodes unconditionally.

[stable/euphrates cherry-pick additions]
Note: Since our salt formulas are pinned to 2017.12 repos, we
need to backport one salt-formula-maas patch merged upstream, which
adds support for translating status code '22' to 'Failed testing' [1].

JIRA: FUEL-333

[1] https://github.com/salt-formulas/salt-formula-maas/commit/08ffc3ff

Change-Id: I13d3ee3d82550524480aa53aa8752ab90aa940cd
Signed-off-by: Alexandru Avadanii <Alexandru.Avadanii@enea.com>
(cherry picked from commit 81561126307f15d4f65a743ed2431ea8c713a921)
mcp/config/states/maas
mcp/patches/0009-maas.py-Add-missing-status-ids.patch [new file with mode: 0644]
mcp/patches/patches.list
mcp/salt-formulas/maas/machines/delete.sls
mcp/salt-formulas/maas/machines/mark_broken_fixed.sls
mcp/salt-formulas/maas/machines/override_failed_testing.sls [new file with mode: 0644]