Project

General

Profile

Actions

action #91046

closed

CI: "webui-docker-compose" seems that eventually fails again

Added by ilausuch about 3 years ago. Updated about 3 years ago.

Status:
Resolved
Priority:
Normal
Assignee:
Category:
Regressions/Crashes
Target version:
-
Start date:
2021-04-13
Due date:
% Done:

0%

Estimated time:

Description

Motivation

In #89731 we introduced a initial webui container in charge of initializing the database. We have a test where the health check failed
https://github.com/os-autoinst/openQA/pull/3838/checks?check_run_id=2329551052

The problem is that the docker-compose exit with an error because the health check of the webuid_db_init container failed

         Name                       Command                   State                                        Ports                                 
------------------------------------------------------------------------------------------------------------------------------------------------
webui_db_1              docker-entrypoint.sh postgres    Up (healthy)     5432/tcp                                                              
webui_webui_db_init_1   sh -c chmod -R a+rwX /data ...   Up (unhealthy)   443/tcp, 80/tcp, 0.0.0.0:49153->9526/tcp, 9527/tcp, 9528/tcp, 9529/tcp
make: *** [Makefile:306: test-containers-compose] Error 1

The healthcheck is this one
https://github.com/os-autoinst/openQA/blob/abd9a2297430377cd9876c3cbcec8b2cb4302722/container/webui/docker-compose.yaml#L116

Take in consideration the DB error lines

db_1             | 2021-04-13 02:43:08.038 UTC [98] ERROR:  relation "api_keys" does not exist at character 15
db_1             | 2021-04-13 02:43:08.038 UTC [98] STATEMENT:  select * from api_keys;
db_1             | 2021-04-13 02:43:10.441 UTC [100] ERROR:  relation "dbix_class_deploymenthandler_versions" does not exist at character 24
db_1             | 2021-04-13 02:43:10.441 UTC [100] STATEMENT:  SELECT me.version FROM dbix_class_deploymenthandler_versions me ORDER BY id DESC LIMIT $1
db_1             | 2021-04-13 02:43:10.446 UTC [100] ERROR:  relation "dbix_class_deploymenthandler_versions" does not exist at character 24

Acceptance criteria

  • AC 1: Determine the cause of the failure
  • AC 2: Fix the problem

Related issues 2 (0 open2 closed)

Related to openQA Project - action #89731: containers: The deploy using docker-compose is not stable and eventually fails Resolvedilausuch2021-03-09

Actions
Related to openQA Project - action #90614: CI test webui-docker-compose failed but PR was merged anywayResolvedilausuch2021-04-012021-04-23

Actions
Actions

Also available in: Atom PDF