[RFE] Support baremetal inspection abort operation

Bug #1703089 reported by Kaifeng Wang
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Ironic
Confirmed
Wishlist
Kaifeng Wang

Bug Description

Currently, we can't abort the process of node inspection from ironic api. When a node is not properly setup under inspection network, admins can only wait it to fail after specified timeout, or by requesting inspector from api or ``openstack baremetal introspection abort`` command to abort the introspection process.

Although the inspection state will be synchronized to ironic by periodic task, this is not consistent for an operation started from ironic, then stopped from inspector, furthermore, it will create a little delay of time. Node state is inconsistent between ironic and inspector until next state synchronization. The time defaults to 60 seconds, but may vary depends on user configuration.

This rfe is proposed to support ironic moving from state 'inspecting' to 'inspect failed' by the verb 'abort'. When ironic performs state transition, abort request will be sent to ironic inspector api to clean up, which is already implemented.

It will have an impact on state machine and ironic api.

Tags: needs-spec rfe
Kaifeng Wang (kaifeng)
Changed in ironic:
assignee: nobody → Wang KaiFeng (kaifeng)
Dmitry Tantsur (divius)
Changed in ironic:
status: New → Triaged
importance: Undecided → Wishlist
status: Triaged → Confirmed
tags: added: needs-spec
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Related fix proposed to ironic-specs (master)

Related fix proposed to branch: master
Review: https://review.openstack.org/482867

Kaifeng Wang (kaifeng)
description: updated
description: updated
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Related fix merged to ironic-specs (master)

Reviewed: https://review.openstack.org/482867
Committed: https://git.openstack.org/cgit/openstack/ironic-specs/commit/?id=725873a7603946bd2bf3ba9476b947f6148fdf2f
Submitter: Zuul
Branch: master

commit 725873a7603946bd2bf3ba9476b947f6148fdf2f
Author: KaiFeng Wang <email address hidden>
Date: Wed Jul 12 17:13:54 2017 +0800

    Support baremetal inspection abort operation

    Currently, we can't abort the process of node inspection from
    ironic api. When a node is not properly setup under inspection
    network, admins can only wait it to fail after a specified
    timeout value, or by using inspector api, or
    ``openstack baremetal introspection abort`` command to abort the
    introspection process.

    Although the inspection state will be synchronized to ironic by
    periodic task, it will create a little delay of time. Node state
    will be inconsistent between ironic api and inspector api before
    next state synchronization. The time defaults to 60 seconds, but
    may vary depends to user configuration.

    This spec will support ironic handling abort from the inspect wait
    state. The inspect wait state is required before this spec can
    proceed, which will be addressed by [1].

    [1] https://bugs.launchpad.net/ironic/+bug/1725211

    Change-Id: I54775e12ef558fd99c8d6f517e91348e6f0261c3
    Related-bug: #1703089

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.