teemtee / tmt

Test Management Tool
MIT License
86 stars 130 forks source link

tmt run eats space, explore ways how to limit disk usage #645

Open lukaszachy opened 3 years ago

lukaszachy commented 3 years ago

All tmt run data including test cloud images are kept on the disk after run is finished. This can take a lot of space.

Ideas (from the workshop)

FrNecas commented 3 years ago

436 should partially help so that it is not necessary to clean /var/tmp/tmt manually

lukaszachy commented 3 years ago

Also - since default workdir is in /var/tmp tmt could set rules for systemd-tmpfiles so this dir will be cleaned regularly

FrNecas commented 3 years ago

Out of these suggestions, I feel like removing successful runs (keeping failed runs) is the most non-invasive, it doesn't really affect the user experience. Especially if we do the removal in finish step since that means that if finish is for some reason skipped (e.g. debugging scenario - running tmt run discover provision prepare execute report) then the run is kept and the execute can be rerun or login can be used etc. I will implement this, should be simple.