oio.cli.volume package

Submodules

oio.cli.volume.client module

class oio.cli.volume.client.VolumeClientCli(namespace, **kwargs)[source]

Bases: object

rdir_lb
volume
volume_admin_clear(volume, **kwargs)[source]
volume_admin_incident(volume, date)[source]
volume_admin_lock(volume, key)[source]
volume_admin_show(volume)[source]
volume_admin_unlock(volume)[source]
volume_show(volume)[source]
oio.cli.volume.client.make_client(instance)[source]

Build a VolumeClientCli that will be added as “volume” field of instance.

Parameters:instance – an instance of ClientManager
Returns:an instance of VolumeClientCli

oio.cli.volume.volume module

class oio.cli.volume.volume.BootstrapVolume(*args, **kwargs)[source]

Bases: cliff.lister.Lister

Assign an rdir service to all rawx. Deprecated, prefer using ‘openio rdir bootstrap rawx’.

get_parser(prog_name)[source]

Return an argparse.ArgumentParser.

log = <logging.Logger object>
take_action(parsed_args)[source]

Return a tuple containing the column names and an iterable containing the data to be listed.

class oio.cli.volume.volume.ClearAdminVolume(app, app_args, cmd_name=None)[source]

Bases: cliff.lister.Lister

Clear volume incident date.

get_parser(prog_name)[source]

Return an argparse.ArgumentParser.

log = <logging.Logger object>
take_action(parsed_args)[source]

Return a tuple containing the column names and an iterable containing the data to be listed.

class oio.cli.volume.volume.DisplayVolumeAssignation(app, app_args, cmd_name=None)[source]

Bases: cliff.lister.Lister

Display which rdir service is linked to each rawx service. Deprecated, prefer using ‘openio rdir assigments rawx’.

get_parser(prog_name)[source]

Return an argparse.ArgumentParser.

log = <logging.Logger object>
take_action(parsed_args)[source]

Return a tuple containing the column names and an iterable containing the data to be listed.

class oio.cli.volume.volume.IncidentAdminVolume(app, app_args, cmd_name=None)[source]

Bases: cliff.lister.Lister

Declare an incident on the specified volume.

get_parser(prog_name)[source]

Return an argparse.ArgumentParser.

log = <logging.Logger object>
take_action(parsed_args)[source]

Return a tuple containing the column names and an iterable containing the data to be listed.

class oio.cli.volume.volume.LockAdminVolume(app, app_args, cmd_name=None)[source]

Bases: cliff.lister.Lister

Lock the specified volumes. Useful to prevent several rebuilders to work on the same volume.

get_parser(prog_name)[source]

Return an argparse.ArgumentParser.

log = <logging.Logger object>
take_action(parsed_args)[source]

Return a tuple containing the column names and an iterable containing the data to be listed.

class oio.cli.volume.volume.ShowAdminVolume(app, app_args, cmd_name=None)[source]

Bases: cliff.show.ShowOne

Show information about a volume, like the last incident date, or the presence of a lock on the volume.

An empty output means there is no lock and incident on the volume.

get_parser(prog_name)[source]

Return an argparse.ArgumentParser.

log = <logging.Logger object>
take_action(parsed_args)[source]

Return a two-part tuple with a tuple of column names and a tuple of values.

class oio.cli.volume.volume.ShowVolume(app, app_args, cmd_name=None)[source]

Bases: cliff.show.ShowOne

Show various volume information, like number of indexed chunks, and names of containers having chunks on this volume.

get_parser(prog_name)[source]

Return an argparse.ArgumentParser.

log = <logging.Logger object>
take_action(parsed_args)[source]

Return a two-part tuple with a tuple of column names and a tuple of values.

class oio.cli.volume.volume.UnlockAdminVolume(app, app_args, cmd_name=None)[source]

Bases: cliff.lister.Lister

Unlock the specified volumes.

get_parser(prog_name)[source]

Return an argparse.ArgumentParser.

log = <logging.Logger object>
take_action(parsed_args)[source]

Return a tuple containing the column names and an iterable containing the data to be listed.

Module contents