Clean nodes stuck in CLEANING state when ir-cond restarts
When a conductor managing a node dies abruptly mid cleaing, the
node will get stuck in the CLEANING state.
This also moves _start_service() before creating CLEANING nodes
in tests. Finally, it adds autospec to a few places where the tests
fail in a mysterious way otherwise.
Reviewed: https:/ /review. openstack. org/546083 /git.openstack. org/cgit/ openstack/ ironic/ commit/ ?id=8ad8c874d20 8e2c80be05bc64a fe67d9a9c7a9ec
Committed: https:/
Submitter: Zuul
Branch: stable/pike
commit 8ad8c874d208e2c 80be05bc64afe67 d9a9c7a9ec
Author: Zhenguo Niu <email address hidden>
Date: Tue Aug 2 20:24:54 2016 +0800
Clean nodes stuck in CLEANING state when ir-cond restarts
When a conductor managing a node dies abruptly mid cleaing, the
node will get stuck in the CLEANING state.
This also moves _start_service() before creating CLEANING nodes
in tests. Finally, it adds autospec to a few places where the tests
fail in a mysterious way otherwise.
Change-Id: Ia7bce4dff57569 707de4fcf3002ea c241a5aa85b 717f8795494c103 2025407fe4)
Co-Authored-By: Dmitry Tantsur <email address hidden>
Partial-Bug: #1651092
(cherry picked from commit 2921fe685d8f096