{"action":"created","issue":{"url":"https://api.github.com/repos/coreos/etcd/issues/3246","labels_url":"https://api.github.com/repos/coreos/etcd/issues/3246/labels{/name}","comments_url":"https://api.github.com/repos/coreos/etcd/issues/3246/comments","events_url":"https://api.github.com/repos/coreos/etcd/issues/3246/events","html_url":"https://github.com/coreos/etcd/pull/3246","id":99741888,"number":3246,"title":"etcdctl/cluster_health: fix the wrong log when auth fails","user":{"login":"yichengq","id":2976232,"avatar_url":"https://avatars.githubusercontent.com/u/2976232?v=3","gravatar_id":"","url":"https://api.github.com/users/yichengq","html_url":"https://github.com/yichengq","followers_url":"https://api.github.com/users/yichengq/followers","following_url":"https://api.github.com/users/yichengq/following{/other_user}","gists_url":"https://api.github.com/users/yichengq/gists{/gist_id}","starred_url":"https://api.github.com/users/yichengq/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yichengq/subscriptions","organizations_url":"https://api.github.com/users/yichengq/orgs","repos_url":"https://api.github.com/users/yichengq/repos","events_url":"https://api.github.com/users/yichengq/events{/privacy}","received_events_url":"https://api.github.com/users/yichengq/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":7,"created_at":"2015-08-07T22:39:52Z","updated_at":"2015-08-20T18:53:56Z","closed_at":"2015-08-20T18:53:56Z","pull_request":{"url":"https://api.github.com/repos/coreos/etcd/pulls/3246","html_url":"https://github.com/coreos/etcd/pull/3246","diff_url":"https://github.com/coreos/etcd/pull/3246.diff","patch_url":"https://github.com/coreos/etcd/pull/3246.patch"},"body":"Before this PR, if auth is enabled and it doesn't have permission,\r\nit will return error:\r\n```\r\n$ ./bin/etcdctl cluster-health\r\ncluster is unhealthy\r\n```\r\n\r\nAfter this PR, it displays much clear:\r\n```\r\n$ ./bin/etcdctl cluster-health\r\ncluster may be unhealthy: failed to get key at endpoint\r\nhttp://localhost:4003 (0: Insufficient credentials () [0])\r\n```\r\n\r\nfor #3238 "},"comment":{"url":"https://api.github.com/repos/coreos/etcd/issues/comments/133117952","html_url":"https://github.com/coreos/etcd/pull/3246#issuecomment-133117952","issue_url":"https://api.github.com/repos/coreos/etcd/issues/3246","id":133117952,"user":{"login":"yichengq","id":2976232,"avatar_url":"https://avatars.githubusercontent.com/u/2976232?v=3","gravatar_id":"","url":"https://api.github.com/users/yichengq","html_url":"https://github.com/yichengq","followers_url":"https://api.github.com/users/yichengq/followers","following_url":"https://api.github.com/users/yichengq/following{/other_user}","gists_url":"https://api.github.com/users/yichengq/gists{/gist_id}","starred_url":"https://api.github.com/users/yichengq/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yichengq/subscriptions","organizations_url":"https://api.github.com/users/yichengq/orgs","repos_url":"https://api.github.com/users/yichengq/repos","events_url":"https://api.github.com/users/yichengq/events{/privacy}","received_events_url":"https://api.github.com/users/yichengq/received_events","type":"User","site_admin":false},"created_at":"2015-08-20T18:53:56Z","updated_at":"2015-08-20T18:53:56Z","body":"@xiang90 the health endpoint works at both 2.0 and 2.1 and 2.2. I will backport the new cluster-health logic to 2.1."}}