|
|
[问题] aim SDK, 连不上 rpc 时会报错, 这不能达到无感知
|
|
|
|
|
|
|
|
|
报错大概长这样:
|
|
|
```
|
|
|
File "/usr/local/lib/python3.8/dist-packages/aim/cli/convert/commands.py", line 22, in convert
|
|
|
repo_inst = Repo.from_path(repo_path)
|
|
|
File "/usr/local/lib/python3.8/dist-packages/aim/sdk/repo.py", line 209, in from_path
|
|
|
repo = Repo(path, read_only=read_only, init=init)
|
|
|
File "/usr/local/lib/python3.8/dist-packages/aim/sdk/repo.py", line 114, in __init__
|
|
|
self._check_remote_version_compatibility()
|
|
|
File "/usr/local/lib/python3.8/dist-packages/aim/sdk/repo.py", line 269, in _check_remote_version_compatibility
|
|
|
remote_version = self._client.get_version()
|
|
|
File "/usr/local/lib/python3.8/dist-packages/aim/ext/transport/client.py", line 69, in get_version
|
|
|
response = self.remote.get_version(request)
|
|
|
File "/usr/local/lib/python3.8/dist-packages/grpc/_channel.py", line 946, in __call__
|
|
|
return _end_unary_response_blocking(state, call, False, None)
|
|
|
File "/usr/local/lib/python3.8/dist-packages/grpc/_channel.py", line 849, in _end_unary_response_blocking
|
|
|
raise _InactiveRpcError(state)
|
|
|
grpc._channel._InactiveRpcError: <_InactiveRpcError of RPC that terminated with:
|
|
|
status = StatusCode.UNAVAILABLE
|
|
|
details = "DNS resolution failed for aimstack.apulis.svc.cluster.local:9000: C-ares status is not ARES_SUCCESS qtype=A name=aimstack.apulis.svc.cluster.local is_balancer=0: Domain name not found"
|
|
|
debug_error_string = "UNKNOWN:DNS resolution failed for aimstack.apulis.svc.cluster.local:9000: C-ares status is not ARES_SUCCESS qtype=A name=aimstack.apulis.svc.cluster.local is_balancer=0: Domain name not found {created_time:"2022-11-11T09:04:54.073735314+00:00", grpc_status:14}"
|
|
|
>
|
|
|
|
|
|
``` |