9 Commits

Author SHA1 Message Date
Kaifeng Wang
bce7f11785 Implements baremetal inspect abort
This patch implements the feature of baremetal inspect abort.

For a node in inspect wait state, an abort request initiates the process of
introspection abort.

Adds transision from ``inspect wait`` to ``inspect failed`` with event
``abort`` to the state machine.

Adds an ``abort`` interface to ``InspectInterface``, which raises
UnsupportedDriverExtension by default.

Implements the ``abort`` interface for ironic inspector inspect interface.

API microversion is bumped for backwards compatibility.

Closes-Bug: #10602
Story: #1703089
Task: #10602

Change-Id: I02a39ed08c7c64b36c6ef05678f0af6d8324c5e2
2018-05-30 21:04:37 +08:00
Kaifeng Wang
6df82ee2bc Implementation of inspect wait state
This patch provides implementations to feature of adding inspect wait state.

Changes covered in this patch:

* Added state and transitions, state diagram regenerated.
* inspector and oneview inspect interface now return INSPECTWAIT instead of
  INSPECTING. Move node to inspect wait if inspect interface returns
  INSPECTING or INSPECTWAIT.
* Add a timeout option to conductor, and a periodic task to check timeout
  in the inspect wait state.

Story: #1725211
Task: #10630

Partial-Bug: #1725211
Change-Id: Ie76bfdad5966014a4dae826919ff5705462c743b
2018-04-10 11:21:46 +08:00
Shivanand Tendulker
084da02a32 Adds RPC calls for rescue interface
This commit adds RPC calls for rescue interface.
It also adds transitions to/from the rescue-related states.

Change-Id: I12cc8c3b89588394ff10837f05dd6ad5e9b55ee7
Partial-bug: #1526449
Co-Authored-By: Jay Faulkner <jay@jvf.cc>
Co-Authored-By: Josh Gachnang <josh@pcsforeducation.com>
Co-Authored-By: Jesse J. Cook <jesse.j.cook@member.fsf.org>
Co-Authored-By: Mario Villaplana <mario.villaplana@gmail.com>
Co-Authored-By: Aparna <aparnavtce@gmail.com>
Co-Authored-By: Shivanand Tendulker <stendulker@gmail.com>
2018-01-15 23:50:39 -05:00
Julia Kreger
832826f640 Active Node Creation via adopt state
At present the ironic API explicitly sets the new state for
nodes to the beginning step in the ironic workflow.

As part of hardware fleet lifecycle management, an operator
expects to be able to migrate inventory and control systems
for their hardware fleet utilizing their existing inventory
data and allocation records. Ultimately this means that
an imported host MAY already be allocated and unavailable
for immediate allocation.

As such, a mechanism is required to permit users to put nodes
into an ACTIVE state without performing a deployment operation.

This adds a new API provision_state verb to allow users to move
nodes from MANAGEABLE state to ACTIVE state.

Partial-Bug: #1526315
Change-Id: Ib3eadf4172e93add9a9855582f56cbb3707f3d39
Depends-On: Ie114bfaab249d73ea3ca7c0edc314ca1ed0448eb
2016-06-07 09:13:22 -04:00
Ruby Loo
4f8b97dff6 Show transitions initiated by API requests
This updates the state machine diagram and documentation to indicate
which transitions are initiated by API requests versus the ones that
are internally done by the conductor. Stable states are highlighted
a bit.

Change-Id: I1a2de81b14696286f1da47c06374ad235962c849
Closes-Bug: #1527316
2016-02-01 14:39:12 +00:00
Ruby Loo
43adad2e0a Add manual cleaning to state machine
This adds transitions to the state machine so that manual cleaning can
be performed on a node in the manageable provision state via the
'clean' verb. After cleaning is successfully finished, the node will
be in the manageable provision state again (via the 'manage' verb).

The state machine diagram was updated to reflect this.

Change-Id: Ifacdcceb65d1384351aa832042a7471bb48f0894
Implements: blueprint manual-cleaning
2015-11-18 22:26:51 +00:00
Ruby Loo
1af4e2db1c Add 'abort' to state machine diagram
Updates the state machine diagram to include the transition
from clean wait to clean fail, when an 'abort' is issued.

Change-Id: I125a0bb1660bf1788bcbfe1e0c3b0764a7a442d9
2015-09-23 20:22:30 +00:00
Ruby Loo
c419d57d95 enroll/verify/cleanwait in state machine diagram
This updates the state machine diagram to include enroll, verifying,
and clean wait states along with their transitions.

Change-Id: I7af3724b4f36a243b30f979f83cd79f40f209aac
2015-07-28 20:54:50 +00:00
Joshua Harlow
3681315012 Use svg as it looks better/scales better than png
Change-Id: I2a17b5ddbe90fe8ea1ead53497e4dfcac5bf5647
2015-06-03 16:56:45 -07:00