The cinder.volume.drivers.hpe.hpe_3par_base Module

The cinder.volume.drivers.hpe.hpe_3par_base Module

Base class for HPE Storage Drivers. This driver requires 3.1.3 or later firmware on the 3PAR array, using the 4.x version of the hpe3parclient.

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

class HPE3PARDriverBase(*args, **kwargs)

Bases: cinder.volume.driver.ManageableVD, cinder.volume.driver.ManageableSnapshotsVD, cinder.volume.driver.MigrateVD, cinder.volume.driver.BaseVD

OpenStack base driver to enable 3PAR storage array.

Version history:

1.0.0 - Initial base driver
1.0.1 - Adds consistency group capability in generic volume groups.
1.0.2 - Adds capability.
1.0.3 - Added Tiramisu feature on 3PAR.
1.0.4 - Fixed Volume migration for "in-use" volume. bug #1744021
VERSION = '1.0.4'
check_for_setup_error()

Setup errors are already checked for in do_setup so return pass.

create_cloned_volume(*args, **kwargs)

Clone an existing volume.

create_export(context, volume, connector)
create_group(*args, **kwargs)
create_group_from_src(*args, **kwargs)
create_group_snapshot(*args, **kwargs)
create_snapshot(*args, **kwargs)
create_volume(*args, **kwargs)
create_volume_from_snapshot(*args, **kwargs)

Creates a volume from a snapshot.

TODO: support using the size from the user.

delete_group(*args, **kwargs)
delete_group_snapshot(*args, **kwargs)
delete_snapshot(*args, **kwargs)
delete_volume(*args, **kwargs)
disable_replication(context, group, volumes)

Disable replication for a group.

Parameters:
  • context – the context
  • group – the group object
  • volumes – the list of volumes
Returns:

model_update, None

do_setup(context)
enable_replication(context, group, volumes)

Enable replication for a group.

Parameters:
  • context – the context
  • group – the group object
  • volumes – the list of volumes
Returns:

model_update, None

ensure_export(context, volume)
extend_volume(*args, **kwargs)
failover_host(*args, **kwargs)

Force failover to a secondary replication target.

failover_replication(context, group, volumes, secondary_backend_id=None)

Failover replication for a group.

Parameters:
  • context – the context
  • group – the group object
  • volumes – the list of volumes
  • secondary_backend_id – the secondary backend id - default None
Returns:

model_update, vol_model_updates

get_pool(*args, **kwargs)
get_volume_stats(*args, **kwargs)
initialize_connection(volume, connector)
manage_existing(*args, **kwargs)
manage_existing_get_size(*args, **kwargs)
manage_existing_snapshot(*args, **kwargs)
manage_existing_snapshot_get_size(*args, **kwargs)
migrate_volume(*args, **kwargs)
remove_export(context, volume)
retype(*args, **kwargs)

Convert the volume to be of the new type.

revert_to_snapshot(*args, **kwargs)

Revert volume to snapshot.

terminate_connection(volume, connector, **kwargs)
unmanage(*args, **kwargs)
unmanage_snapshot(*args, **kwargs)
update_group(*args, **kwargs)
update_migrated_volume(*args, **kwargs)

Update the name of the migrated volume to it’s new ID.

Creative Commons Attribution 3.0 License

Except where otherwise noted, this document is licensed under Creative Commons Attribution 3.0 License. See all OpenStack Legal Documents.