:access_mode: the volume access mode allow client used
('rw' or 'ro' currently supported)
+ :discard: boolean indicating if discard is supported
+
In some of drivers that support multiple connections (for multipath
and for single path with failover on connection failure), it returns
:target_iqns, :target_portals, :target_luns, which contain lists of
'target_iqn': 'iqn.2010-10.org.openstack:volume-00000001',
'target_portal': '127.0.0.0.1:3260',
'volume_id': 1,
- 'access_mode': 'rw'
+ 'access_mode': 'rw',
+ 'discard': False,
}
}
'target_lun': 1,
'target_luns': [1, 1],
'volume_id': 1,
- 'access_mode': 'rw'
+ 'access_mode': 'rw',
+ 'discard': False,
}
}
"""
def initialize_connection(self, volume, connector):
return {
'driver_volume_type': 'iscsi',
- 'data': {'access_mode': 'rw'}
+ 'data': {'access_mode': 'rw'},
+ 'discard': False,
}
def terminate_connection(self, volume, connector, **kwargs):
'target_discovered': True,
'target_lun': 1,
'target_wwn': '1234567890123',
- 'access_mode': 'rw'
+ 'access_mode': 'rw',
+ 'discard': False,
}
}
'target_discovered': True,
'target_lun': 1,
'target_wwn': ['1234567890123', '0987654321321'],
- 'access_mode': 'rw'
+ 'access_mode': 'rw',
+ 'discard': False,
}
}
"target_lun": connection["lun"],
"target_discovered": True,
"access_mode": "rw",
+ "discard": True,
},
}
"target_wwn": target_wwns,
'access_mode': 'rw',
'initiator_target_map': init_targ_map,
+ "discard": True,
}
}
:access_mode: the volume access mode allow client used
('rw' or 'ro' currently supported)
+ :discard: boolean indicating if discard is supported
+
In some of drivers that support multiple connections (for multipath
and for single path with failover on connection failure), it returns
:target_iqns, :target_portals, :target_luns, which contain lists of
'target_iqn': 'iqn.2010-10.org.openstack:volume-00000001',
'target_portal': '127.0.0.0.1:3260',
'volume_id': '9a0d35d0-175a-11e4-8c21-0800200c9a66',
- 'access_mode': 'rw'
+ 'access_mode': 'rw',
+ 'discard': False,
}
}
"""