Project

General

Profile

action #92893

Updated by ilausuch over 3 years ago

## 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 

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

 It could be easily fixed adding OPENQA_WEB_SOCKETS_HOST: "websockets" to the scheduler declaration 

 But then an other problems happens: 

 ~~~ text 
 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"} 
 ~~~ 

 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**: scheduler can connect to websockets without problems 

 ## Suggestions 

 * Investigate the auth method to these services. Maybe the auth method is only localhost 
 * Check that the client.ini has the correct credentials 

 ## # References 

 See the comments at #92833#note-6 

Back