summaryrefslogtreecommitdiffstats
path: root/glustolibs-gluster/glustolibs/gluster/geo_rep_libs.py
Commit message (Collapse)AuthorAgeFilesLines
* [lib] Adding more check functions and tarssh supportkshithijiyer2020-01-031-48/+104
| | | | | | | | | | | | | | | | | | | | | | - 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] Merging functions to make generic library.kshithijiyer2019-09-171-184/+181
| | | | | | | | | | | | | | | | | | | | | At present there are 2 different functions for prerequisites and create session merging them and adding checks to make the functions more effective when called from a conftest.py file. By doing so we also avoid the possibility of running the same function twice which might lead to problems. For example when commands like: $ gluster system:: execute gsec_create it would make 2 entries in authorized keys files leading to workers getting into faulty state. Note: This patch should only be merged after merging the below mentioned patches: [1] https://review.gluster.org/#/c/glusto-tests/+/23291/ [2] https://review.gluster.org/#/c/glusto-tests/+/23293/ Change-Id: I3f8cda7b589c86de4dab8c66d033b364dd495b9b Signed-off-by: kshithijiyer <kshithij.ki@gmail.com>
* [lib] Modifying georep libraries as per changes in lib_utils.kshithijiyer2019-09-171-24/+22
| | | | | | | | | | | | | | | | | | | | 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>
* Corrections to geo-rep libskshithijiyer2019-08-071-27/+23
| | | | | | Change-Id: I0f32dc73d960f8bfeb662643e736291ffb74cb81 Signed-off-by: Roch-elle <rallan@redhat.com> Signed-off-by: kshithijiyer <kshithij.ki@gmail.com>
* geo-rep/lib: API to create root sessionrallan2018-06-221-0/+93
| | | | | | | | | Added: 1. georep_root_prerequisites 2. georep_create_root_session Change-Id: Iac026322bc387c6b54bcd81a734785eb9d5cae9d Signed-off-by: rallan <rallan@redhat.com>
* geo-rep/lib: API to create nonroot sessionKotresh HR2018-06-221-5/+71
| | | | | | | | | | | Also updated following. 1. API name of 'setup_mountbroker_prerequisites' to 'georep_nonroot_prerequisites' 2. Added setting up of passwordless SSH to slave node in prerequisites Change-Id: I15e567100750d88d7e9e698308c852ad6afbf082 Signed-off-by: Kotresh HR <khiremat@redhat.com>
* geo-rep/lib: Mountbroker setup pre-requisite APIKotresh HR2018-06-211-0/+98
Change-Id: Icd529b26c66f7fc8e39f620276d9fb7053cd7547 Signed-off-by: Kotresh HR <khiremat@redhat.com>