target_power_state should be cleared on conductor start up
Bug #1567255 reported by
Zhenguo Niu
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Ironic |
Fix Released
|
Medium
|
Zhenguo Niu |
Bug Description
when nova issuing a power action request to ironic, it will wait until the node target_power_state change to NOSTATE, but if there are something wrong with ironic during the waiting power state change process, and we reboot ironic conductor to recover, the nova instance's power state can't become complete any more, such as 'rebooting'.
so this proposes to clear the tartget_power_state during conductor startup, and it doesn't make sense to set the target state in a new started ironic.
Changed in ironic: | |
assignee: | nobody → Zhenguo Niu (niu-zglinux) |
To post a comment you must log in.
It makes sense, but it's not as simple as just clear the field in database. The power request might be in progress, so we should first wait for the target state. On timeout we should clean it and properly set the error.