[RFE] Allow using values from introspection for rule conditions

Bug #1579727 reported by Carmelo Ragusa
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Ironic Inspector
Zhenguo Niu

Bug Description

Currently it is possible to fetch values from the introspection data and assign it to a rule action, but it is not possible to fetch a value from introspection and use it as a rule condition.

For example as a condition:
If the bmc in the introspection data is equal to the ipmi address in the driver info of the node (for the condition), then set the ipmi username and password (as credentials).

Assign a different kernel and ramdisk based on the amount of RAM

Tags: rfe
Dmitry Tantsur (divius)
summary: - Using values from introspection for rule conditions
+ [RFE] Allow using values from introspection for rule conditions
tags: added: rfe
Changed in ironic-inspector:
status: New → Triaged
importance: Undecided → Wishlist
Changed in ironic-inspector:
assignee: nobody → Zhenguo Niu (niu-zglinux)
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/345535

Changed in ironic-inspector:
status: Triaged → In Progress
Revision history for this message
Chris Krelle (nobodycam) wrote :

I am not sure this is A true issue. I used Collected data in rule conditions since Mitaka version of inspector. I have used it to do what describe. I assign ipmi credentials based on manufacturer.
As an example:
{"op": "contains", "field": "data://inventory.system_vendor.manufacturer", "value": "Dell"}
{"op": "contains", "field": "data://inventory.system_vendor.manufacturer", "value": "HP"}

it is worth noting that I carry a patch internally to collect system_vendor information, but no code change to anything around the conditional usage support.

Revision history for this message
Julia Kreger (juliaashleykreger) wrote :

Based upon the last comment, this appears to be invalid. Please let us know if that is not the case.

Changed in ironic-inspector:
status: In Progress → 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.