The cinder.volume.drivers.reduxio.rdx_cli_api Module

Reduxio CLI intrface class for Reduxio Cinder Driver.

class RdxApiCmd(cmd_prefix, argument=None, flags=None, boolean_flags=None, force=None)

Bases: object

A Builder class for Reduxio CLI Command.

add_boolean_flag(name)

Set a boolean flag.

add_flag(name, value)

Set a flag and its value.

build()

Return the command line which represents the command object.

force_command()

Add a force flag.

set_argument(value)

Set a command argument.

set_json_output()

Add a json output flag.

class ReduxioAPI(host, user, password)

Bases: object

add_hg_bookmark(hg_name, bm_name, utc_date=None, str_date=None, bm_type=None)

Bookmark all volumes that are assigned to the hostgroup.

add_host_to_hostgroup(name, host_name)

Join a host to a hostgroup.

add_vol_bookmark(vol, bm_name, utc_date=None, str_date=None, bm_type=None)

Create a new bookmark for a given volume.

assign(vol_name, host_name=None, hostgroup_name=None, lun=None)

Create an assignment between a volume to host/hostgroup.

clone_volume(parent_name, clone_name, utc_date=None, str_date=None, bookmark_name=None, description=None)

Clone a volume our of an existing volume.

create_host(name, iscsi_name, description=None, user_chap=None, pwd_chap=None)

Create a new host.

create_hostgroup(name, description=None)

Create a new hostgroup.

create_volume(name, size, description=None, historypolicy=None, blocksize=None)

Create a new volume.

delete_host(name)

Delete an existing host.

delete_hostgroup(name)

Delete an existing hostgroup.

delete_vol_bookmark(vol, bm_name)

Delete a volume’s bookmark.

delete_volume(name)

Delete a volume.

find_volume_by_name(name)

Get a single volume by its name.

find_volume_by_wwid(wwid)

Get a single volume by its WWN.

get_current_space_usage()

Get current space usage.

get_savings_ratio()

Get current savings ratio.

get_settings()

List all Reduxio settings.

get_single_assignment(vol, host, raise_on_non_exists=True)

Get a single assignment details between a host and a volume.

list_assignments(vol=None, host=None, hg=None)

List all assignments for a given volume/host/hostgroup.

list_clones(name)

List all clones of a volume.

list_hostgroups()

List all hostgroups.

list_hosts()

List all hosts.

list_hosts_in_hostgroup(name)

List all hosts that are part of the given hostgroup.

list_vol_bookmarks(vol)

List all bookmarks of a volume.

list_volumes()

List all volumes.

remove_host_from_hostgroup(name, host_name)

Remove a host from a hostgroup.

revert_volume(name, utc_date=None, bookmark_name=None)

Revert a volume to a specific date or by a bookmark.

unassign(vol_name, host_name=None, hostgroup_name=None)

Unassign a volume from a host/hostgroup.

update_host(name, new_name=None, description=None, user_chap=None, pwd_chap=None)

Update host’s attributes.

update_hostgroup(name, new_name=None, description=None)

Update an existing hostgroup’s attributes.

update_volume(name, new_name=None, description=None, size=None, history_policy=None)

Update volume’s properties. None value keeps the current value.