Project

General

Profile

Actions

action #88121

closed

coordination #103950: [saga][epic] Scale up: Efficient handling of large storage for multiple independant projects and products

coordination #76984: [epic] Automatically remove assets+results based on available free space

Trigger cleanup of results (or assets) if not enough free space based on configuration limit

Added by okurz over 3 years ago. Updated about 3 years ago.

Status:
Resolved
Priority:
Normal
Assignee:
Category:
Feature requests
Target version:
Start date:
2021-01-21
Due date:
% Done:

0%

Estimated time:

Description

Motivation

See parent epic #76984 . To be able to progress with #76984 we should try to split out smaller simple stories and start with implementing "df" calls in general. This would also allow us to gather experience if calling df is cheap and reliable enough

Acceptance criteria

  • AC1: Regular cleanup of results (or assets) is triggered if free space for results (or assets) is below configured limit
  • AC2: If no free space limit is configured no df check is called and no cleanup is triggered

Suggestions

  • Extend the existing asset+result cleanup to
    • check the free space of the filesystem including the assets/results directory
    • compare the free space against a configured value, e.g. in openqa.ini
    • trigger the same cleanup that we would trigger from the systemd timer
  • can use https://software.opensuse.org/package/perl-Filesys-Df?search_term=perl-FileSys-Df
  • can mock "df" in tests to simply give back what we want, e.g. "enough free space available" or "free space exceeded"
  • Optional: Extend to assets as well
Actions

Also available in: Atom PDF