Feature 312751: snapper: cleanup rules based on free space and/or fill-level
For details see https://fate.suse.com/312751
First check if the Feature status is "done".
During a discussion in the Beta tester group we found that it would be useful not only cleanup btrfs snapshots based on "age", but also depending on the filesystem's fill-level and/or free space
#7 Updated by okurz about 4 years ago
only enable the tests for SLES then for now.
#11 Updated by dgutu almost 4 years ago
Something doesn't work in this snapper cleanup algorithm.
Could be that the HDD of 20Gb is too small. I will try with 30 and update the task.
#13 Updated by okurz almost 4 years ago
dgutu I think you might be wanting too much in one step :-) Better just add the test for one single scenario than not have it ready at all.
Feature test: PASSED
Used dgutu's PR, adapted it a bit and ran in
but it takes rather long to execute so I am convinced it must not be called as part of every console test.
I tried to execute it as part of "extra tests" but it turns the filesystem R/O, probably because space got depleted? See http://lord.arch/tests/2687#step/snapper_cleanup/29
Even worse, it doesn't fail the test.
But nevertheless, here are my suggestions: https://github.com/dgutu-suse/os-autoinst-distri-opensuse/compare/features/snapper_cleanup...okurz:feature/snapper_cleanup?expand=1
#18 Updated by dgutu over 3 years ago
I need your opinion on the following:
- The bug created based on behavior of snapper_cleanup test could be invalid IF the root partition where test is running is not less then 20GB.
- Every run where I have used HDDSIZEGB=22 and TOGGLEHOME=1 passed.
Should I consider an update on testcase 'sles+extratests' by using HDDSIZEGB=22 and
TOGGLEHOME=1 (the default layout will create a separate /home and / if the last will be used)?
#22 Updated by dgutu over 3 years ago
Dumitru, could you please check with Martin Kravec about qgroups? Maybe he can check here.
We already had a discussion with Martin, our tasks are different.
for x86_64 snapper cleanup is passing but it behaves different for ppc for unknown reason for now, I will investigate.
#27 Updated by dgutu over 3 years ago
Because on ppc architecture the block size is much bigger than on x86 architecture I've decided to create separate testcase for ppc.
So, I've added 2 testcase, one for creating the hdd image with bigger size and second is the test which is sles+extratests for ppc.
I will add the link with the working test later.