summaryrefslogtreecommitdiffstats
path: root/glustolibs-gluster/setup.py
Commit message (Collapse)AuthorAgeFilesLines
* [Libfix] Remove rpyc_get_connection() dependency from codekshithijiyer2020-04-011-2/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Problem: `g.rpyc_get_connection()` has a limitaion where it can't convert python2 calls to python3 calls. Due to this a large number of testcases fail when executed from a python2 machine on a python3 only setup or visa versa with the below stack trace: ``` E ========= Remote Traceback (1) ========= E Traceback (most recent call last): E File "/root/tmp.tL8Eqx7d8l/rpyc/core/protocol.py", line 323, in _dispatch_request E res = self._HANDLERS[handler](self, *args) E File "/root/tmp.tL8Eqx7d8l/rpyc/core/protocol.py", line 591, in _handle_inspect E if hasattr(self._local_objects[id_pack], '____conn__'): E File "/root/tmp.tL8Eqx7d8l/rpyc/lib/colls.py", line 110, in __getitem__ E return self._dict[key][0] E KeyError: (b'rpyc.core.service.SlaveService', 94282642994712, 140067150858560) ``` Solution: The solution here is to modify the code to not use `g.rpyc_get_connection()`. The following changes are done to accomplish it: 1)Remove code which uses g.rpyc_get_connection() and use generic logic in functions: a. do_bricks_exist_in_shd_volfile() b. get_disk_usage() c. mount_volume() d. list_files() f. append_string_to_file() 2)Create files which can be uploaded and executed on clients/servers to avoid rpc calls in functions: a. calculate_hash() b. validate_files_in_dir() 3)Modify setup.py to push the below files to `/usr/share/glustolibs/scripts/`: a.compute_hash.py b.walk_dir.py Change-Id: I00a81a88382bf3f8b366753eebdb2999260788ca Signed-off-by: kshithijiyer <kshithij.ki@gmail.com>
* [Fix] Changing license to GPLv3+ in setup.py files.kshithijiyer2019-12-101-4/+4
| | | | | | | | | | The license details of the project needs to be updated for all the files in the project. Fixing all setup.py files in the project and submitting a patch. Change-Id: I7b53330a65891969403c6267e934606ea9b76352 Signed-off-by: kshithijiyer <kshithij.ki@gmail.com>
* readthedocs.org fix /usr/share cannot open errorJonathan Holloway2018-02-061-2/+5
| | | | | | | Add a try around dir copy to eliminate readthedocs.org cannot open error Change-Id: Ie9160a8b7dc42839fe4c176c89aa67ae26c1266e Signed-off-by: Jonathan Holloway <jholloway@redhat.com>
* add gluster object exists check to volume config defaultJonathan Holloway2017-08-081-1/+1
| | | | | | | | | gluster_base_class.py: fix error by adding check to ensure gluster entry exists when no gluster object defined in config file setup.py: version up to 0.21 Change-Id: I37001673c03a32571b78bbd32489fc1992333d73 Signed-off-by: Jonathan Holloway <jholloway@redhat.com>
* Added gdeploy configuration files ad jinja templates for nfs ganesha operationsArthy Loganathan2017-06-201-1/+4
| | | | | Change-Id: I30f8b464d2193909a0d83daff7ea695b97fb3863 Signed-off-by: Arthy Loganathan <aloganat@redhat.com>
* glustolibs: add initial treeJonathan Holloway2016-09-291-0/+48
Change-Id: I08900d87fcd9a11b4f157d235facb766905d5ae2 Signed-off-by: Jonathan Holloway <jholloway@redhat.com>