Project

General

Profile

action #89755

Updated by livdywan almost 4 years ago

## Observation 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` factory and `testresults` testresults directories have has to be writable by `geekotest` gekotest user in the container 

 ## Acceptance criteria 

 * **AC 1**: Ensure factory/testresults Check and complete with the missing directories are created 
 * **AC 2**: Ensure container user has Check and fix the permissions for 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