I think this bug is invalid, due to RootDiskSelectionHook:before_update validates the not-found root_device hint causes mismatch error! It works on desired.
def before_update(self, introspection_data, node_info, **kwargs):
"""Detect root disk from root device hints and IPA inventory."""
hints = node_info.node().properties.get('root_device')
if not hints: LOG.debug('Root device hints are not provided', node_info=node_info, data=introspection_data)
return
inventory = utils.get_inventory(introspection_data, node_info=node_info)
try:
device = il_utils.match_root_device_hints(inventory['disks'], hints)
except (TypeError, ValueError) as e:
raise utils.Error( _('No disks could be found using the root device hints ' '%(hints)s because they failed to validate. ' 'Error: %(error)s') % {'hints': hints, 'error': e}, node_info=node_info, data=introspection_data)
if not device:
raise utils.Error(_('No disks satisfied root device hints'), node_info=node_info, data=introspection_data)
I think this bug is invalid, due to RootDiskSelecti onHook: before_ update validates the not-found root_device hint causes mismatch error! It works on desired.
def before_update(self, introspection_data, node_info, **kwargs): node(). properties. get('root_ device' )
LOG. debug(' Root device hints are not provided',
node_info= node_info, data=introspect ion_data)
"""Detect root disk from root device hints and IPA inventory."""
hints = node_info.
if not hints:
return
inventory = utils.get_ inventory( introspection_ data,
node_ info=node_ info) match_root_ device_ hints(inventory ['disks' ],
hints)
_('No disks could be found using the root device hints '
'%( hints)s because they failed to validate. '
'Error: %(error)s') % {'hints': hints, 'error': e},
node_ info=node_ info, data=introspect ion_data)
try:
device = il_utils.
except (TypeError, ValueError) as e:
raise utils.Error(
if not device:
node_ info=node_ info, data=introspect ion_data)
raise utils.Error(_('No disks satisfied root device hints'),
######
Last error:
| last_error | ironic-inspector inspection failed: No disks satisfied root device hints |