| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Problem:
Test script test_alert_time_out currently fails
2 out of 6 times when executed on the same setup
this is due to the log files not have 120004 A
alert message. This issue is only observed in
distributed volume type mounted over fuse
protocol.
Solution:
There is no permanent solution to this problem
as even if we increase the sleep 20 seconds there
is still a chance that it might fail. The optimal
sleep time where it only fails 5 times after 15
attempts is 6 seconds. Hence changing sleep time
to 6 seconds.
Change-Id: I9e9bd41321e24f502d90c3c34edce9113133755e
Signed-off-by: kshithijiyer <kshithij.ki@gmail.com>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Problem:
As in setUpClass, the setup_volume method is used
for volume creation, volume mount is not done.
But in teardown, unmount_volume_and_cleanup_volume
is used. This causes teardown to fail
Fix:
change unmount_volume_and_cleanup_volume
to cleanup_volume
Change-Id: Ia9bb6bcd36ce9ddb9c200ef18779df47a009d42f
Signed-off-by: Pranav <prprakas@redhat.com>
|
|
|
|
|
|
|
| |
Move cases from teardown class to teardown in quota
Change-Id: Ia20fe9bef09842f891f0f27ab711a1ef4c9f6f39
Signed-off-by: Sri Vignesh <sselvan@redhat.com>
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
The test case 'tests/functional/quota/test_limit_usage_deep_dir.py'
fails erratically for disperse volume.
A bug [1] had been raised for the same where it was decided to
remove the disperse volume type from the 'runs_on' of that test.
[1] https://bugzilla.redhat.com/show_bug.cgi?id=1672983
Change-Id: Ica8f2af449225d72d1b60c2c86b20e16b80a5a5a
Signed-off-by: Vinayak Papnoi <vpapnoi@redhat.com>
|
|
|
|
|
|
|
|
| |
Please refer to commit message of patch [1].
[1] https://review.gluster.org/#/c/glusto-tests/+/24140/
Change-Id: Ib357d5690bb28131d788073b80a088647167fe80
Signed-off-by: kshithijiyer <kshithij.ki@gmail.com>
|
|
|
|
|
|
|
|
|
|
|
|
| |
When quota limit is reached, if an add-brick followed by rebalance is
performed, then the previous quota limits should be honoured.
No new files should be created because the quota limits have reached.
Change-Id: I37da02ce292e6a7bc614cf888aac69ea109f84f5
Signed-off-by: Sanoj Unnikrishnan <sunnikri@redhat.com>
Co-authored-by: Sanoj Unnikrishnan <sunnikri@redhat.com>
Signed-off-by: Vinayak Papnoi <vpapnoi@redhat.com>
|
|
|
|
|
|
|
|
| |
Please refer to the commit message of the below patch:
https://review.gluster.org/#/c/glusto-tests/+/23902/
Change-Id: I0d2eeb978c6757d6d910ebfe21b07811bf74b80a
Signed-off-by: kshithijiyer <kshithij.ki@gmail.com>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Removing script_local_path as both script_local_path and
cls.script_upload_path hold the same values which makes
each script slow. This will help decrease the execution
time of the test suite.
PoC:
$cat test.py
a = ("/usr/share/glustolibs/io/scripts/"
"file_dir_ops.py")
b = ("/usr/share/glustolibs/io/scripts/"
"file_dir_ops.py")
$time python test.py
real 0m0.063s
user 0m0.039s
sys 0m0.019s
$cat test.py
a = ("/usr/share/glustolibs/io/scripts/"
"file_dir_ops.py")
$time python test.py
real 0m0.013s
user 0m0.009s
sys 0m0.003s
Code changes needed:
From:
script_local_path = ("/usr/share/glustolibs/io/scripts/"
"file_dir_ops.py")
cls.script_upload_path = ("/usr/share/glustolibs/io/scripts/"
"file_dir_ops.py")
ret = upload_scripts(cls.clients, script_local_path)
To:
cls.script_upload_path = ("/usr/share/glustolibs/io/scripts/"
"file_dir_ops.py")
ret = upload_scripts(cls.clients, cls.script_upload_path)
Change-Id: I7908b3b418bbc929b7cc3ff81e3675310eecdbeb
Signed-off-by: kshithijiyer <kshithij.ki@gmail.com>
|
|
|
|
|
| |
Change-Id: I39ed09ee91a345daae7bb675184a8a30d48575fa
Signed-off-by: Valerii Ponomarov <kiparis.kh@gmail.com>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Test case:
* Enable quota on the volume.
* Set hard and soft time out to zero.
* Create some files and directories from mount point
so that the limits are reached.
* Perform add-brick operation on the volume.
* Start rebalance on the volume.
* While rebalance is running, kill one of the bricks of
the volume and start after a while.
* While rebalance + self heal is in progress,
create some more files and directories from the mount point until
limit is hit.
Change-Id: Ic7d2ac92b4e132ab1018242c17bed5e888e86cf3
Co-authored-by: Sanoj Unnikrishnan <sunnikri@redhat.com>
Signed-off-by: Sanoj Unnikrishnan <sunnikri@redhat.com>
Signed-off-by: kshithijiyer <kshithij.ki@gmail.com>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Test statvfs calls return appropriate avaialable size with quota.
* Enable Quota
* Save the result from statvfs call
* Set Quota limit of 1 GB on the root of the volume
* Validate statvfs call honors quota
* Remove quota limit from the Volume
* Validate statvfs call reports old value of avialable space
Change-Id: I5f6271e0acdba13d483eb321f62ca9fdc5360859
Signed-off-by: Sanoj Unnikrishnan <sunnikri@redhat.com>
Signed-off-by: kshithijiyer <kshithij.ki@gmail.com>
|
|
|
|
|
|
|
|
|
|
| |
Replaced "quota_fetch_list" with "quota_validate"
Fixed hard_limit validation as it was failing in the
automation runs.
Change-Id: I603a2649ab43c3317626b4325c0b353a798eee94
Signed-off-by: Vinayak Papnoi <vpapnoi@redhat.com>
|
|
|
|
| |
Change-Id: I46fc2feffe6443af6913785d67bf310838532421
|
|
|
|
|
|
|
|
|
| |
The comments state that the sleep timeout is of 2 seconds
but actually it is 10 seconds. This patch will be rectifying
that error and the actual sleep will be of 2 seconds.
Change-Id: Ie1cabf2c707c95018a750538bc8a13d1a72fe7f1
Signed-off-by: Vinayak Papnoi <vpapnoi@redhat.com>
|
|
|
|
|
|
|
|
|
|
| |
On a quota enabled volume validate if alert time is printed only after
crossing the soft limit.
Change-Id: Ia94ae9dd760fed644841df11fe046c184cdd3398
Signed-off-by: hari gowtham <hgowtham@redhat.com>
Signed-off-by: Vitalii Koriakov <vkoriako@redhat.com>
Signed-off-by: Vinayak Papnoi <vpapnoi@redhat.com>
|
|
|
|
|
|
|
|
| |
No functional change, just make the tests a bit more readable.
It could be moved to a decorator later on, wrapping tests.
Change-Id: I484bb8b46907ee8f33dfcf4c960737a21819cd6a
Signed-off-by: Yaniv Kaul <ykaul@redhat.com>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
The below operations are performed on a dis-rep volume
* Enable Quota
* Set limit of 1GB on /
* Mount the volume
* Create some random amount of data inside each directory until quota
is reached
* Perform a quota list operation
* Perform add-brick
* Trying add files and see if quota is honored.
Change-Id: Idd6a647c65a9e2dc7322bc729b48366cf6a46c85
Signed-off-by: harigowtham <hgowtham@redhat.com>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
The following steps are followed:
* Enable quota on the volume
* Set the quota on the non-existing directory
* Create the directory as above and set limit
* List the quota on the volume
* Delete the directory
* Recreate the directory
* List the quota on volume
* Check for volume status
Change-Id: Ieb37b24715f4c4a9689db582489a7d9a965d54ad
Signed-off-by: harigowtham <hgowtham@redhat.com>
|
|
|
|
|
|
|
|
|
|
| |
Test quota with respect to the limit-usage and soft-limit
quota volume options. Set a unique soft-limit on each directory
and create some data such that the soft-limit is exceeded
and validate with the quota list command.
Change-Id: I80fbb93072a9d8c2fa861c931042ae2fba1fefe1
Signed-off-by: Vinayak Papnoi <vpapnoi@redhat.com>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Quota limit-usage should fail when trying to set the limit
on a symlink.
- Enable quota
- Set a limit on the volume
- Create a directory from mount
- Create a symlink of the directory from mount
- Try to set a quota limit on the symlink
Change-Id: Ic9979a5c67af74d08527acc0f9a30c1d97291906
Signed-off-by: Vinayak Papnoi <vpapnoi@redhat.com>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
If a limit is set and a file of size larger than limit is created
then the file creation will stop when it will reach the limit.
- Enable Quota
- Create a directory from mount point
- Set a limit of 10 MB on the directory
- Set Quota soft-timeout and hard-timeout to 0 seconds
- Create a file of size larger than the Quota limit
eg. 20 MB file
- Perform Quota list operation to check if all the fields are
appropriate such as hard_limit, available_space, sl_exceeded,
hl_execeeded, etc.
Change-Id: I44d7e23e60589cbe022735e9b4b5f3bfd1b7458e
Signed-off-by: Vinayak Papnoi <vpapnoi@redhat.com>
|
|
|
|
|
|
|
|
|
| |
Test quota with respect to the quota daemon and
features.quota-deem-statfs quota volume option when
quota is enabled/disabled on the volume.
Change-Id: I91a4ced6a5d31fe93c6bb9b0aa842cd5baf38ee0
Signed-off-by: Vinayak Papnoi <vpapnoi@redhat.com>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
The below operations are performed on various types of volumes and mount.
* Enable Quota
* Create 10 directories one inside the other and set limit of
1GB on each directory
* Perform a quota list operation
* Create some random amount of data inside each directory
* Perform a quota list operation
* Remove the quota limit and delete the data
Change-Id: I2a706eba5c23909e2e6996f485b3f4ead9d5dbca
Signed-off-by: harigowtham <hgowtham@redhat.com>
|
|
|
|
|
|
|
|
|
|
|
|
| |
- Enable Quota
- Set quota limit of 1 GB on /
- Create 10 directories inside volume
- Set quota limit of 100 MB on directories
- Fill data inside the directories till quota limit is reached
- Validate the size fields using quota list
Change-Id: I917da8cdf0d78afd6eeee22b6cf6a4d580ac0c9f
Signed-off-by: Vinayak Papnoi <vpapnoi@redhat.com>
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Test quota limit-usage by setting limits of various values
being big, small and decimal values. eg. 1GB, 10GB, 2.5GB, etc.
and validate the limits by creating data more than the
hard limits.
(after reaching hard limit the data creation should stop)
Addressed review comments.
Change-Id: If2801cf13ea22c253b22ecb41fc07f2f1705a6d7
Signed-off-by: Vinayak Papnoi <vpapnoi@redhat.com>
|
|
|
|
|
|
|
|
|
|
|
|
| |
This testcase will enable quota on dir of volume and rename it
to other name and checks whether quota list is showing the renamed dir.
Incorporated the changes made on the quota_ops and quota_libs.
Change-Id: I7166a9810614c966a4a656b5e8976df55b102c01
Signed-off-by: venkata edara <redara@redhat.com>
Signed-off-by: Vitalii Koriakov <vkoriako@redhat.com>
Signed-off-by: Vinayak Papnoi <vpapnoi@redhat.com>
|
|
|
|
|
|
| |
We renamed the quota functions, so this caused some conflicts on master.
Change-Id: I5eb6381dc77dcd99929cbc20173941bf1bd2290d
|
|
|
|
|
|
|
|
|
|
| |
- added quota_libs.py with quota_validate library
- Removed redundant function in quota_ops.
- changed naming of quota_ops to be consistent and
intutive w.r.t cli
Change-Id: I4faf448ea308c9e04b548d6174d900fcf56978a5
Signed-off-by: Sanoj Unnikrishnan <sunnikri@redhat.com>
|
|
|
|
|
|
|
|
|
| |
This test case covers the quota functionality for
a volume with a single brick (1x1).
Quota help cli command is also validated here.
Change-Id: I772f4646e2229c21f4547122410633715ef47668
Signed-off-by: Vinayak Papnoi <vpapnoi@redhat.com>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Verifying directory quota functionality with respect to the
limit-usage option. Set limits on various directories [breadth]
and check for the quota list of all the directories.
* Enable Quota
* Create 10 directories and set limit of 1GB on each directory
* Perform a quota list operation
* Create some random amount of data inside each directory
* Perform a quota list operation
Change-Id: I3ffc5b99018365eca21ecbdd55d6d9c176f36d6f
Signed-off-by: Vinayak Papnoi <vpapnoi@redhat.com>
Signed-off-by: Vitalii Koriakov <vkoriako@redhat.com>
|
|
|
|
|
|
|
|
|
| |
This testcase will enable/disable quota by giving negative inputs
and also try to enable timeouts by giving huge value , all testcases
have to return false.
Change-Id: I3996a38a728c20199ef969d03ff9e11dc774ee6c
Signed-off-by: venkata edara <redara@redhat.com>
|
|
|
|
|
|
|
|
|
| |
This test case covers the quota list functionality
with and without the path. Both outputs for quota list
with and without path should match.
Change-Id: I251cae896558e09bee3d4a689f8287df2b0bb585
Signed-off-by: Vinayak Papnoi <vpapnoi@redhat.com>
|
|
|
|
| |
Change-Id: I14609030983d4485dbce5a4ffed1e0353e3d1bc7
|
|
Once a volume is mounted, and quota is enabled, we have to make sure
that quota cannot be set a directory that does not exist.
Change-Id: Ic89551c6d96b628fe04c19605af696800695721d
Signed-off-by: hari gowtham <hgowtham@redhat.com>
|