Currently the deploy host status is being moved to failed only
when it is rejected, thus having a reject reason. However, there
are scenarios where deploy host can fail and not necessarily with
a reject reason, so these scenarios are not being covered.
This commit fixes this issue, along with some minor tox issues,
and convert the db api lock logs to debug, since they were
generating log lines that were bloating software.log.
Test Plan
PASS: force deploy host failure, verify the deploy host status
is updated accordingly
Regression
PASS: deploy host is rejected, verify the behavior remains the
same as before (deploy host status failed)
PASS: deploy host with success, verify the behavior remains the
same as before (deploy host status done)
Story: 2010676
Task: 49936
Signed-off-by: Heitor Matsui <heitorvieira.matsui@windriver.com>
Change-Id: Ibcc2246ee3bf4598ae3e21bdec59247d4e754855