Skip to content

Commit

Permalink
qa: ignore disk quota exceeded failure in test
Browse files Browse the repository at this point in the history
Quota enforcement takes some time. It is documented.
Test should ignore 'Disk Quota Exceeded' failure.

Fixes: https://tracker.ceph.com/issues/56632
Signed-off-by: Nikhilkumar Shelke <nshelke@redhat.com>
  • Loading branch information
nmshelke committed Aug 29, 2022
1 parent 07bfcac commit 41b0cb7
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion qa/tasks/cephfs/test_volumes.py
Expand Up @@ -6619,7 +6619,11 @@ def test_subvolume_snapshot_clone_quota_exceeded(self):
self._fs_cmd("subvolume", "create", self.volname, subvolume,"--mode=777", "--size", str(osize))

# do IO, write 50 files of 1MB each to exceed quota. This mostly succeeds as quota enforcement takes time.
self._do_subvolume_io(subvolume, number_of_files=50)
try:
self._do_subvolume_io(subvolume, number_of_files=50)
except CommandFailedError:
# ignore quota enforcement error.
pass

# snapshot subvolume
self._fs_cmd("subvolume", "snapshot", "create", self.volname, subvolume, snapshot)
Expand Down

0 comments on commit 41b0cb7

Please sign in to comment.