The cinder.volume.drivers.dell.dell_storagecenter_api Module

Interface for interacting with the Dell Storage Center array.

class HttpClient(host, port, user, password)

Bases: object

HttpClient

Helper for making the REST calls.

delete(*args, **kwargs)
get(*args, **kwargs)
post(*args, **kwargs)
put(*args, **kwargs)
class PayloadFilter

Bases: object

PayloadFilter

Simple class for creating filters for interacting with the Dell Storage API.

Note that this defaults to “AND” filter types.

append(name, val, filtertype='Equals')
class StorageCenterApi(host, port, user, password)

Bases: object

StorageCenterApi

Handles calls to EnterpriseManager via the REST API interface.

APIVERSION = '1.0.1'
close_connection()
create_cloned_volume(volumename, volumefolder, scvolume)

creates a temporary replay and then creates a view volume from that.

create_replay(scvolume, replayid, expire)

expire is in minutes. one could snap a volume before it has been activated, so activate by mapping and unmapping to a random server and let them. This should be a fail but the Tempest tests require it.

create_server(ssn, foldername, wwnoriscsiname, isfc=False)

creates a server on the the storage center ssn. Adds the first HBA to it.

create_server_multiple_hbas(ssn, foldername, wwns)

Same as create_server except it can take a list of hbas. hbas can be wwns or iqns.

create_view_volume(volname, volfolder, screplay)

creates a new volume named volname in the folder volfolder from the screplay.

create_volume(name, size, ssn, volfolder)

This creates a new volume on the storage center. It will create it in volfolder. If volfolder does not exist it will create it. If it cannot create volfolder the volume will be created in the root.

delete_replay(scvolume, replayid)

hunts down a replay by replayid string and expires it.

once marked for expiration we do not return the replay as a snapshot.

delete_volume(ssn, name)
expand_volume(scvolume, newsize)
find_iscsi_properties(scvolume, ip=None, port=None)
find_replay(scvolume, replayid)

searches for the replay by replayid which we store in the replay’s description attribute

find_sc(ssn)

This is really just a check that the sc is there and being managed by EM.

find_server(ssn, instance_name)

Hunts for a server by looking for an HBA with the server’s IQN or wwn.

If found, the server the HBA is attached to, if any, is returned.

find_volume(ssn, name=None, instanceid=None)

search ssn for volume of name and/or instance id

find_wwns(scvolume, scserver)

returns the lun and wwns of the mapped volume

get_storage_usage(ssn)
get_volume_count(scserver)
map_volume(scvolume, scserver)

The check for server existence is elsewhere; does not create the server.

open_connection()
rename_volume(scvolume, name)
unmap_volume(scvolume, scserver)

deletes all mappings to a server, not just the ones on the path defined in cinder.conf.

class StorageCenterApiHelper(config)

Bases: object

StorageCenterApiHelper

Helper class for API access. Handles opening and closing the connection to the Storage Center.

open_connection()

Open connection to Enterprise Manager.

Previous topic

The cinder.volume.drivers.datera Module

Next topic

The cinder.volume.drivers.dell.dell_storagecenter_common Module

This Page