The cinder.volume.drivers.san.hp.hp_3par_fc Module

Volume driver for HP 3PAR Storage array. This driver requires 3.1.3 firmware on the 3PAR array, using the 3.x version of the hp3parclient.

You will need to install the python hp3parclient. sudo pip install –upgrade “hp3parclient>=3.0”

Set the following in the cinder.conf file to enable the 3PAR Fibre Channel Driver along with the required flags:

volume_driver=cinder.volume.drivers.san.hp.hp_3par_fc.HP3PARFCDriver

class HP3PARFCDriver(*args, **kwargs)

Bases: cinder.volume.driver.FibreChannelDriver

OpenStack Fibre Channel driver to enable 3PAR storage array.

Version history:

1.0 - Initial driver 1.1 - QoS, extend volume, multiple iscsi ports, remove domain,

session changes, faster clone, requires 3.1.2 MU2 firmware, copy volume <–> Image.
1.2.0 - Updated the use of the hp3parclient to 2.0.0 and refactored
the drivers to use the new APIs.

1.2.1 - Synchronized extend_volume method. 1.2.2 - Added try/finally around client login/logout. 1.2.3 - Added ability to add WWNs to host. 1.2.4 - Added metadata during attach/detach bug #1258033. 1.3.0 - Removed all SSH code. We rely on the hp3parclient now. 2.0.0 - Update hp3parclient API uses 3.0.x 2.0.2 - Add back-end assisted volume migrate 2.0.3 - Added initiator-target map for FC Zone Manager 2.0.4 - Added support for managing/unmanaging of volumes 2.0.5 - Only remove FC Zone on last volume detach 2.0.6 - Added support for volume retype 2.0.7 - Only one FC port is used when a single FC path

is present. bug #1360001

2.0.8 - Fixing missing login/logout around attach/detach bug #1367429

VERSION = '2.0.8'
attach_volume(*args, **kwargs)
check_for_setup_error()

Returns an error if prerequisites aren’t met.

create_cloned_volume(*args, **kwargs)
create_export(*args, **kwargs)
create_snapshot(*args, **kwargs)
create_volume(*args, **kwargs)
create_volume_from_snapshot(*args, **kwargs)

Create a volume from a snapshot.

TODO: support using the size from the user.

delete_snapshot(*args, **kwargs)
delete_volume(*args, **kwargs)
detach_volume(*args, **kwargs)
do_setup(context)
ensure_export(*args, **kwargs)
extend_volume(*args, **kwargs)
get_volume_stats(*args, **kwargs)
initialize_connection(*args, **kwargs)
manage_existing(*args, **kwargs)
manage_existing_get_size(*args, **kwargs)
migrate_volume(*args, **kwargs)
remove_export(*args, **kwargs)
retype(*args, **kwargs)

Convert the volume to be of the new type.

terminate_connection(*args, **kwargs)
unmanage(*args, **kwargs)

Previous topic

The cinder.volume.drivers.san.hp.hp_3par_common Module

Next topic

The cinder.volume.drivers.san.hp.hp_3par_iscsi Module

This Page