Project

General

Profile

action #89755

Updated by livdywan about 3 years ago

## Motivation 

 Some directories are missing generating errors like this 

 ``` 
 gru_1            | Can not create MOJO_TMPDIR : mkdir /var/lib/openqa/share/factory/tmp: Permission denied at /usr/share/openqa/script/../lib/OpenQA/Setup.pm line 306. 
 ``` 
 The directories has to be: 

 /data/factory/iso:rw 
 /data/factory/hdd:rw 
 /data/factory/other:rw 
 /data/factory/tmp:rw 
 /data/testresults:rw 
 /data/tests:ro 
 /data/conf:ro 

 Also the factory and testresults directories has to be writable by gekotest user 

 ## Acceptance criteria 

 * **AC 1**: Check and complete with the missing directories 
 * **AC 2**: Check and fix the permissions over these directories for the gekotest user 
 * **AC 2**: Create a test to check this. 

 ## Suggestions 
 - Does the user in the container have the right permissions? 
 - Does os-autoinst/openQA/... create all folders on demand? 
 - See https://github.com/os-autoinst/openQA/pull/3755

Back