Prevent overwriting of last_error on cleaning failures
This changes moves the call to tear_down_cleaning to before we set
the last_error and maintenance_reason fields. Thus we avoid
overwriting last_error by e.g. power actions.
Related-Bug: #1588901
Change-Id: Ia448431a2922ea6f7adc27065dbcab1ba8358daa
(cherry picked from commit b93e5b05c43bd1ce23c7ffa85ee0ef1e8aa582ea)
Reviewed: https:/ /review. openstack. org/556836 /git.openstack. org/cgit/ openstack/ ironic/ commit/ ?id=26f1e784daa 5210f0ca13b2aa4 9c8462a25bdf32
Committed: https:/
Submitter: Zuul
Branch: stable/queens
commit 26f1e784daa5210 f0ca13b2aa49c84 62a25bdf32
Author: Dmitry Tantsur <email address hidden>
Date: Wed Feb 21 15:58:05 2018 +0100
Prevent overwriting of last_error on cleaning failures
This changes moves the call to tear_down_cleaning to before we set
the last_error and maintenance_reason fields. Thus we avoid
overwriting last_error by e.g. power actions.
Related-Bug: #1588901 6f7adc27065dbca b1ba8358daa e23c7ffa85ee0ef 1e8aa582ea)
Change-Id: Ia448431a2922ea
(cherry picked from commit b93e5b05c43bd1c