Merge "Deprecate the block_device driver"
This commit is contained in:
commit
25a8c6c752
@ -17,6 +17,7 @@ import os
|
|||||||
|
|
||||||
from oslo_config import cfg
|
from oslo_config import cfg
|
||||||
from oslo_log import log as logging
|
from oslo_log import log as logging
|
||||||
|
from oslo_log import versionutils
|
||||||
from oslo_utils import importutils
|
from oslo_utils import importutils
|
||||||
from oslo_utils import units
|
from oslo_utils import units
|
||||||
|
|
||||||
@ -50,9 +51,17 @@ class BlockDeviceDriver(driver.BaseVD, driver.LocalVD,
|
|||||||
|
|
||||||
# ThirdPartySystems wiki page
|
# ThirdPartySystems wiki page
|
||||||
CI_WIKI_NAME = "Cinder_Jenkins"
|
CI_WIKI_NAME = "Cinder_Jenkins"
|
||||||
|
SUPPORTED = False
|
||||||
|
|
||||||
def __init__(self, *args, **kwargs):
|
def __init__(self, *args, **kwargs):
|
||||||
super(BlockDeviceDriver, self).__init__(*args, **kwargs)
|
super(BlockDeviceDriver, self).__init__(*args, **kwargs)
|
||||||
|
# This driver has been marked as deprecated in the Ocata release, as
|
||||||
|
# per the standard OpenStack deprecation policy it can be removed in
|
||||||
|
# the Queens release.
|
||||||
|
msg = _("The block_device driver is deprecated and will be "
|
||||||
|
"removed in a future release.")
|
||||||
|
versionutils.report_deprecated_feature(LOG, msg)
|
||||||
|
|
||||||
self.configuration.append_config_values(volume_opts)
|
self.configuration.append_config_values(volume_opts)
|
||||||
self.backend_name = \
|
self.backend_name = \
|
||||||
self.configuration.safe_get('volume_backend_name') or "BlockDev"
|
self.configuration.safe_get('volume_backend_name') or "BlockDev"
|
||||||
|
@ -0,0 +1,6 @@
|
|||||||
|
---
|
||||||
|
deprecations:
|
||||||
|
- The block_driver is deprecated as of the Ocata release and will be
|
||||||
|
removed in the Queens release of Cinder. Instead the LVM driver
|
||||||
|
with the LIO iSCSI target should be used. For those that desire
|
||||||
|
higher performance, they should use LVM striping.
|
Loading…
x
Reference in New Issue
Block a user