Project

General

Profile

action #131465

Updated by okurz 11 months ago

## Motivation 

 While tracking down the root cause for #131447 we encountered a lot of error messages like: 
 ``` 
 Jun 27 09:10:06 openqa openqa-gru[22285]: mktemp: failed to create file via template ‘/tmp/tmp.XXXXXXXXXX’: No space left on device 
 Jun 27 09:10:37 openqa openqa-gru[22774]: mktemp: failed to create file via template ‘/tmp/tmp.XXXXXXXXXX’: No space left on device 
 Jun 27 09:11:27 openqa openqa-gru[23797]: mktemp: failed to create file via template ‘/tmp/tmp.XXXXXXXXXX’: No space left on device 
 Jun 27 09:13:38 openqa openqa-gru[26670]: mktemp: failed to create file via template ‘/tmp/tmp.XXXXXXXXXX’: No space left on device 
 Jun 27 09:13:38 openqa openqa-gru[26684]: mktemp: failed to create file via template ‘/tmp/tmp.XXXXXXXXXX’: No space left on device 
 ``` 
 These are very hard to trace back to the code that triggered them. If we simply used more unique templates like 
 `/tmp/tmp.webui.obs.rsync.XXXXXXXXXX` and the like it would be much easier. 

 ## Acceptance criteria 
 * **AC1:** All temporary files/directories created by openQA including use unique templates templates. 

 ## Suggestions 
 * The underlying Perl modules usually have options for setting templates (https://metacpan.org/pod/Mojo::File#tempdir) 
 * Review all occurences of using temp files and directories in os-autoinst and openQA and decide where we need to add a unique name template 
 * Also review https://github.com/os-autoinst/scripts/ 
 * Optional: Fix where stuff is not properly cleaned up

Back