[RFE] In-band introspection of diskless nodes

Bug #1554243 reported by aeva black
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Ironic
Invalid
Wishlist
Unassigned
Ironic Inspector
Fix Released
Wishlist
milan k

Bug Description

Problem: when no local disks are detected, ironic-inspector fails to process the host at all.

2016-03-07 22:43:39.171 20423 DEBUG ironic_inspector.main [-] Returning error to client: The following problems encountered: root disk is not supplied by the ramdisk and root_disk_selection hook is not enabled error_response /usr/local/lib/python2.7/dist-packages/ironic_inspector/main.py:65

UPD: proposal from dtantsur:

We need to distinguish nodes with and without disks. I don't think we should silently ignore missing root device for nodes that do not have remote volumes.

Create a new ironic-inspector API parameter "diskless" (boolean, default False). If this parameter is passed when starting the introspection, do not fail on missing disks and/or root device. Instead, set local_gb=0 to indicate missing root device.

Modify the ironic Inspector interface to pass "diskless" based on whether we have a valid storage interface.

Tags: rfe-approved
Revision history for this message
Dmitry Tantsur (divius) wrote : Re: [RFE] Support diskless nodes once Ironic gets such feature

I'm marking this bug as an RFE, cause not having local disks is something that does not make sense to Ironic right now. We at least have to provide local_gb. As Ironic is probably getting boot from volume support, things will change, and inspector will have to adapt.

summary: - SchedulerHook fails to update node.properties if no disks found
+ [RFE] Support diskless deployment once Ironic gets such feature
summary: - [RFE] Support diskless deployment once Ironic gets such feature
+ [RFE] Support diskless nodes once Ironic gets such feature
tags: added: rfe
Changed in ironic-inspector:
status: New → Confirmed
importance: Undecided → Wishlist
Dmitry Tantsur (divius)
Changed in ironic-inspector:
assignee: nobody → Dmitry Tantsur (divius)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to ironic-inspector (master)

Fix proposed to branch: master
Review: https://review.openstack.org/326620

Changed in ironic-inspector:
status: Confirmed → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Change abandoned on ironic-inspector (master)

Change abandoned by Dmitry Tantsur (<email address hidden>) on branch: master
Review: https://review.openstack.org/326620
Reason: I won't work on this for now

Dmitry Tantsur (divius)
Changed in ironic-inspector:
status: In Progress → Triaged
assignee: Dmitry Tantsur (divius) → nobody
Dmitry Tantsur (divius)
description: updated
summary: - [RFE] Support diskless nodes once Ironic gets such feature
+ [RFE] In-band introspection of diskless nodes
description: updated
description: updated
Changed in ironic:
status: New → Confirmed
importance: Undecided → Wishlist
Revision history for this message
Jim Rollenhagen (jim-rollenhagen) wrote :

Makes sense to me, +1

milan k (vetrisko)
Changed in ironic-inspector:
assignee: nobody → milan k (vetrisko)
Changed in ironic-inspector:
status: Triaged → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to ironic-inspector (master)

Reviewed: https://review.openstack.org/326620
Committed: https://git.openstack.org/cgit/openstack/ironic-inspector/commit/?id=6e2ea6242d8b5cd7e1e216b32185937aa583d84a
Submitter: Jenkins
Branch: master

commit 6e2ea6242d8b5cd7e1e216b32185937aa583d84a
Author: Dmitry Tantsur <email address hidden>
Date: Tue Jun 7 18:18:56 2016 +0200

    Allow diskless nodes introspection

    There is a demand to use introspection on diskless nodes to figure out
    what is possible to figure out.

    We might need more changes to properly support diskless nodes, this
    change is just to allow people to play with it.

    The property ``local_gb == 0`` for a diskless node.

    Change-Id: I21b2f2c069fdbf767367ec3d1fbf77bab6292b25
    Partial-Bug: #1554243

Revision history for this message
milan k (vetrisko) wrote :

Fix for inspector was released in the version 5.0

Changed in ironic-inspector:
status: In Progress → Fix Released
Revision history for this message
Ruby Loo (rloo) wrote :

A bit late :-), but jroll (comment #4) and dtantsur [1] are good with approving this.

[1] around 15:42, http://eavesdrop.openstack.org/irclogs/%23openstack-ironic/%23openstack-ironic.2017-11-21.log.html

tags: added: rfe-approved
removed: rfe
Revision history for this message
Julia Kreger (juliaashleykreger) wrote :

This was an inspector-only change. Marking invalid for ironic itself.

Changed in ironic:
status: Confirmed → Invalid
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.