The cinder.volume.drivers.coho Module

class Client(address, prog, vers, port)

Bases: object

init_call(proc, args)
init_socket()
init_xid()
make_cred()
make_verf()
make_xid()
pack_auth(auth)
pack_callheader(xid, prog, vers, proc, cred, verf)
unpack_auth()
unpack_replyheader()
class CohoDriver(*args, **kwargs)

Bases: cinder.volume.drivers.nfs.NfsDriver

Coho Data NFS based cinder driver.

Creates file on NFS share for using it as block device on hypervisor. Version history: 1.0.0 - Initial driver 1.1.0 - Added QoS support 1.1.1 - Stability fixes in the RPC client

CI_WIKI_NAME = 'Coho_Data_CI'
COHO_QOS_KEYS = ['maxIOPS', 'maxMBS']
SHARE_FORMAT_REGEX = '.+:/.*'
create_cloned_volume(volume, src_vref)
create_snapshot(snapshot)

Create a volume snapshot.

create_volume(volume)
create_volume_from_snapshot(volume, snapshot)

Create a volume from a snapshot.

delete_snapshot(snapshot)

Delete a volume snapshot.

do_setup(context)

Any initialization the volume driver does while starting.

extend_volume(volume, new_size)

Extend the specified file to the new_size (sparsely).

get_volume_stats(refresh=False)

Pass in Coho Data information in volume stats.

retype(ctxt, volume, new_type, diff, host)

Convert the volume to be of the new type.

Changes the volume’s QoS policy if needed.

class CohoRPCClient(address, port)

Bases: cinder.volume.drivers.coho.Client

create_snapshot(src, dst, flags)
create_volume_from_snapshot(src, dst)
delete_snapshot(name)
set_qos_policy(src, qos)