default=0,
min=0, max=100,
help='The percentage of backend capacity is reserved'),
- cfg.IntOpt('iscsi_num_targets',
- default=None,
- help='This option is deprecated and unused. '
- 'It will be removed in the Liberty release.'),
cfg.StrOpt('iscsi_target_prefix',
default='iqn.2010-10.org.openstack:',
help='Prefix for iSCSI volumes'),
default=3,
help='The maximum number of times to rescan iSER target'
'to find volume'),
- cfg.IntOpt('iser_num_targets',
- default=None,
- help='This option is deprecated and unused. '
- 'It will be removed in the Liberty release.'),
cfg.StrOpt('iser_target_prefix',
default='iqn.2010-10.org.openstack:',
help='Prefix for iSER volumes'),
from oslo_concurrency import processutils
from oslo_log import log as logging
-from oslo_log import versionutils
from cinder import exception
from cinder.i18n import _, _LI, _LW, _LE
self.protocol = 'iSCSI'
self.volumes_dir = self.configuration.safe_get('volumes_dir')
- # If any of the deprecated options are set, we'll warn the operator.
- msg = _LW("The option %s has been deprecated and no longer has "
- "any effect. It will be removed in the Liberty release.")
- for opt in ('iscsi_num_targets', 'iser_num_targets'):
- if self.configuration.safe_get(opt) is not None:
- versionutils.report_deprecated_feature(LOG, msg, opt)
-
def _get_iscsi_properties(self, volume, multipath=False):
"""Gets iscsi configuration