Project

General

Profile

Actions

action #95768

open

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 over 2 years ago. Updated over 2 years ago.

Status:
New
Priority:
Low
Assignee:
-
Category:
Regressions/Crashes
Target version:
Start date:
2021-07-21
Due date:
% Done:

0%

Estimated time:

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
Actions #1

Updated by ilausuch over 2 years 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.

Actions #2

Updated by okurz over 2 years ago

  • Priority changed from Normal to Low
  • Target version set to Ready
Actions #3

Updated by okurz over 2 years ago

  • Target version changed from Ready to future
Actions

Also available in: Atom PDF