Project

General

Profile

Actions

action #92833

closed

containers: Web UI cannot connect to scheduler

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

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

0%

Estimated time:

Description

Motivation

Trying to complete the task #76978 I found a problem in the webui container. It cannot connect to the scheduler and the jobs still unscheduled

webui_2          | [warn] Unable to wakeup scheduler: Connection refused

This happens when we launch a web UI openQA using the docker-compose, and try to run a job (using clone_job)

Acceptance Criteria

  • AC 1: webui can connect to the scheduler

References


Related issues 3 (1 open2 closed)

Related to openQA Project (public) - action #76978: How to run an openQA test in 5 minutes size:MResolvedjbaier_cz2020-11-04

Actions
Related to openQA Project (public) - action #92893: containers, docker-compose: Ensure that the scheduler can connect to the websockets container size:MResolvedmkittler2021-05-20

Actions
Related to openQA Project (public) - action #93177: containers: webui doesn't has the credentials to connect to the schedulerNew2021-05-27

Actions
Actions #1

Updated by ilausuch over 3 years ago

  • Description updated (diff)
Actions #2

Updated by ilausuch over 3 years ago

  • Related to action #76978: How to run an openQA test in 5 minutes size:M added
Actions #3

Updated by okurz over 3 years ago

  • Status changed from New to Workable
  • Target version set to Ready

please reference tickets like 76978#note-37 to show up like this #76978#note-37

Actions #4

Updated by ilausuch over 3 years ago

  • Description updated (diff)
  • Status changed from Workable to In Progress
  • Assignee set to ilausuch
Actions #5

Updated by ilausuch over 3 years ago

  • Description updated (diff)
Actions #6

Updated by ilausuch over 3 years ago

I created a PR that solves this problem

https://github.com/os-autoinst/openQA/pull/3915

But scheduler has a strongly related problem. tries to connect to the websockets at localhost

scheduler_1      | -- Blocking request (http://127.0.0.1:9527/api/send_job)
scheduler_1      | -- Connect 41d600104970be636ece6296a21d1bdc (http://127.0.0.1:9527)

I tried fixing that adding OPENQA_WEB_SOCKETS_HOST: "websockets" to the scheduler declaration and solves the problem but then fails on as a invalid access

scheduler_1      | -- Client <<< Server (http://websockets:9527/api/send_job)
scheduler_1      | HTTP/1.1 403 Forbidden\x0d
scheduler_1      | Content-Length: 26\x0d
scheduler_1      | Server: Mojolicious (Perl)\x0d
scheduler_1      | Date: Thu, 20 May 2021 10:24:45 GMT\x0d
scheduler_1      | Content-Type: application/json;charset=UTF-8\x0d
scheduler_1      | \x0d
scheduler_1      | {"error":"Not authorized"}

Therefore I created a new ticket for this #92893

Actions #7

Updated by ilausuch over 3 years ago

  • Related to action #92893: containers, docker-compose: Ensure that the scheduler can connect to the websockets container size:M added
Actions #8

Updated by openqa_review over 3 years ago

  • Due date set to 2021-06-04

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

Actions #9

Updated by ilausuch over 3 years ago

  • Related to action #93177: containers: webui doesn't has the credentials to connect to the scheduler added
Actions #10

Updated by ilausuch over 3 years ago

  • Status changed from In Progress to Resolved

The PR https://github.com/os-autoinst/openQA/pull/3915 Is merged, resolving this ticket

Actions

Also available in: Atom PDF