Project

General

Profile

action #92833

containers: Web UI cannot connect to scheduler

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

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

0%

Estimated time:
Difficulty:

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

Related to openQA Project - action #76978: How to run an openQA test in 5 minutesBlocked2020-11-04

Related to openQA Project - action #92893: containers, docker-compose: Ensure that the scheduler can connect to the websockets containerNew2021-05-20

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

History

#1 Updated by ilausuch 2 months ago

  • Description updated (diff)

#2 Updated by ilausuch 2 months ago

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

#3 Updated by okurz 2 months 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

#4 Updated by ilausuch 2 months ago

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

#5 Updated by ilausuch 2 months ago

  • Description updated (diff)

#6 Updated by ilausuch 2 months 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

#7 Updated by ilausuch 2 months ago

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

#8 Updated by openqa_review 2 months ago

  • Due date set to 2021-06-04

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

#9 Updated by ilausuch about 2 months ago

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

#10 Updated by ilausuch about 2 months ago

  • Status changed from In Progress to Resolved

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

Also available in: Atom PDF