gsec_create(ssh_key_prefix=True)
Generate Geo-replication SSH Keys
:param ssh_key_prefix: True|False Command prefix in generated public keys :returns: Output of gsec_create command, raises GlusterCmdException((rc, out, err)) on error
create(primary_volume, secondary_host, secondary_volume, secondary_user='root',
push_pem=True,
no_verify=False,
force=False,
ssh_port=22)
Create Geo-replication Session
:param primary_volume: Primary Volume Name :param secondary_host: Secondary Hostname or IP :param secondary_volume: Secondary Volume :param secondary_user: Secondary User, default is "root" :param push_pem: True|False Push SSH keys to Secondary :param no_verify: True|False Skip the Secondary Verification process before create :param force: True|False Force Create Session :param ssh_port: SSH Port, Default is 22 :returns: Output of Create command, raises GlusterCmdException((rc, out, err)) on error
start(primary_volume, secondary_host, secondary_volume, secondary_user='root', force=False)
Start Geo-replication Session
:param primary_volume: Primary Volume Name :param secondary_host: Secondary Hostname or IP :param secondary_volume: Secondary Volume :param secondary_user: Secondary User, default is "root" :param force: True|False Force Start the Session :returns: Output of Start command, raises GlusterCmdException((rc, out, err)) on error
stop(primary_volume, secondary_host, secondary_volume, secondary_user='root', force=False)
Stop Geo-replication Session
:param primary_volume: Primary Volume Name :param secondary_host: Secondary Hostname or IP :param secondary_volume: Secondary Volume :param secondary_user: Secondary User, default is "root" :param force: True|False Force Stop the Session :returns: Output of Stop command, raises GlusterCmdException((rc, out, err)) on error
restart(primary_volume, secondary_host, secondary_volume, secondary_user='root', force=False)
Restart Geo-replication Session
:param primary_volume: Primary Volume Name :param secondary_host: Secondary Hostname or IP :param secondary_volume: Secondary Volume :param secondary_user: Secondary User, default is "root" :param force: True|False Force Start the Session :returns: Output of Start command, raises GlusterCmdException((rc, out, err)) on error
delete(primary_volume, secondary_host, secondary_volume, secondary_user='root',
reset_sync_time=None)
Delete Geo-replication Session
:param primary_volume: Primary Volume Name :param secondary_host: Secondary Hostname or IP :param secondary_volume: Secondary Volume :param secondary_user: Secondary User, default is "root" :param reset_sync_time: True|False Reset Sync time on delete :returns: Output of Start command, raises GlusterCmdException((rc, out, err)) on error
pause(primary_volume, secondary_host, secondary_volume, secondary_user='root', force=False)
Pause Geo-replication Session
:param primary_volume: Primary Volume Name :param secondary_host: Secondary Hostname or IP :param secondary_volume: Secondary Volume :param secondary_user: Secondary User, default is "root" :param force: True|False Force Pause Session :returns: Output of Pause command, raises GlusterCmdException((rc, out, err)) on error
resume(primary_volume, secondary_host, secondary_volume, secondary_user='root', force=False)
Resume Geo-replication Session
:param primary_volume: Primary Volume Name :param secondary_host: Secondary Hostname or IP :param secondary_volume: Secondary Volume :param secondary_user: Secondary User, default is "root" :param force: True|False Force Resume Session :returns: Output of Resume command, raises GlusterCmdException((rc, out, err)) on error
config_set(primary_volume, secondary_host, secondary_volume,
key,
value,
secondary_user='root')
Set Config of a Geo-replication Session
:param primary_volume: Primary Volume Name :param secondary_host: Secondary Hostname or IP :param secondary_volume: Secondary Volume :param secondary_user: Secondary User, default is "root" :param key: Config Key :param value: Config Value :returns: Output of Config set command, raises GlusterCmdException((rc, out, err)) on error
config_reset(primary_volume, secondary_host, secondary_volume, key, secondary_user='root')
Reset configuration of Geo-replication Session
:param primary_volume: Primary Volume Name :param secondary_host: Secondary Hostname or IP :param secondary_volume: Secondary Volume :param secondary_user: Secondary User, default is "root" :param key: Config Key :returns: Output of Config reset command, raises GlusterCmdException((rc, out, err)) on error
config_get(primary_volume, secondary_host, secondary_volume, key=None, secondary_user='root')
Get Configuration of Geo-replication Session
:param primary_volume: Primary Volume Name :param secondary_host: Secondary Hostname or IP :param secondary_volume: Secondary Volume :param secondary_user: Secondary User, default is "root" :param key: Config Key :returns: Geo-rep session Config Values, raises GlusterCmdException((rc, out, err)) on error
status(primary_volume=None, secondary_host=None, secondary_volume=None, secondary_user='root')
Status of Geo-replication Session
:param primary_volume: Primary Volume Name :param secondary_host: Secondary Hostname or IP :param secondary_volume: Secondary Volume :param secondary_user: Secondary User, default is "root" :returns: Geo-replication Status, raises GlusterCmdException((rc, out, err)) on error