0

I'm using the this module [1]: https://github.com/kragniz/python-etcd3 to communicate with etcdv3. I have created all the necessary certs and tested client secure connection with curl. However atempting a simple get operation fails. Code snippet and exception below.

import etcd3

ca='/Users/PKI/etcd/ca.pem'
cert='/Users/PKI/etcd/client.pem'
key='/Users/PKI/etcd/client-key.pem'

etcd = etcd3.client(ca_cert=ca, cert_cert=cert, cert_key=key)

etcd.get('foo')


grpc._channel._InactiveRpcError: <_InactiveRpcError of RPC that terminated with:
    status = StatusCode.UNAVAILABLE
    details = "failed to connect to all addresses"
    debug_error_string = "{"created":"@1594500226.366466000","description":"Failed to pick subchannel","file":"src/core/ext/filters/client_channel/client_channel.cc","file_line":3948,"referenced_errors":[{"created":"@1594500226.366461000","description":"failed to connect to all addresses","file":"src/core/ext/filters/client_channel/lb_policy/pick_first/pick_first.cc","file_line":394,"grpc_status":14}]}"
>
> /usr/local/lib/python3.8/site-packages/etcd3/client.py(46)handler()
-> return f(*args, **kwargs)

I haven't done much with grpc so I'm not sure if there are options I should pass to init the etcd3 client.

dcrearer
  • 1,972
  • 4
  • 24
  • 48
  • I'm facing the same problem when using iroha-python (https://github.com/hyperledger/iroha-python). The problem is when server is not accesible or proper process is not running at the server. – baziorek Dec 07 '20 at 11:13

0 Answers0