action #92833
closedcontainers: Web UI cannot connect to scheduler
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¶
- See the comments at #76978#note-37
Updated by ilausuch over 3 years ago
- Related to action #76978: How to run an openQA test in 5 minutes size:M added
Updated by okurz over 3 years ago
- Status changed from New to Workable
- Target version set to Ready
- See the comments at https://progress.opensuse.org/issues/76978#note-37
please reference tickets like 76978#note-37
to show up like this #76978#note-37
Updated by ilausuch over 3 years ago
- Description updated (diff)
- Status changed from Workable to In Progress
- Assignee set to ilausuch
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
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
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
Updated by ilausuch over 3 years ago
- Related to action #93177: containers: webui doesn't has the credentials to connect to the scheduler added
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