maas: Avoid race condition in node fixups 09/69609/1
authorAlexandru Avadanii <Alexandru.Avadanii@enea.com>
Wed, 29 Jan 2020 16:31:06 +0000 (17:31 +0100)
committerAlexandru Avadanii <Alexandru.Avadanii@enea.com>
Wed, 29 Jan 2020 17:40:55 +0000 (17:40 +0000)
commit1be5f40ede2e0939235e9cac7293f6a1daaf461b
tree0777d845318f33fc20d4593e48afe972ec3bcfa1
parentebe8fcb9f0b1939d0ce63d92fbae427e05321674
maas: Avoid race condition in node fixups

When more than one node enters a failure state during a deploy attempt,
we recover the first one and issue another deploy request; avoid raising
an exception for the second node (which is not in 'Ready' state either),
allowing the retries to continue.

Change-Id: I4a3e037e78b5c48aebf6e700115c0bbf848c7cd5
Signed-off-by: Alexandru Avadanii <Alexandru.Avadanii@enea.com>
(cherry picked from commit 1c2b1de8cda572e5462113220206f0d934ac5f96)
mcp/patches/salt-formula-maas/0003-Extend-wait_for-maas.py-wait_for_-attempts-arg.patch
mcp/patches/salt-formula-maas/0005-Implement-tags-support.patch