Volume manager manages creating, attaching, detaching, and persistent storage.
Persistant storage volumes keep their state independent of instances. You can attach to an instance, terminate the instance, spawn a new instance (even one from a different image) and re-attach the volume with the same data intact.
Related Flags
volume_topic: | What rpc topic to listen to (default: volume). |
---|---|
volume_manager: | The module name of a class derived from manager.Manager (default: nova.volume.manager.Manager). |
storage_availability_zone: | |
Defaults to nova. | |
volume_driver: | Used by Manager. Defaults to nova.volume.driver.ISCSIDriver. |
volume_group: | Name of the group that will contain exported volumes (default: nova-volumes) |
num_shell_tries: | |
Number of times to attempt to run commands (default: 3) |
Bases: nova.manager.SchedulerDependentManager
Manages attachable block storage devices.
Updates db to show volume is attached
Make sure whether volume is exported.
Creates and exports the snapshot.
Creates and exports the volume.
Deletes and unexports snapshot.
Deletes and unexports volume.
Updates db to show volume is detached
Do any initialization that needs to be run if this is a standalone service.
Prepare volume for connection from host represented by connector.
This method calls the driver initialize_connection and returns it to the caller. The connector parameter is a dictionary with information about the host that will connect to the volume in the following format:
{
'ip': ip,
'initiator': initiator,
}
ip: the ip address of the connecting machine
initiator: the iscsi initiator name of the connecting machine. This can be None if the connecting machine does not support iscsi connections.
driver is responsible for doing any necessary security setup and returning a connection_info dictionary in the following format:
{
'driver_volume_type': driver_volume_type,
'data': data,
}
Cleanup connection from host represented by connector.
The format of connector is the same as for initialize_connection.