Deprecate root_device_hint name for raid_device plugin

Change-Id: I4da2d156007ec320e3399d0bb2bb02d039b3724b
Closes-Bug: #1528830
This commit is contained in:
Zhenguo Niu 2016-03-07 23:30:24 +08:00
parent 59e0f92ae3
commit bc1d71f086
3 changed files with 11 additions and 1 deletions

View File

@ -102,3 +102,10 @@ class RaidDeviceDetection(base.ProcessingHook):
node_info.patch([{'op': 'add',
'path': '/extra/block_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__()

View File

@ -0,0 +1,3 @@
---
deprecations:
- Using the root_device_hint alias for the raid_device plugin is deprecated.

View File

@ -32,7 +32,7 @@ ironic_inspector.hooks.processing =
extra_hardware = ironic_inspector.plugins.extra_hardware:ExtraHardwareHook
raid_device = ironic_inspector.plugins.raid_device:RaidDeviceDetection
# 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 =
example = ironic_inspector.plugins.example:example_not_found_hook
enroll = ironic_inspector.plugins.discovery:enroll_node_not_found_hook