The cinder.volume.drivers.ibm.storwize_svc.helpers Module

class StorwizeHelpers(run_ssh)

Bases: object

add_chap_secret_to_host(host_name)

Generate and store a randomly-generated CHAP secret for the host.

add_fc_wwpns(storage_nodes)

Add FC WWPNs to system node information.

add_iscsi_ip_addrs(storage_nodes)

Add iSCSI IP addresses to system node information.

add_vdisk_copy(vdisk, dest_pool, volume_type, state, config)

Add a vdisk copy in the given pool.

static build_default_opts(config)
static can_migrate_to_host(host, state)
change_vdisk_iogrp(vdisk, state, iogrp)
change_vdisk_options(vdisk, changes, opts, state)
static check_vdisk_opts(state, opts)
compression_enabled()

Return whether or not compression is enabled for this system.

create_copy(src, tgt, src_id, config, opts, full_copy)

Create a new snapshot using FlashCopy.

create_host(connector)

Create a new host on the storage system.

We create a host name and associate it with the given connection information. The host name will be a cleaned up version of the given host name (at most 55 characters), plus a random 8-character suffix to avoid collisions. The total length should be at most 63 characters.

create_vdisk(name, size, units, pool, opts)
delete_host(host_name)
delete_vdisk(vdisk, force)

Ensures that vdisk is not part of FC mapping and deletes it.

ensure_vdisk_no_fc_mappings(name, allow_snaps=True)

Ensure vdisk has no flashcopy mappings.

extend_vdisk(vdisk, amount)
get_available_io_groups()

Return list of available IO groups.

get_chap_secret_for_host(host_name)

Generate and store a randomly-generated CHAP secret for the host.

get_conn_fc_wwpns(host)
get_host_from_connector(connector)

Return the Storwize host described by the connector.

get_node_info()

Return dictionary containing information on system’s nodes.

get_pool_attrs(pool)

Return attributes for the specified pool.

get_system_info()

Return system’s name, ID, and code level.

get_vdisk_attributes(vdisk)
get_vdisk_params(config, state, type_id, volume_type=None)

Return the parameters for creating the vdisk.

Takes volume type and defaults from config options into account.

static handle_keyerror(cmd, out)
is_vdisk_copy_synced(vdisk, copy_id)
is_vdisk_defined(vdisk_name)

Check if vdisk is defined.

is_vdisk_in_use(vdisk)

Returns True if the specified vdisk is mapped to at least 1 host.

map_vol_to_host(volume_name, host_name, multihostmap)

Create a mapping between a volume to a host.

rename_vdisk(vdisk, new_name)
rm_vdisk_copy(vdisk, copy_id)
run_flashcopy(source, target, timeout, full_copy=True)

Create a FlashCopy mapping from the source to the target.

unmap_vol_from_host(volume_name, host_name)

Unmap the volume and delete the host if it has no more mappings.

vdisk_by_uid(vdisk_uid)

Returns the properties of the vdisk with the specified UID.

Returns None if no such disk exists.

Previous topic

The cinder.volume.drivers.ibm.ibmnas Module

Next topic

The cinder.volume.drivers.ibm.storwize_svc.ssh Module

This Page