summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Library for checking snapshot daemon is running or notRajesh Madaka2018-01-251-0/+33
| | | | | | | Added is_snapd_running function to uss_ops.py file Change-Id: Ib1ff0a16550c94604209588bd5221f9ee6e9db92 Signed-off-by: Rajesh Madaka <rmadaka@redhat.com>
* Adding AFR self heal daemon test casesVijay Avuthu2018-01-234-0/+503
| | | | | | | | | | | Gave meaningful names to functions Returning -1 if there is no process running Replace numbers with words Rewording the msg "More than 1 or 0 self heal daemon" Review Comments incorporated Change-Id: If424a6f78536279c178ee45d62099fd8f63421dd Signed-off-by: Vijay Avuthu <vavuthu@redhat.com>
* rebalance_ops: Adding a function wait_for_fix_layout_to_completesPrasad Desala2018-01-201-0/+40
| | | | | Change-Id: Id33b1de7c01cd7774d3c4cce3c40ddfe2dc0d884 Signed-off-by: Prasad Desala <tdesala@redhat.com>
* Fixing the typo error of not enclosing the message inside "()"ShwethaHP2018-01-181-2/+2
| | | | | | | | | | | This should fix the test_cvt_test_self_heal_when_io_is_in_progress: self.assertTrue(ret, "Not all the bricks in list:%s are offline", > bricks_to_bring_offline) E TypeError: assertTrue() takes at most 3 arguments (4 given) Change-Id: Ibfee5253020c2f8927c4fd22a992f7cff7509a5d Signed-off-by: ShwethaHP <spandura@redhat.com>
* Check if servers/nodes which is expected to be passed as listShwethaHP2018-01-165-37/+70
| | | | | | | | is str. i.e passing a single node to the function. If it is str, then convert it to list Change-Id: I1abacf62fdbe1ec56fe85c86d8e2a323a2c3971b Signed-off-by: ShwethaHP <spandura@redhat.com>
* Adding example files to demonstrate how to use functions available inShwethaHP2018-01-164-59/+514
| | | | | | | glustolibs-gluster libs Change-Id: I44f559dd0477f97278b1444e7a6d292ca58b99dc Signed-off-by: ShwethaHP <spandura@redhat.com>
* Override default volume_type configuration in gluster base class ifShwethaHP2018-01-162-1/+27
| | | | | | | | | volume type configuration is defined in the config file. Providing an option in config file to create volume with 'force' option. Change-Id: Ifeac20685f0949f7573257f30f05df6f79ce1dbd Signed-off-by: ShwethaHP <spandura@redhat.com>
* Adding functions for:ShwethaHP2018-01-113-1/+118
| | | | | | | | | 1. Waiting for all bricks to be online 2. Waiting for all self-heal-daemons to be online 3. Waiting for all volume processes to be online Change-Id: I01a8711838227eb167e69710ecbd3abd0fecb9e6 Signed-off-by: ShwethaHP <spandura@redhat.com>
* Adding missing parametersVijay Avuthu2018-01-081-2/+4
| | | | | | | Chnages incorporated as per comment Change-Id: I9a21e0350400198806644c07474ae6aeeeae6c58 Signed-off-by: Vijay Avuthu <vavuthu@redhat.com>
* Modifying gluster_base_class to have static methods for :ShwethaHP2017-12-134-232/+489
| | | | | | | | | | | | | | | | | | | | | | | | 1. setup_volume 2. mount_volume 3. setup_volume_and_mount 4. cleanup_volume 5. unmount_volume 6. unmount_and_cleanup_volume These are added as static methods to give the test developer the flexibility to call the setup/cleanup's or any other function from any where in the testclass which inherits GlusterBaseClass Also, this will remove the need for GlusterVolumeBaseClass and hence removing the hardcoding of creattion of volume, mouting in setUpClass of GlusterVolumeBaseClass. This will also help in writing new baseclasses for example: Block which can have class funcitons specific to block and inherit all the functions from GlusterBaseClass Change-Id: I3f0709af75e5bb242d265d04ada3a747c155211d Signed-off-by: ShwethaHP <spandura@redhat.com>
* Add installSaravanakumar Arumugam2017-12-071-1/+1
| | | | | | should be setup.py install Change-Id: I9a0a03b8ff7ea2d4f42fd845ce84c72f72e984e1
* Adding an example test file.ShwethaHP2017-12-051-0/+127
| | | | | Change-Id: I766c9e1f905728618549a7484a70008d91959538 Signed-off-by: ShwethaHP <spandura@redhat.com>
* Docs: Facelift for README.Devyani Kota2017-11-271-33/+33
| | | | | Change-Id: Id1c7fe24e5cd2931556e2fa6c056a7e8a2a75a5c Signed-off-by: Devyani Kota <devyanikota@gmail.com>
* Fixing the glusto-tests Build Failures:ShwethaHP2017-11-232-14/+13
| | | | | | | | | | 21:00:43 ./glustolibs-gluster/glustolibs/gluster/lib_utils.py:67:5: E722 do not use bare except' 21:00:43 ./glustolibs-gluster/glustolibs/gluster/lib_utils.py:290:5: E722 do not use bare except' 21:00:43 ./glustolibs-io/shared_files/scripts/file_dir_ops.py:308:13: E722 do not use bare except' 21:00:43 ./glustolibs-io/shared_files/scripts/file_dir_ops.py:316:13: E722 do not use bare except' Change-Id: Ia0babf3d5a10b19c48425e4fcbcb8e79eea5e391 Signed-off-by: ShwethaHP <spandura@redhat.com>
* Script to run fio tool using ini job fileArthy Loganathan2017-10-105-0/+137
| | | | | Change-Id: Ie8237836a41d39de0de84b1d4d4b49f9af74b237 Signed-off-by: Arthy Loganathan <aloganat@redhat.com>
* docker: fix gdeploy installJonathan Holloway2017-09-262-8/+12
| | | | | | | | * Dockerfile: fix gdeploy pkgname and add code coverage tools * README: update command examples Change-Id: I73617fbbde6aff34fec730601dcc6baec2b921fa Signed-off-by: Jonathan Holloway <jholloway@redhat.com>
* glustolibs: Handled the case to honour mounts option in config.yml if it is ↵Arthy Loganathan2017-09-111-8/+19
| | | | | | | specified Change-Id: Icb47d923860bbd2c1c70d2f7c23965a5368afa52 Signed-off-by: Arthy Loganathan <aloganat@redhat.com>
* Do not validate the return code of the 'rebalance status' command when just ↵stableShwethaHP2017-09-112-15/+6
| | | | | | | | | logging the output Change-Id: I6ff7e363871607c2f9d4272be7198150db59af5d Signed-off-by: ShwethaHP <spandura@redhat.com>
* Making mounting of volume optional in the BaseClass.ShwethaHP2017-08-312-18/+43
| | | | | | | | Mounting of a volume will not always be distributed volume. Providing a option to mount a local volume as well. Change-Id: Iadbb596fba7e2a5fa4ba3ba53967961a70d00c8c Signed-off-by: ShwethaHP <spandura@redhat.com>
* 1) bring_bricks_online: Wait for bricks to be online for 30 secondsShwethaHP2017-08-287-22/+40
| | | | | | | | | after bringing them online. 2) log all the xml output/error to DEBUG log level. Change-Id: If6bb758ac728f299292def9d72c0ef166a1569ae Signed-off-by: ShwethaHP <spandura@redhat.com>
* Fixing the BVT Issues:ShwethaHP2017-08-192-7/+10
| | | | | | | | | | | | | | | 1) self-heal failures: With the recent changes made to gluster for the bug: https://bugzilla.redhat.com/show_bug.cgi?id=1480423, the location of the brick process pid's changed to /var/run/gluster. Making the corresponding changes to glusto-tests libraries. Moving away from referring to pid file to grep for the process with the brick name. This fixes the issue. 2) Group options not being set properly: Since we were popping the 'group' option from the 'options' dictionary after the group options being set to set the other volume options, the option gets removed from the g.config['gluster']['smb_volume_options'] as well. Hence perform a deep copy of the dict before modifying the dict. Change-Id: I293bf81913857cb0327f30aa1db5aaa9be5a318e Signed-off-by: ShwethaHP <spandura@redhat.com>
* Typo: Space to be added between the commands execution.ShwethaHP2017-08-171-1/+1
| | | | | Change-Id: I5ea8b6c0b58fd19c31fc96cc567c53000cd3841b Signed-off-by: ShwethaHP <spandura@redhat.com>
* Providing configs to set volume options, group options when exporting volume ↵ShwethaHP2017-08-094-6/+74
| | | | | | | | | | | | | | | as 'smb share', 'nfs-ganesha export' in the config yml. Reading the configs in the gluster_base_class and setting those configs when exporting the volumes as 'smb share' or 'nfs-ganesha export'. recommended options when exporting volume as 'smb share': group: "metadata-cache" cache-samba-metadata: "on" Change-Id: I86a118c7015eaedd849a0f6e8b613605df5b6c32 Signed-off-by: ShwethaHP <spandura@redhat.com>
* fix dockerfile gdeploy PyYAML pip/rpm conflictJonathan Holloway2017-08-092-8/+22
| | | | | | | | | | | | * PyYAML is already installed via pip form glusto image and gdeploy installs PyYAML as dependency from rpm. The resulting conflict fails the container build. Dockerfile: changed order of install, added glusto and pylint/pep8 defaults.yml: sets glusto defaults in container image Change-Id: I47eaa1fbe74cc619043d975034083c5766e6acd1 Signed-off-by: Jonathan Holloway <jholloway@redhat.com>
* Added modules to file_dir_ops.py to perform compress, uncompress,Arthy Loganathan2017-08-081-0/+367
| | | | | | | create hard link, read, copy and delete Change-Id: If81480450bdaecc59896682d6febb8c6c9463aa7 Signed-off-by: Arthy Loganathan <aloganat@redhat.com>
* add gluster object exists check to volume config defaultJonathan Holloway2017-08-082-5/+4
| | | | | | | | | 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>
* Set volume options on all the volume typesShwethaHP2017-08-032-1/+18
| | | | | | | | | | | | Providing a section in the config file to set volume options that can be applicable to any volume type created. The glusterbase class also reads the volume_options if provided in config file and set it on all the volumes being created. These volume options will be overwritten if there are any volume options specified while defining the volumes under 'volumes' section. Change-Id: I0003312251b4f8b151c9ba5c71d1b6a8884cc85e Signed-off-by: ShwethaHP <spandura@redhat.com>
* glusto nfs-ganesha: Added test to verify nfsv4 acl functionality with glusterfsArthy Loganathan2017-08-012-0/+325
| | | | | | Change-Id: I2747c3770925b8d8f05e10fb7da49d105b7130e6 Signed-off-by: Arthy Loganathan <aloganat@redhat.com> Signed-off-by: Jiffin Tony Thottan <jthottan@redhat.com>
* Inject gluster,samba,nfs logs with messageShwethaHP2017-07-263-7/+156
| | | | | Change-Id: If16daf6a0633c4ea30f7fb91b919d2ec42d0ff62 Signed-off-by: ShwethaHP <spandura@redhat.com>
* Added more verification checks in NfsGaneshaVolumeBaseclassArthy Loganathan2017-07-261-22/+31
| | | | | Change-Id: I78bf4eda8c350b22d3a5fabb32b5a20f48ab474e Signed-off-by: Arthy Loganathan <aloganat@redhat.com>
* Added readme for nfs ganesha functional testsArthy Loganathan2017-07-261-0/+21
| | | | | Change-Id: Ic066b8ad452b297a2c48e912883536ce3960c0eb Signed-off-by: Arthy Loganathan <aloganat@redhat.com>
* nfs-ganesha-Added tests to verify multi volume exports whenArthy Loganathan2017-07-261-4/+355
| | | | | | | IO is in progress and subdir mounts from client and server side Change-Id: I80b22e6602bbc18652135211ea08710392c04cb6 Signed-off-by: Arthy Loganathan <aloganat@redhat.com>
* running_on_volumes, running_on_mounts should be an optionShwethaHP2017-06-271-5/+10
| | | | | | | | | | under gluster in the config file. Currently the config file has the options under gluster tag. Hence making the appropriate changes in the runs_on to parse the options correctly. Change-Id: Iec95d1884b13c349a36c4324b571a1c0f23c930a Signed-off-by: ShwethaHP <spandura@redhat.com>
* add docker dir with Dockerfile and READMEJonathan Holloway2017-06-222-0/+40
| | | | | | | | * Dockerfile for creating a glusto-tests container. * README with some basic information for now. Change-Id: I10d467371b430489a240e979ebc3893f7cc578dd Signed-off-by: Jonathan Holloway <jholloway@redhat.com>
* Adding a pointer to HOWTO from ReadmeShwethaHP2017-06-201-0/+3
| | | | | Change-Id: I898f0cfc2ffba647487c54bb929d37aad90974aa Signed-off-by: ShwethaHP <spandura@redhat.com>
* Added gdeploy configuration files ad jinja templates for nfs ganesha operationsArthy Loganathan2017-06-208-1/+107
| | | | | Change-Id: I30f8b464d2193909a0d83daff7ea695b97fb3863 Signed-off-by: Arthy Loganathan <aloganat@redhat.com>
* Fix to match only the given volname in showmountArthy Loganathan2017-06-201-1/+1
| | | | | Change-Id: I41290d79f016e590a936d031665259f61aa1474a Signed-off-by: Arthy Loganathan <aloganat@redhat.com>
* Test scripts to test nfs ganesha volume exports, refresh config when IO is ↵Arthy Loganathan2017-06-201-0/+212
| | | | | | | in progress, enable and disable cluster Change-Id: I15adbc73d72a67bd6b4189298631c9374540f2bb Signed-off-by: Arthy Loganathan <aloganat@redhat.com>
* Added nfs ganesha tests to run IO test suites from multiple clients and ↵Arthy Loganathan2017-06-203-0/+349
| | | | | | | checks nfs ganesha behaviour Change-Id: I2dc7f0fb016982b7b7fa4a87c0310e4c96376f94 Signed-off-by: Arthy Loganathan <aloganat@redhat.com>
* Added documentation for installing latest version of gdeployArthy Loganathan2017-06-202-0/+10
| | | | | Change-Id: Ia653f5659a6e93037e22b835a87122d00d0b1d6a Signed-off-by: Arthy Loganathan <aloganat@redhat.com>
* Added library functions for nfs-ganesha featuresArthy Loganathan2017-06-202-0/+1406
| | | | | Change-Id: I2f35a218630e23c005bb995ac8513118553aeba0 Signed-off-by: Arthy Loganathan <aloganat@redhat.com>
* Minor changes in gluster base class wrt nfs-ganeshaArthy Loganathan2017-06-122-6/+13
| | | | | Change-Id: Iaceb22cd5b2fe920c9cdc6d110d26939e26e5ffe Signed-off-by: Arthy Loganathan <aloganat@redhat.com>
* Resolving the Cyclic Imports. It cased during resolving theShwethaHP2017-06-061-1/+1
| | | | | | | merge confilts. Change-Id: Ie48d758c8883b8189ece735708fb5469ece5a0c2 Signed-off-by: ShwethaHP <spandura@redhat.com>
* Adding sanity heal tests when IO in progress.Shwetha Panduranga2017-06-013-3/+857
| | | | | | | | | 1) test heal with replace-brick when io in progress 2) test heal when bricks goes offline and comes back online when io in progress. Change-Id: Id9002c465aec8617217a12fa36846cdc1f61d7a4 Signed-off-by: Shwetha Panduranga <spandura@redhat.com> Signed-off-by: ShwethaHP <spandura@redhat.com>
* Adding a sanity case to test shrinking volume. i.e remove-brickShwetha Panduranga2017-05-313-22/+387
| | | | | | | | | Remove brick Sanity case covers testing of remove-brick of a subvolume, waiting for rebalance to complete, commiting the operation and validate IO is successful on the mount. Change-Id: I5912f62b3df5dfb5bf5339de036967f83b6a5117 Signed-off-by: Shwetha Panduranga <spandura@redhat.com>
* Adding Quota, Snapshot Components Sanity Tests.Shwetha Panduranga2017-03-082-11/+287
| | | | | | | | | 1) Quota: Enabling, Setting Limit, Disabling, Listing of Quota is tested. 2) Snapshot: Creating, Listing, Activating, Viewing the snap from mount, De-Activating of snapshots is tested. Change-Id: Ia91e86e121d5d3fcc038704031617594d3d601d4 Signed-off-by: Shwetha Panduranga <spandura@redhat.com>
* Adding a test for Gluster Basic Component Verification Sanity Suite.Shwetha Panduranga2017-03-034-131/+429
| | | | | | | - expanding the volume i.e test add-brick is successful on the volume. Change-Id: I8110eea97cf46e3ccc24156d6c67cae0cbf5a7c1 Signed-off-by: Shwetha Panduranga <spandura@redhat.com>
* Adding a Gluster Basic Features Sanity test:Shwetha Panduranga2017-03-022-11/+213
| | | | | | | | | | Test volume set option while IO is in progress. This basically tests IO to be successful after the client graph changes. (Note: This case will be run as part of Build Verification Test Suite) Change-Id: I111cf0214596fe32c872fdc73c5ccb8ab4a308be Signed-off-by: Shwetha Panduranga <spandura@redhat.com>
* Adding steps to test to wait for glusterd to be online andShwetha Panduranga2017-02-271-6/+54
| | | | | | | validate all peers are in connected state. Change-Id: I3aa725aea35d404326610a2490b3f48e7fa46546 Signed-off-by: Shwetha Panduranga <spandura@redhat.com>
* Adding a new test to VVT:Shwetha Panduranga2017-02-276-609/+602
| | | | | | | | | | | | | | | | | | | | | 1) glusterbaseclass: - Making changes in glusterbaseclass to not necessarily have volume_type and mount_type. 2) volume_libs: - setup_volume don't have to export the volume. It just creates starts and setup's any operation on the volume. - Moved the sharing/exporting the volume to BaseClass 3) Renaming samba_ops to samba_libs to have better naming practice. 4) Adding nfs_ganesha_libs for any nfs related helper functions 5) Adding a new vvt case which creates, deteles, creates the volume. Change-Id: I238c349df7165d669d3bc7234d97845dba2f51a6 Signed-off-by: Shwetha Panduranga <spandura@redhat.com>