Mark IET target driver deprecated
This iSCSI target is no longer supported and not included in our officially supported distributions. This marks the driver as deprecated so we can remove it in the V release. Also includes some minor docstring formatting fixes since I was touching the files. Change-Id: I0b6262b12907f6472ec7e59b2dd2fc709efd94fc Signed-off-by: Sean McGinnis <sean.mcginnis@gmail.com>
This commit is contained in:
parent
3761bb6af8
commit
3c8ff232eb
@ -88,14 +88,17 @@ volume_opts = [
|
||||
'target support, ietadm for iSCSI Enterprise Target, '
|
||||
'iscsictl for Chelsio iSCSI Target, nvmet for NVMEoF '
|
||||
'support, spdk-nvmeof for SPDK NVMe-oF, '
|
||||
'or fake for testing.'),
|
||||
'or fake for testing. Note: The IET driver is deprecated '
|
||||
'and will be removed in the V release.'),
|
||||
cfg.StrOpt('volumes_dir',
|
||||
default='$state_path/volumes',
|
||||
help='Volume configuration file storage '
|
||||
'directory'),
|
||||
cfg.StrOpt('iet_conf',
|
||||
default='/etc/iet/ietd.conf',
|
||||
help='IET configuration file'),
|
||||
deprecated_for_removal=True,
|
||||
deprecated_reason='IET target driver is no longer supported.',
|
||||
help='DEPRECATED: IET configuration file'),
|
||||
cfg.StrOpt('chiscsi_conf',
|
||||
default='/etc/chelsio-iscsi/chiscsi.conf',
|
||||
help='Chiscsi (CXT) global defaults configuration file'),
|
||||
@ -361,7 +364,7 @@ class BaseVD(object):
|
||||
that we call a connector. The point here is that for example
|
||||
don't allow the LVM driver to implement iSCSI methods, instead
|
||||
call whatever connector it has configured via conf file
|
||||
(iSCSI{LIO, TGT, IET}, FC, etc).
|
||||
(iSCSI{LIO, TGT, ET}, FC, etc).
|
||||
|
||||
In the base class and for example the LVM driver we do this via a has-a
|
||||
relationship and just provide an interface to the specific connector
|
||||
@ -424,7 +427,7 @@ class BaseVD(object):
|
||||
|
||||
# We set these mappings up in the base driver so they
|
||||
# can be used by children
|
||||
# (intended for LVM and BlockDevice, but others could use as well)
|
||||
# (intended for LVM, but others could use as well)
|
||||
self.target_mapping = {
|
||||
'fake': 'cinder.volume.targets.fake.FakeTarget',
|
||||
'ietadm': 'cinder.volume.targets.iet.IetAdm',
|
||||
|
@ -16,6 +16,7 @@ import stat
|
||||
|
||||
from oslo_concurrency import processutils as putils
|
||||
from oslo_log import log as logging
|
||||
from oslo_log import versionutils
|
||||
|
||||
from cinder import exception
|
||||
import cinder.privsep.targets.iet
|
||||
@ -34,6 +35,11 @@ class IetAdm(iscsi.ISCSITarget):
|
||||
self.iscsi_iotype = self.configuration.safe_get('iscsi_iotype')
|
||||
self.auth_type = 'IncomingUser'
|
||||
self.iet_sessions = '/proc/net/iet/session'
|
||||
versionutils.report_deprecated_feature(
|
||||
LOG,
|
||||
'The IET iSCSI target is deprecated and will be removed in the '
|
||||
'"V" release. It is recommended to use the LIO or TGT targets '
|
||||
'instead.')
|
||||
|
||||
def _get_target(self, iqn):
|
||||
|
||||
|
13
releasenotes/notes/iet-deprecation-f8059417c6adbb78.yaml
Normal file
13
releasenotes/notes/iet-deprecation-f8059417c6adbb78.yaml
Normal file
@ -0,0 +1,13 @@
|
||||
---
|
||||
upgrade:
|
||||
- |
|
||||
The IET iSCSI target driver has been marked deprecated and will be
|
||||
removed in the "V" release. The IET iSCSI target project is no longer
|
||||
active and is not supported by all distributions. It is recommended to
|
||||
migrate to a supported distribution and iSCSI target prior to upgrading.
|
||||
deprecations:
|
||||
- |
|
||||
The IET iSCSI target driver has been marked deprecated and will be
|
||||
removed in the "V" release. The IET iSCSI target project is no longer
|
||||
active and is not supported by all distributions. It is recommended to
|
||||
migrate to a supported distribution and iSCSI target prior to upgrading.
|
Loading…
Reference in New Issue
Block a user