action #81118

coordination #80142: [saga][epic] Scale out: Redundant/load-balancing deployments of openQA, easy containers, containers on kubernetes

coordination #43706: [epic] Generate "download&use" docker image of openQA for SUSE QA

automatic container tests for os-autoinst

Added by okurz 9 months ago. Updated 6 months ago.

Feature requests
Target version:
Start date:
Due date:
% Done:


Estimated time:


#1 Updated by okurz 9 months ago

  • Tracker changed from coordination to action

cdywan, ilausuch and okurz discussed the topic of container testing again today in daily meeting 2020-12-16. As we did not succeed with a plain test script within openQA context I tried to explore alternatives and research about "state of art" myself.

Putting openQA itself into the game is a nice idea but maybe we can come up with something simpler. I am trying in os-autoinst where I added Dockerfile's recently but the concept can be the same. I created a file tools/test_containers with content:


set -euo pipefail

for i in container/*/Dockerfile*; do 
    $cre build -t $tag -f $i $(dirname $i)/
    $cre run --rm -it $tag --help

this should try to build and run every container we have in our corresponding repo each. We can set the variable $cre (CRE For "container runtime environment"), e.g. to select docker or podman. Following man podman for rootless I did locally

sudo usermod --add-subuids 10000-75535 $USER
sudo usermod --add-subgids 10000-75535 $USER

but still get ERRO[0006] Error while applying layer: ApplyLayer exit status 1 stdout: stderr: there might not be enough IDs available in the namespace (requested 0:15 for /etc/shadow): lchown /etc/shadow: invalid argument. Likely the same problem ilausuch had. Based on docker I can succeed in both a local env as well as github actions.

I created exploring the concept.

A local run of tools/test_containers runs fine but of course takes some time to download and install a similar set of packages repeatedly. Also we have to keep in mind that our Dockerfiles are based on published openSUSE packages so we do not test the state of the source repo except for the Dockerfile based container image construction itself.

I am thinking that for now for PR checks I would just include static checks of Dockerfiles in both os-autoinst as well as openQA. The container build+run tests I would only call in master due to the increased runtime. Maybe we can reuse the zypper package cache though.

#2 Updated by openqa_review 9 months ago

  • Due date set to 2020-12-31

Setting due date based on mean cycle time of SUSE QE Tools

#3 Updated by okurz 9 months ago

  • Status changed from In Progress to Feedback

#4 Updated by cdywan 9 months ago

  • Due date changed from 2020-12-31 to 2021-01-08

Bumping the Due date for now. Maybe we can discuss what we have, and what we still want later this week.

#5 Updated by okurz 8 months ago

  • Status changed from Feedback to Resolved shows successful runs, e.g. showing the "ci_extended" tests with building and executing the container images

#6 Updated by okurz 6 months ago

  • Due date deleted (2021-01-08)

Also available in: Atom PDF