jplana / python-etcd

A python client for etcd
Other
522 stars 210 forks source link

get_machines during connection attempt fails #247

Open jbrendel opened 7 years ago

jbrendel commented 7 years ago

I'm running a recent 3.* image of etcd in a container. I then try to connect to this instance, like so:

from etcd import client
c = client.Client(host="127.0.0.1", port=2379)

This results in:

HTTPError: 404 Client Error: Not Found

The traceback reveals that this is thrown here:

File "/home/jbrendel/projects/pani/local/lib/python2.7/site-packages/etcd/server_ops.py", line 47, in get_machines
  response = self.client.send(2, 'get', fq_path, allow_reconnect=False)

Adding a print statement there shows that it tries to read /keys/_etcd/machines

My etcd version doesn't have this key, though.

What seems to be the problem?

manishshambu commented 6 years ago

I'm facing the same issue. Any luck with it?