Agent doesn't log any errors when it can't connect to Rails
MR: Pending
Description
Currently, when there is Rails outage, the agentk
doesn't log any issues.
kas
logs some connection issues but only as a debug level logs.
Acceptance Criteria
- Investigate if it is possible for agentk to identify Rails outage
- Capture such errors if possible/available and log them within remote_dev module for easier debugging
Technical Requirements
- Same as acceptance criteria
Design Requirements
- NA
Impact Assessment
- NA
Original Description
Currently, when there is Rails outage, the agentk
doesn't log any issues.
kas
logs some connection issues but only as a debug level logs.
Reproduce with
- turn of rails with
gdk stop rails-web
- kas starts logging debug messages like
{"level":"debug","time":"2023-04-25T14:46:27.944+0200","msg":"gRPC -> HTTP: SendMsg(HttpResponse_Data) failed","grpc_service":"gitlab.agent.gitlab_access.rpc.GitlabAccess","grpc_method":"MakeRequest","error":"rpc error: code = Canceled desc = context canceled"}
{"level":"debug","time":"2023-04-25T14:46:37.948+0200","msg":"Handling POST /","grpc_service":"gitlab.agent.gitlab_access.rpc.GitlabAccess","grpc_method":"MakeRequest"}
-
agentk
keeps logging that it starts a partial update
{"level":"info","time":"2023-04-25T14:46:26.304+0200","msg":"starting partial update","mod_name":"remote_development","agent_id":2}