Bases: object
Executes commands relating to Volumes.
Creates a cgsnapshot.
Creates a clone of the specified volume.
Define a consistency group.
Define a consistency group based on an existing group
Define a new consistency group from a source consistency group. If only a source_cg is provided, then clone each base volume and add it to a new consistency group. If a cgsnapshot is provided, clone each snapshot image to a new volume and add it to the cg.
Parameters: |
|
---|
Exports the volume.
Creates a snapshot.
Parameters: |
|
---|
:return An E-Series snapshot image
Creates a volume.
Creates a volume from a snapshot.
Deletes a cgsnapshot.
Deletes a consistency group.
Delete a snapshot.
Deletes a volume.
Any initialization the volume driver does while starting.
Synchronously recreates an export for a volume.
Extend an existing volume to the new size.
Return pool name where volume resides.
Parameters: | volume – The volume hosted by the driver. |
---|---|
Returns: | Name of the pool where given volume is hosted. |
Return the current state of the volume service.
Initializes the connection and returns connection info.
Assigns the specified volume to a compute node/host so that it can be used from that host.
The driver returns a driver_volume_type of ‘fibre_channel’. The target_wwn can be a single entry or a list of wwns that correspond to the list of remote wwn(s) that will export the volume. Example return values:
- {
‘driver_volume_type’: ‘fibre_channel’ ‘data’: {
‘target_discovered’: True, ‘target_lun’: 1, ‘target_wwn’: ‘500a098280feeba5’, ‘initiator_target_map’: {
‘21000024ff406cc3’: [‘500a098280feeba5’], ‘21000024ff406cc2’: [‘500a098280feeba5’]}
}
}
or
- {
‘driver_volume_type’: ‘fibre_channel’ ‘data’: {
‘target_discovered’: True, ‘target_lun’: 1, ‘target_wwn’: [‘500a098280feeba5’, ‘500a098290feeba5’,
‘500a098190feeba5’, ‘500a098180feeba5’],
- ‘initiator_target_map’: {
- ‘21000024ff406cc3’: [‘500a098280feeba5’,
- ‘500a098290feeba5’],
- ‘21000024ff406cc2’: [‘500a098190feeba5’,
- ‘500a098180feeba5’]
}
}
}
Allow connection to connector and return connection info.
Brings an existing storage object under Cinder management.
Return size of volume to be managed by manage_existing.
When calculating the size, round up to the next GB.
Ensures the specified initiator has access to the volume.
Removes an export for a volume.
Disallow connection from connector.
Return empty data if other volumes are in the same zone. The FibreChannel ZoneManager doesn’t remove zones if there isn’t an initiator_target_map in the return of terminate_connection.
Returns: | data - the target_wwns and initiator_target_map if the zone is to be removed, otherwise the same map with an empty dict for the ‘data’ key |
---|
Disallow connection from connector.
Removes the specified volume from Cinder management.
Does not delete the underlying backend storage object. Logs a message to indicate the volume is no longer under Cinder’s control.
Add or remove volumes from an existing consistency group