summaryrefslogtreecommitdiffstats
path: root/glustolibs-gluster/glustolibs/gluster/geo_rep_ops.py
Commit message (Collapse)AuthorAgeFilesLines
* [lib] Adding more check functions and tarssh supportkshithijiyer2020-01-031-6/+16
| | | | | | | | | | | | | | | | | | | | | | - Adding the following check functions: 1. is_passwordless_ssh_configured() - To check if passwordless ssh is configured or not between given nodes with a given user. 2. is_group_exists() - To check if group is present on servers or not. 3. is_user_exists() - To check if a given user is present on servers or not. - Adding functionality to support both sync methods. - Adding nonrootpass parameter to georep_prerequisites() as in the previous logic the password for the non-root and the root user were the same which might not always be the case. - Fixing georep_config_get() and georep_config_set() to take non-root user as well. Change-Id: I8a42d48d56690040dd7f78d1fb919029c0d6e61d Signed-off-by: kshithijiyer <kshithij.ki@gmail.com>
* [lib] Modifying georep libraries as per changes in lib_utils.kshithijiyer2019-09-171-167/+44
| | | | | | | | | | | | | | | | | | | | THIS PATCH IS DEPENDENT ON THE BELOW PATCH: https://review.gluster.org/#/c/glusto-tests/+/23291/ Removing the below functions as a more generic function is added in lib_utils: georep_ssh_keygen georep_ssh_copyid georep_groupadd georep_geoaccount georep_geoaccount_setpasswd Adding georep_mountbroker_remove_user to remove users from mountbroker which will be needed in teardown. Change-Id: I5b484b93cbc1660cdf223cfa4bac2a32acc8fc77 Signed-off-by: kshithijiyer <kshithij.ki@gmail.com>
* [geo-rep] Removing 'create_shared_storage' function as separate libraries existVinayak Papnoi2019-07-231-23/+0
| | | | | | | | | | | The function 'create_shared_storage' is redundant as the same function is available as part of the shared-storage library. This part will be removed from the geo-rep library with this fix. To create/enable shared storage, make use of the shared_storage_ops.py library. Change-Id: Ibefca73140e1218f0aa9331f061ef4fc8d9360e3 Signed-off-by: Vinayak Papnoi <vpapnoi@redhat.com>
* Convert geo_rep_ops to python3Vitalii Koriakov2018-11-081-3/+3
| | | | | Change-Id: I2f491f7cadd92846730c6528920c9fa8c2c9edce Signed-off-by: Vitalii Koriakov <vkoriako@redhat.com>
* geo-rep/ops: Setup passwordless SSHKotresh HR2018-06-221-0/+41
| | | | | | | | 1. API to generate ssh keygen 2. API to copy ssh key on to remote node Change-Id: I0b89ce9d77d4a16eaa3ad10f646d412f1190f56e Signed-off-by: Kotresh HR <khiremat@redhat.com>
* geo-rep/ops: Remove backslashesKotresh HR2018-06-211-16/+16
| | | | | | | Also fix the typo in georep_create Change-Id: I58ca115da827b458d07ce38806a40b1d5bfae643 Signed-off-by: Kotresh HR <khiremat@redhat.com>
* geo-rep: Set passwd for the given userKotresh HR2018-06-211-0/+31
| | | | | | | | The API to set passwd for the given user and group in all the slave nodes. Change-Id: I69dc150c598c9101be825f159f037f4ad43706ed Signed-off-by: Kotresh HR <khiremat@redhat.com>
* Geo-rep: Non-root session related opsKotresh HR2018-06-211-0/+97
| | | | | | | | | | Setting up mountbroker along with adding user and checking status. Setting pem keys specific to non-root Change-Id: Ic8e38087d118f43aea0da270ea8f8f9da81286c1 Signed-off-by: rallan <rallan@redhat.com> Signed-off-by: Kotresh HR <khiremat@redhat.com>
* Geo-rep: Creating group and userKotresh HR2018-06-211-0/+58
| | | | | | | | | | Contains ops for restarting glusterd (used for slave nodes in non-root), adding a group as well as a user to set up a non-root geo-rep session Change-Id: Iec0990e86fbb5a92a70f26820d43529c21e1742f Signed-off-by: Kotresh HR <khiremat@redhat.com> Signed-off-by: rallan <rallan@redhat.com>
* Geo-rep: Config get and set optionsKotresh HR2018-06-211-7/+64
| | | | | | Change-Id: I6cb2a321cd774e5c1008d27c42d9df9219e74ff0 Signed-off-by: rallan <rallan@redhat.com> Signed-off-by: Kotresh HR <khiremat@redhat.com>
* Geo-rep: Delete and status opsKotresh HR2018-06-211-0/+62
| | | | | | | | | Deletion of a geo-rep session and getting the status of the geo-rep session Change-Id: I94f3c1877c4530246e1cc7077085c92ee7c72101 Signed-off-by: rallan <rallan@redhat.com> Signed-off-by: Kotresh HR <khiremat@redhat.com>
* Geo-rep: Starting and stopping a geo-rep sessionKotresh HR2018-06-211-0/+92
| | | | | | Change-Id: I47236b1b1bbd40b52bc85ad59ed7b78faa432410 Signed-off-by: rallan <rallan@redhat.com> Signed-off-by: Kotresh HR <khiremat@redhat.com>
* Pausing and resuming a geo-rep sessionrallan2018-06-151-0/+63
| | | | | Change-Id: I4d2767acb4fff7ab972e11d13ef4c547914110d9 Signed-off-by: rallan <rallan@redhat.com>
* Initial steps for geo-rep setuprallan2018-06-131-0/+110
Change-Id: I1b06d935ae056dd0fe583f3c1a9f181ec2a40076 Signed-off-by: rallan <rallan@redhat.com>