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/545893 /git.openstack. org/cgit/ openstack/ ironic/ commit/ ?id=f132e1b761e d5fb9bf8b51b4d5 8e787551e36746
Committed: https:/
Submitter: Zuul
Branch: stable/queens
commit f132e1b761ed5fb 9bf8b51b4d58e78 7551e36746
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