Search code examples
etcd

etcd error when trying to list machines


I am experimenting with etcd and have been able to get it running in a cluster and performing most of the expected functions. However, I am trying to execute some basic admin and monitoring requests and am getting unusual errors.

I execute the following command (in the COREOS documentation):

curl -L http://127.0.0.1:7001/v2/admin/machines

and I get the following response:

404 page not found

Note: I confirmed that is etcd working (as I can see other commands work perfectly well).

My configuration is as follows:

$ etcd --version

etcd Version: 2.3.0
Git SHA: 5e6eb7e
Go Version: go1.5.3
Go OS/Arch: darwin/amd64

Solution

  • The api you use is deprecated.

    use

    curl -L http://127.0.0.1:7001/members
    

    or

    curl -L http://127.0.0.1:4001/v2/members