Fix grpc errors in uncloud host
'NoneType' object has no attribute 'key'
Traceback (most recent call last):
File "./bin/../scripts/uncloud", line 66, in <module>
main(**arguments)
File "/home/nico/vcs/uncloud/uncloud/host/main.py", line 76, in main
maintenance(host.key)
AttributeError: 'NoneType' object has no attribute 'key'
Exception in thread etcd3_watch_7febb8c41b20:
Traceback (most recent call last):
File "/usr/lib/python3.8/threading.py", line 932, in _bootstrap_inner
self.run()
File "/usr/lib/python3.8/threading.py", line 870, in run
self._target(*self._args, **self._kwargs)
File "/home/nico/vcs/uncloud/venv/lib/python3.8/site-packages/etcd3-0.11.1-py3.8.egg/etcd3/watch.py", line 123, in _run
response_iter = self._watch_stub.Watch(
File "/home/nico/vcs/uncloud/venv/lib/python3.8/site-packages/grpcio-1.26.0-py3.8-linux-x86_64.egg/grpc/_channel.py", line 1080, in __call__
call = self._managed_call(
File "/home/nico/vcs/uncloud/venv/lib/python3.8/site-packages/grpcio-1.26.0-py3.8-linux-x86_64.egg/grpc/_channel.py", line 1169, in create
call = state.channel.integrated_call(flags, method, host, deadline,
File "src/python/grpcio/grpc/_cython/_cygrpc/channel.pyx.pxi", line 478, in grpc._cython.cygrpc.Channel.integrated_call
File "src/python/grpcio/grpc/_cython/_cygrpc/channel.pyx.pxi", line 296, in grpc._cython.cygrpc._integrated_call
File "src/python/grpcio/grpc/_cython/_cygrpc/channel.pyx.pxi", line 222, in grpc._cython.cygrpc._call
File "src/python/grpcio/grpc/_cython/_cygrpc/channel.pyx.pxi", line 262, in grpc._cython.cygrpc._call
ValueError: Cannot invoke RPC: Channel closed!
cc @ahmedbilal