{"action":"created","issue":{"url":"https://api.github.com/repos/coreos/etcd/issues/2376","labels_url":"https://api.github.com/repos/coreos/etcd/issues/2376/labels{/name}","comments_url":"https://api.github.com/repos/coreos/etcd/issues/2376/comments","events_url":"https://api.github.com/repos/coreos/etcd/issues/2376/events","html_url":"https://github.com/coreos/etcd/issues/2376","id":58972103,"number":2376,"title":"etcdctl peers flag is ignored if --no-sync is not used.","user":{"login":"agokjr","id":692138,"avatar_url":"https://avatars.githubusercontent.com/u/692138?v=3","gravatar_id":"","url":"https://api.github.com/users/agokjr","html_url":"https://github.com/agokjr","followers_url":"https://api.github.com/users/agokjr/followers","following_url":"https://api.github.com/users/agokjr/following{/other_user}","gists_url":"https://api.github.com/users/agokjr/gists{/gist_id}","starred_url":"https://api.github.com/users/agokjr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/agokjr/subscriptions","organizations_url":"https://api.github.com/users/agokjr/orgs","repos_url":"https://api.github.com/users/agokjr/repos","events_url":"https://api.github.com/users/agokjr/events{/privacy}","received_events_url":"https://api.github.com/users/agokjr/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-02-25T21:23:17Z","updated_at":"2015-02-27T17:31:49Z","closed_at":null,"body":"ETCDCTL v2.0.3\r\n\r\nSetting ETCDCTL_PEERS or --peers to external ip that matches the cert generated via etcd-ca tool.\r\n```\r\nexport ETCDCTL_PEERS=https://xxx.xxx.xxx.xxx:4001\r\n```\r\nI noticed that I instead of the expected external https end point I am getting the following.\r\n\r\n```\r\nCluster-Endpoints: http://127.0.0.1:2379, http://127.0.0.1:4001, http://localhost:2379, http://localhost:2379, http://localhost:4001, http://localhost:4001, https://127.0.0.1:2379, https://127.0.0.1:4001\r\nCurl-Example: curl -X GET http://127.0.0.1:2379/v2/keys/?consistent=true&recursive=false&sorted=false\r\nCurl-Example: curl -X GET http://127.0.0.1:2379/v2/keys/?consistent=true&recursive=false&sorted=false\r\nCurl-Example: curl -X GET http://127.0.0.1:4001/v2/keys/?consistent=true&recursive=false&sorted=false\r\nCurl-Example: curl -X GET http://localhost:2379/v2/keys/?consistent=true&recursive=false&sorted=false\r\nCurl-Example: curl -X GET http://localhost:2379/v2/keys/?consistent=true&recursive=false&sorted=false\r\nCurl-Example: curl -X GET http://localhost:4001/v2/keys/?consistent=true&recursive=false&sorted=false\r\n```\r\n\r\nIt does not look like the ETCDCTL_NO_SYNC flag works.\r\n\r\nThanks"},"comment":{"url":"https://api.github.com/repos/coreos/etcd/issues/comments/76435852","html_url":"https://github.com/coreos/etcd/issues/2376#issuecomment-76435852","issue_url":"https://api.github.com/repos/coreos/etcd/issues/2376","id":76435852,"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-02-27T17:31:49Z","updated_at":"2015-02-27T17:31:49Z","body":"A is the sync part. It grabs the advertise client urls from the cluster, and uses these urls to do the requests. (i recommend that you set advertise-client-urls correctly)\r\n\r\netcdctl peers flag is not ignored. It is used in the sync part."}}