Project

General

Profile

action #95768

containers: the single_container_test shows this error "Permission denied" when tries to create the directory "/var/lib/openqa/share/factory/tmp"

Added by ilausuch 2 months ago. Updated about 2 months ago.

Status:
New
Priority:
Low
Assignee:
-
Category:
Concrete Bugs
Target version:
Start date:
2021-07-21
Due date:
% Done:

0%

Estimated time:
Difficulty:

Description

Motivation

Thanks to a previous issue #95179 we could see in the logs that the webui has permissions problems on the "factory" directory
e.g. https://openqa.opensuse.org/tests/1830297#step/single_container_webui/107

The reason is because the directory has the root user (in the container) but the webui is executed with the geekotest user.

Acceptance Criteria

  • AC 1: webui can create the needed directories in /var/lib/openqa/share/factory

Suggestion

  • Currently if the container doesn't fail the logs are not be printed, so print "docker logs openqa_webui" the logs before destroy the container
  • Check if there are other directories that require to be created from the webui and can be created

History

#1 Updated by ilausuch 2 months ago

  • Description updated (diff)

One suggested solution was this: https://github.com/os-autoinst/os-autoinst-distri-openQA/pull/71 but it was rejected because rwx permissions for every user is too open.
So I created this new PR https://github.com/os-autoinst/openQA/pull/4056 that after some tests is failing on multiple_container_webui test (https://openqa.opensuse.org/tests/1848766#step/multiple_container_webui/1) but I still don't have the reason.

#2 Updated by okurz 2 months ago

  • Priority changed from Normal to Low
  • Target version set to Ready

#3 Updated by okurz about 2 months ago

  • Target version changed from Ready to future

Also available in: Atom PDF