summaryrefslogtreecommitdiffstats
path: root/glustolibs-misc
Commit message (Collapse)AuthorAgeFilesLines
* [TestFix+Lib] Add steps to validate glusterd logsPranav2021-01-181-1/+23
| | | | | | | | | | | | | | Adding additional checks to verify the glusterd logs for `Responded to` and `Received ACC` while performing a glusterd restart. Replacing reboot with network interface down to validate the peer probe scenarios. Adding lib to bring down network interface. Change-Id: Ifb01d53f67835224d828f531e7df960c6cb0a0ba Signed-off-by: Pranav <prprakas@redhat.com>
* [Lib] Add kill_process methodPranav2020-04-171-2/+49
| | | | | | | | | The method kills the given set of processes running on the specified node. It takes process ids or process names and uses the kill command to terminate the process and returns status as boolean value Change-Id: Ic6c316dac6b3496d34614c568115b0fa0f40d07d Signed-off-by: Pranav <prprakas@redhat.com>
* [Libfix] Change daemon_reload() to support newer platformskshithijiyer2020-04-071-4/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | Problem: Currently the code supports both service and systemctl commands but it fails on the latest platforms with the below error on the latest platforms: ``` service glusterd reload Redirecting to /bin/systemctl reload glusterd.service Failed to reload glusterd.service: Job type reload is not applicable for unit glusterd.service. ``` This is because the latest platforms uses systemctl instead of service to reload the daemon processes: ``` systemctl daemon-reload ``` Solution: The present code doesn't work properly as the check is specific to only one platform, hence it fails. The solution for this is to just check for older platforms and run service command. For all other platforms run systemctl command. Change-Id: I19b24652b96c4794553d3659eaf0301395929bca Signed-off-by: kshithijiyer <kshithij.ki@gmail.com>
* [Libfix] Added Increased timeout value for reboot casesSri Vignesh2020-02-111-2/+2
| | | | | | | | Reboot cases are failing with timeout value, therfore increasing the timeout value in function. Change-Id: I262120e87d36b2d5cc7244b37d5f6e051c964f0f Signed-off-by: Sri Vignesh <sselvan@redhat.com>
* [Fix] Changing license to GPLv3+ in setup.py files.kshithijiyer2019-12-101-3/+3
| | | | | | | | | | 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>
* [py2to3] Fix files in the 'glustolibs-misc' directoryValerii Ponomarov2019-12-092-54/+52
| | | | | | | | | | | | | | | | | Do following updates: - Use 'list' object type in comparisons instead of 'str'. Because it is differently treated in py2 and py3. Example: # In py2 isinstance(u'foo', str) is False # In py3 isinstance(u'foo', str) is True - Add comma separators in the setup.py for it's classifiers. Before it was mistakenly made as one long line. - Fix pep8 errors. - Place 'misc_libs.py' module's imports in alphabetical order. - Update bunch of docstrings of 'misc_libs.py' module's functions to make them look similar. Change-Id: I2ea2d70746c49c9130a31fb97dec76ad38a50f62 Signed-off-by: Valerii Ponomarov <kiparis.kh@gmail.com>
* [py2to3] Replace usage of ".iteitems()" attr with ".items()"Valerii Ponomarov2019-11-211-1/+1
| | | | | | | | Dict attribute called "iteritems()" is not supported in the py3. So, replace it's usage with another similar attr called "items()". Change-Id: I130b7f67f0a2d5da5ed6c3d792f5ff024ba148f4 Signed-off-by: Valerii Ponomarov <kiparis.kh@gmail.com>
* Cthon test case for NFS GaneshaArjun Sharma2019-09-121-0/+35
| | | | | Change-Id: I3fb826bd0ecbe46bee4b9f8594b23f16921adbec Signed-off-by: Arjun Sharma <arjsharm@redhat.com>
* Added a library for daemon reload and fixing testcaseBala Konda Reddy M2019-09-041-0/+27
| | | | | | | | | | | | | | After changing the type of unit file from INFO to DEBUG. Performing daemon reload. Earlier using running commands continuosly to generated debug messages instead of running continuosly, restarted glusterd in one of the nodes so that while handshake the logs will be in Debug mode. After validating reverting back the unit file to INFO and daemon reload Change-Id: I8c99407eff2ea98a836f37fc2d89bb99f7eeccb7 Signed-off-by: Bala Konda Reddy M <bmekala@redhat.com>
* Fix spelling mistake across the codebaseNigel Babu2018-08-071-8/+8
| | | | Change-Id: I46fc2feffe6443af6913785d67bf310838532421
* Fixed a problem, when after rebooting nodes and timeout completion it sad ↵Vitalii Koriakov2018-06-131-3/+7
| | | | | | | that nodes are online even if nodes are still offline Change-Id: I57da740fbc8eef2e41d5dfe3bb82a8d487630893 Signed-off-by: Vitalii Koriakov <vkoriako@redhat.com>
* Function that drops caches on a list of hosts,to run certain FOPs on a cold ↵Ambarish Soman2018-05-091-0/+23
| | | | | | | cache Change-Id: Ia6a2d73da1c3ea2a123da55c6bcd063b1e7404a4 Signed-off-by: Ambarish Soman <asoman@redhat.com>
* Added reboot_nodes methodVitalii Koriakov2018-04-251-21/+39
| | | | | Change-Id: I72e9023125f654f3a04e96243a94218461c934da Signed-off-by: Vitalii Koriakov <vkoriako@redhat.com>
* Checking nodes goes offline or not after rebootAkarsha Rai2018-04-171-5/+19
| | | | | Change-Id: I59d3dc6da29eeefb9b1025cf9cf2b2540ea33d4e Signed-off-by: Akarsha Rai <akrai@redhat.com>
* Adding are_nodes_offline functionVijay Avuthu2018-02-091-0/+36
| | | | | Change-Id: I591c9ca5da52e76b3300c243a5121d27ac89a8f1 Signed-off-by: Vijay Avuthu <vavuthu@redhat.com>
* Adding function reboot_nodes_and_wait_to_come_onlineVijay Avuthu2018-02-081-0/+59
| | | | | Change-Id: Ib7dcf883d9aacd89c652d8cee9e66d5bc44169b0 Signed-off-by: Vijay Avuthu <vavuthu@redhat.com>
* Adding function: are_nodes_onlineVijay Avuthu2018-01-311-0/+36
| | | | | | | | | Description : Function to check whether given nodes are online or not Change-Id: I92a40ac1a6bcdbdfb845413902dd0a798c68ed5c Signed-off-by: Vijay Avuthu <vavuthu@redhat.com>
* Adding misc-libs module to provide helpers for misc tasks.Shwetha Panduranga2017-02-214-0/+424
Change-Id: I2dba55b945a4371877fad6e56e3147ffbb7c6456 Signed-off-by: Shwetha Panduranga <spandura@redhat.com>