action #89755
closedcoordination #80142: [saga][epic] Scale out: Redundant/load-balancing deployments of openQA, easy containers, containers on kubernetes
container: Fix missing shared directories and its permissions
0%
Description
Observation¶
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 have to be writable by geekotest
user in the container
Acceptance criteria¶
- AC 1: Ensure factory/testresults directories are created
- AC 2: Ensure container user has permissions for these directories
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
Updated by livdywan over 3 years ago
- Description updated (diff)
Note:
- I re-phrased it to not assume that the problem is on the container side. Maybe it is, but let's not prescribe the solution here.
- I removed the explicit AC for tests since I think it's implied for a bug fix.
Updated by livdywan over 3 years ago
- Related to action #76978: How to run an openQA test in 5 minutes size:M added
Updated by okurz over 3 years ago
- Status changed from New to Workable
- Target version set to future
- Parent task set to #80142
thanks, looks good. We can consider taking this story onto our backlog as soon as the current task related to automatic tests for the current state are completed unless of course the automatic tests already reproduce the problem visible within this ticket.
Updated by ilausuch over 3 years ago
- Status changed from Workable to In Progress
Updated by ilausuch over 3 years ago
https://github.com/os-autoinst/openQA/pull/3783
still incomplete because AC3
Updated by livdywan over 3 years ago
ilausuch wrote:
https://github.com/os-autoinst/openQA/pull/3783
still incomplete because AC3
what AC3?
Updated by openqa_review over 3 years ago
- Due date set to 2021-03-26
Setting due date based on mean cycle time of SUSE QE Tools
Updated by okurz over 3 years ago
- Due date deleted (
2021-03-26) - Status changed from In Progress to Workable
- Assignee deleted (
ilausuch)
As discussed in chat. We should focus on the tasks that are in our backlog for now.
Updated by ilausuch over 3 years ago
The directories declaration was fixed on the commit https://github.com/os-autoinst/openQA/commit/8a210eeacf09df21cfe7de632cafcb9c43bcc06e
Also the permissions over these directories.
However I would like to refer to this task #90989
Updated by ilausuch over 3 years ago
- Related to action #90989: containers: Configurable workdir location in docker-compose added
Updated by livdywan over 3 years ago
ilausuch wrote:
The directories declaration was fixed on the commit https://github.com/os-autoinst/openQA/commit/8a210eeacf09df21cfe7de632cafcb9c43bcc06e
Also the permissions over these directories.However I would like to refer to this task #90989
So the way I read the commit, I think this ticket is Resolved. And #90989 would probably be an improvement.