We're updating the issue view to help you get more done. 

wazo-call-logd: impossible to GET any CDR on slower machines

Description

Given I installed Wazo Platform on a slow machine (more precisely: wazo-auth takes > 2seconds to generate a token)
Given I placed a call
When I list the CDR
Then I don't see the call I placed
Then I see in the `/var/log/wazo-call-logd.log` a lot of errors like
```
2020-09-14 08:40:13,026 [2292] (ERROR) (wazo_call_logd.bus_client): Failed to generate call log for linked id="1600065591.135"
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/wazo_call_logd/bus_client.py", line 26, in on_message
self._call_logs_manager.generate_from_linked_id(linked_id)
File "/usr/lib/python3/dist-packages/wazo_call_logd/manager.py", line 51, in generate_from_linked_id
self._generate_from_cels(cels)
File "/usr/lib/python3/dist-packages/wazo_call_logd/manager.py", line 54, in _generate_from_cels
call_logs = self.generator.from_cel(cels)
File "/usr/lib/python3/dist-packages/wazo_call_logd/generator.py", line 30, in from_cel
new_call_logs = self.call_logs_from_cel(cels)
File "/usr/lib/python3/dist-packages/wazo_call_logd/generator.py", line 44, in call_logs_from_cel
call_log = interpretor.interpret_cels(cels_by_call, call_log)
File "/usr/lib/python3/dist-packages/wazo_call_logd/cel_interpretor.py", line 86, in interpret_cels
call_log = self.caller_cel_interpretor.interpret_cels(caller_cels, call_log)
File "/usr/lib/python3/dist-packages/wazo_call_logd/cel_interpretor.py", line 113, in interpret_cels
call_log = self.interpret_cel(cel, call_log)
File "/usr/lib/python3/dist-packages/wazo_call_logd/cel_interpretor.py", line 120, in interpret_cel
return interpret_function(cel, call)
File "/usr/lib/python3/dist-packages/wazo_call_logd/cel_interpretor.py", line 149, in interpret_chan_start
participant = find_participant(self._confd, cel.channame)
File "/usr/lib/python3/dist-packages/wazo_call_logd/cel_interpretor.py", line 36, in find_participant
lines = confd.lines.list(name=line_name, recurse=True)['items']
File "/usr/lib/python3/dist-packages/wazo_confd_client/crud.py", line 70, in list
response = self.session.get(url, headers=headers, params=kwargs)
File "/usr/lib/python3/dist-packages/wazo_confd_client/session.py", line 55, in get
self.check_response(response, check_response)
File "/usr/lib/python3/dist-packages/wazo_confd_client/session.py", line 33, in check_response
response.raise_for_status()
File "/usr/lib/python3/dist-packages/requests/models.py", line 940, in raise_for_status
raise HTTPError(http_error_msg, response=self)
requests.exceptions.HTTPError: 401 Client Error: for url: http://localhost:9486/1.1/lines?name=XXX&recurse=True
```

Expected: I can see the call in the list of CDR

Technical details: the timeout for wazo-auth was 2 seconds.

Environment

None
Done

Assignee

Sébastien Duthil

Reporter

Sébastien Duthil

Approvers

None

Pair

None

Sprint

None

Fix versions

Priority

Medium
Configure