[RFE] FSM event for skipping automatic cleaning
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Ironic |
Triaged
|
Wishlist
|
Unassigned |
Bug Description
Currently if automatic cleaning disabled node does quickly transition via CLEANING state. If API "get node" request comes at this moment it shows wrong state. Node provision state notifications should follow FSM logic and to be consistently with DB states. Therefore two messages (start, end) will be issued in this case. If a service collects nodes states history based on notifications, operator always will see transitions related to automatic cleaning in the results, even it disabled on the cluster. This also causes two non needed updates on services like Searchlight. Proposal: add new FSM event "skip" that changes state directly to AVAILABLE, two new FSM transitions related to automatic cleaning with this event:
add_transition(
add_transition(
Add logic based on existing config option that enables/disables automatic cleaning and new event to conductor manager.
tags: | added: rfe |
summary: |
- FSM event for skipping automatic cleaning + [RFE] FSM event for skipping automatic cleaning |
Changed in ironic: | |
assignee: | nobody → Varun Gadiraju (varun-gadiraju) |
Changed in ironic: | |
importance: | Undecided → Wishlist |
Changed in ironic: | |
assignee: | Varun Gadiraju (varun-gadiraju) → nobody |
This makes sense to me, the change should be pretty small and easy. And this way we'll avoid claiming a worker just to check an if statement.