redfish: process inspection rules during inspection
Include the execution of the inspection rules in the redfish inspector to behave more like the agent inspector behaves and allow for feature parity between the two. Change-Id: Ib0e69d361a7336a3f978d948043d651021ba1061 Signed-off-by: Doug Goldstein <cardoe@cardoe.com>
This commit is contained in:
@@ -20,6 +20,7 @@ import sushy
|
||||
from ironic.common import boot_modes
|
||||
from ironic.common import exception
|
||||
from ironic.common.i18n import _
|
||||
from ironic.common.inspection_rules import engine
|
||||
from ironic.common import states
|
||||
from ironic.common import utils
|
||||
from ironic.conf import CONF
|
||||
@@ -185,6 +186,7 @@ class RedfishInspect(base.InspectInterface):
|
||||
inventory,
|
||||
plugin_data,
|
||||
task.context)
|
||||
engine.apply_rules(task, inventory, plugin_data, 'main')
|
||||
|
||||
valid_keys = self.ESSENTIAL_PROPERTIES
|
||||
missing_keys = valid_keys - set(inspected_properties)
|
||||
|
@@ -47,7 +47,8 @@ class RedfishInspectTestCase(db_base.DbTestCase):
|
||||
enabled_management_interfaces=['redfish'],
|
||||
enabled_inspect_interfaces=['redfish'])
|
||||
self.node = obj_utils.create_test_node(
|
||||
self.context, driver='redfish', driver_info=INFO_DICT)
|
||||
self.context, driver='redfish', driver_info=INFO_DICT,
|
||||
provision_state=states.MANAGEABLE)
|
||||
|
||||
def init_system_mock(self, system_mock, **properties):
|
||||
|
||||
|
@@ -0,0 +1,5 @@
|
||||
---
|
||||
features:
|
||||
- |
|
||||
The redfish inspection interface can now utilize inspection rules as well
|
||||
as inspection hooks.
|
Reference in New Issue
Block a user