| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
| |
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>
|