Deprecate root_device_hint name for raid_device plugin
Change-Id: I4da2d156007ec320e3399d0bb2bb02d039b3724b Closes-Bug: #1528830
This commit is contained in:
parent
59e0f92ae3
commit
bc1d71f086
@ -102,3 +102,10 @@ class RaidDeviceDetection(base.ProcessingHook):
|
|||||||
node_info.patch([{'op': 'add',
|
node_info.patch([{'op': 'add',
|
||||||
'path': '/extra/block_devices',
|
'path': '/extra/block_devices',
|
||||||
'value': {'serials': current_devices}}])
|
'value': {'serials': current_devices}}])
|
||||||
|
|
||||||
|
|
||||||
|
class RootDeviceHintHook(RaidDeviceDetection):
|
||||||
|
def __init__(self):
|
||||||
|
LOG.warning(_LW('Using the root_device_hint alias for the '
|
||||||
|
'raid_device plugin is deprecated'))
|
||||||
|
super(RaidDeviceDetection, self).__init__()
|
||||||
|
@ -0,0 +1,3 @@
|
|||||||
|
---
|
||||||
|
deprecations:
|
||||||
|
- Using the root_device_hint alias for the raid_device plugin is deprecated.
|
@ -32,7 +32,7 @@ ironic_inspector.hooks.processing =
|
|||||||
extra_hardware = ironic_inspector.plugins.extra_hardware:ExtraHardwareHook
|
extra_hardware = ironic_inspector.plugins.extra_hardware:ExtraHardwareHook
|
||||||
raid_device = ironic_inspector.plugins.raid_device:RaidDeviceDetection
|
raid_device = ironic_inspector.plugins.raid_device:RaidDeviceDetection
|
||||||
# Deprecated name for raid_device, don't confuse with root_disk_selection
|
# Deprecated name for raid_device, don't confuse with root_disk_selection
|
||||||
root_device_hint = ironic_inspector.plugins.raid_device:RaidDeviceDetection
|
root_device_hint = ironic_inspector.plugins.raid_device:RootDeviceHintHook
|
||||||
ironic_inspector.hooks.node_not_found =
|
ironic_inspector.hooks.node_not_found =
|
||||||
example = ironic_inspector.plugins.example:example_not_found_hook
|
example = ironic_inspector.plugins.example:example_not_found_hook
|
||||||
enroll = ironic_inspector.plugins.discovery:enroll_node_not_found_hook
|
enroll = ironic_inspector.plugins.discovery:enroll_node_not_found_hook
|
||||||
|
Loading…
Reference in New Issue
Block a user