default=100,
help='The maximum number of iSER target IDs per host'),
cfg.StrOpt('iser_target_prefix',
- default='iqn.2010-10.org.iser.openstack:',
+ default='iqn.2010-10.org.openstack:',
help='Prefix for iSER volumes'),
cfg.StrOpt('iser_ip_address',
default='$my_ip',
self.configuration.iscsi_ip_address = \
self.configuration.iser_ip_address
self.configuration.iscsi_port = self.configuration.iser_port
+
+ def initialize_connection(self, volume, connector):
+ """Initializes the connection and returns connection info.
+ The iser driver returns a driver_volume_type of 'iser'.
+ The format of the driver data is defined in _get_iscsi_properties.
+ Example return value::
+ {
+ 'driver_volume_type': 'iser'
+ 'data': {
+ 'target_discovered': True,
+ 'target_iqn':
+ 'iqn.2010-10.org.iser.openstack:volume-00000001',
+ 'target_portal': '127.0.0.0.1:3260',
+ 'volume_id': 1,
+ }
+ }
+ """
+ iser_properties = self._get_iscsi_properties(volume)
+ return {
+ 'driver_volume_type': 'iser',
+ 'data': iser_properties
+ }