Project

General

Profile

Actions

action #67087

open

coordination #92323: [saga][epic] Scale up: Fine-grained control over use and removal of results, assets, test data

Allow to configure retention period for the video individually

Added by mkittler over 4 years ago. Updated over 3 years ago.

Status:
New
Priority:
Low
Assignee:
-
Category:
Feature requests
Target version:
Start date:
2020-05-20
Due date:
% Done:

0%

Estimated time:

Description

problem

The video often needs the most disk space but is not necessarily very important. Hence it makes sense to allow configuring the retention period for the video individually.

This is for instance the case for the filesystem group on OSD but it makes generally sense for jobs which take long to execute (and therefore have a long video).

acceptance criteria

AC1: The retention period for videos is configurable on job group level similarly to the already existing retention periods. That includes the possibility to set a distinct value for important builds.
AC2: The GRU task for cleaning results and logs deletes videos of jobs when the configured retention period has been expired.
AC3: When the retention period for logs or all results has been expired anyways the behavior does not change. (This feature is not meant to keep videos "extra long".)

notes

  • When adding another cleanup configuration we can also implement the idea mentioned here. This retention period would allow to remove everything from the disk but still keep only the job entry in the database. (Job settings should likely be deleted as well.)
  • Maybe it makes sense to refactor the UI code a little bit so it does not become even more repetitive.
  • Not sure whether it makes sense follow the current approach and add a column video_present to the jobs table like the already existing column logs_present. An extra column for every details we might want to configure specifically doesn't make sense. So maybe we better stat for the video on the fly if logs_present is true or simply try to delete and ignore if it fails because it doesn't exist.

Related issues 1 (0 open1 closed)

Related to openQA Infrastructure - action #66922: osd: /results cleanup, see alertResolvedmkittler2020-05-17

Actions
Actions #1

Updated by mkittler over 4 years ago

  • Related to action #66922: osd: /results cleanup, see alert added
Actions #2

Updated by mkittler over 4 years ago

  • Status changed from New to In Progress
  • Assignee set to mkittler
  • Target version changed from future to Current Sprint
Actions #3

Updated by okurz over 4 years ago

  • Status changed from In Progress to New
  • Assignee deleted (mkittler)
  • Priority changed from Normal to Low
  • Target version changed from Current Sprint to future

mkittler and me discussed and we decided together. The problem domain is more generic and can likely be phrased as "Some jobs can take up a lot of space and we should handle them more efficiently" :) This ticket now in the current form prescribes an implementation and that should be changed to describe real use cases. Specific further ideas:

  • OSD specific: cron job which checks if df is showing low space available for /results, then call find … delete videos older than <…>
  • Default to NOVIDEO=1 for all scenarios that set a MAX_JOB_TIME higher than default 2h
  • Have a configurable list of file type/name/pattern with retention period or size quota for each file type/name/pattern
  • Improve video compression codecs (a 20MB video.ogv can be compressed easily to 14MB video.ogv.xz, that can be improved)
Actions #4

Updated by okurz over 4 years ago

  • Parent task set to #64746
Actions #5

Updated by okurz over 3 years ago

  • Parent task changed from #64746 to #92323
Actions

Also available in: Atom PDF