{"action":"created","comment":{"url":"https://api.github.com/repos/coreos/etcd/pulls/comments/33840244","id":33840244,"diff_hunk":"@@ -109,10 +109,14 @@ func Main() {\n \t\tswitch err {\n \t\tcase discovery.ErrDuplicateID:\n \t\t\tplog.Errorf(\"member %q has previously registered with discovery service token (%s).\", cfg.name, cfg.durl)\n-\t\t\tplog.Errorf(\"But etcd could not find vaild cluster configuration in the given data dir (%s).\", cfg.dir)\n+\t\t\tplog.Errorf(\"But etcd could not find valid cluster configuration in the given data dir (%s).\", cfg.dir)\n \t\t\tplog.Infof(\"Please check the given data dir path if the previous bootstrap succeeded\")\n \t\t\tplog.Infof(\"or use a new discovery token if the previous bootstrap failed.\")\n \t\t\tos.Exit(1)\n+\t\tcase discovery.ErrDuplicateName:\n+\t\t\tplog.Errorf(\"member with duplicated name has registered with discovery service token(%s).\", cfg.durl)\n+\t\t\tplog.Errorf(\"please check (cURL) the discovery token for more information.\")","path":"etcdmain/etcd.go","position":11,"original_position":11,"commit_id":"c83f2dc597956e26d01d4244c771e8431b21b87f","original_commit_id":"c83f2dc597956e26d01d4244c771e8431b21b87f","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},"body":"give the full command line `curl http://xxxx` here for clarity?","created_at":"2015-07-03T04:40:19Z","updated_at":"2015-07-03T04:40:19Z","html_url":"https://github.com/coreos/etcd/pull/3094#discussion_r33840244","pull_request_url":"https://api.github.com/repos/coreos/etcd/pulls/3094","_links":{"self":{"href":"https://api.github.com/repos/coreos/etcd/pulls/comments/33840244"},"html":{"href":"https://github.com/coreos/etcd/pull/3094#discussion_r33840244"},"pull_request":{"href":"https://api.github.com/repos/coreos/etcd/pulls/3094"}}},"pull_request":{"url":"https://api.github.com/repos/coreos/etcd/pulls/3094","id":39139475,"html_url":"https://github.com/coreos/etcd/pull/3094","diff_url":"https://github.com/coreos/etcd/pull/3094.diff","patch_url":"https://github.com/coreos/etcd/pull/3094.patch","issue_url":"https://api.github.com/repos/coreos/etcd/issues/3094","number":3094,"state":"open","locked":false,"title":"detect duplicate names when using discovery bootstrap","user":{"login":"xiang90","id":4479947,"avatar_url":"https://avatars.githubusercontent.com/u/4479947?v=3","gravatar_id":"","url":"https://api.github.com/users/xiang90","html_url":"https://github.com/xiang90","followers_url":"https://api.github.com/users/xiang90/followers","following_url":"https://api.github.com/users/xiang90/following{/other_user}","gists_url":"https://api.github.com/users/xiang90/gists{/gist_id}","starred_url":"https://api.github.com/users/xiang90/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/xiang90/subscriptions","organizations_url":"https://api.github.com/users/xiang90/orgs","repos_url":"https://api.github.com/users/xiang90/repos","events_url":"https://api.github.com/users/xiang90/events{/privacy}","received_events_url":"https://api.github.com/users/xiang90/received_events","type":"User","site_admin":false},"body":"After the fix, the duplicate name case prints out:\r\n```\r\n18:13:24 etcdmain: member with duplicated name has registered with discovery service token(https://discovery.etcd.io/9ade3c2e1c8b0f48ceca974adab1d9af).\r\n18:13:24 etcdmain: please check (cURL) the discovery token for more information.\r\netcdmain: please do not reuse the discovery token and generate a new one to bootstrap the cluster.\r\n```\r\nand exits.\r\n\r\ncurl https://discovery.etcd.io/9ade3c2e1c8b0f48ceca974adab1d9af\r\n```\r\n{\"action\":\"get\",\"node\":{\"key\":\"/_etcd/registry/9ade3c2e1c8b0f48ceca974adab1d9af\",\"dir\":true,\"nodes\":[{\"key\":\"/_etcd/registry/9ade3c2e1c8b0f48ceca974adab1d9af/95c7ef0fcbe9f0b8\",\"value\":\"infra3=http://127.0.0.1:7003\",\"modifiedIndex\":658514690,\"createdIndex\":658514690},{\"key\":\"/_etcd/registry/9ade3c2e1c8b0f48ceca974adab1d9af/4d59f8148bb377e2\",\"value\":\"infra1=http://127.0.0.1:7002\",\"modifiedIndex\":658514691,\"createdIndex\":658514691},{\"key\":\"/_etcd/registry/9ade3c2e1c8b0f48ceca974adab1d9af/2546639afa13373f\",\"value\":\"infra1=http://127.0.0.1:7001\",\"modifiedIndex\":658514692,\"createdIndex\":658514692}],\"modifiedIndex\":658514676,\"createdIndex\":658514676}}\r\n```\r\n\r\nThere are two `infra1` in the list.\r\n\r\nFix #2889","created_at":"2015-07-03T01:20:15Z","updated_at":"2015-07-03T04:40:19Z","closed_at":null,"merged_at":null,"merge_commit_sha":"c43ee00d0f9ae491db5f33bc1bbdd97c5f6b5ba4","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/coreos/etcd/pulls/3094/commits","review_comments_url":"https://api.github.com/repos/coreos/etcd/pulls/3094/comments","review_comment_url":"https://api.github.com/repos/coreos/etcd/pulls/comments{/number}","comments_url":"https://api.github.com/repos/coreos/etcd/issues/3094/comments","statuses_url":"https://api.github.com/repos/coreos/etcd/statuses/c83f2dc597956e26d01d4244c771e8431b21b87f","head":{"label":"xiang90:duplicate","ref":"duplicate","sha":"c83f2dc597956e26d01d4244c771e8431b21b87f","user":{"login":"xiang90","id":4479947,"avatar_url":"https://avatars.githubusercontent.com/u/4479947?v=3","gravatar_id":"","url":"https://api.github.com/users/xiang90","html_url":"https://github.com/xiang90","followers_url":"https://api.github.com/users/xiang90/followers","following_url":"https://api.github.com/users/xiang90/following{/other_user}","gists_url":"https://api.github.com/users/xiang90/gists{/gist_id}","starred_url":"https://api.github.com/users/xiang90/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/xiang90/subscriptions","organizations_url":"https://api.github.com/users/xiang90/orgs","repos_url":"https://api.github.com/users/xiang90/repos","events_url":"https://api.github.com/users/xiang90/events{/privacy}","received_events_url":"https://api.github.com/users/xiang90/received_events","type":"User","site_admin":false},"repo":{"id":11245678,"name":"etcd","full_name":"xiang90/etcd","owner":{"login":"xiang90","id":4479947,"avatar_url":"https://avatars.githubusercontent.com/u/4479947?v=3","gravatar_id":"","url":"https://api.github.com/users/xiang90","html_url":"https://github.com/xiang90","followers_url":"https://api.github.com/users/xiang90/followers","following_url":"https://api.github.com/users/xiang90/following{/other_user}","gists_url":"https://api.github.com/users/xiang90/gists{/gist_id}","starred_url":"https://api.github.com/users/xiang90/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/xiang90/subscriptions","organizations_url":"https://api.github.com/users/xiang90/orgs","repos_url":"https://api.github.com/users/xiang90/repos","events_url":"https://api.github.com/users/xiang90/events{/privacy}","received_events_url":"https://api.github.com/users/xiang90/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/xiang90/etcd","description":null,"fork":true,"url":"https://api.github.com/repos/xiang90/etcd","forks_url":"https://api.github.com/repos/xiang90/etcd/forks","keys_url":"https://api.github.com/repos/xiang90/etcd/keys{/key_id}","collaborators_url":"https://api.github.com/repos/xiang90/etcd/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/xiang90/etcd/teams","hooks_url":"https://api.github.com/repos/xiang90/etcd/hooks","issue_events_url":"https://api.github.com/repos/xiang90/etcd/issues/events{/number}","events_url":"https://api.github.com/repos/xiang90/etcd/events","assignees_url":"https://api.github.com/repos/xiang90/etcd/assignees{/user}","branches_url":"https://api.github.com/repos/xiang90/etcd/branches{/branch}","tags_url":"https://api.github.com/repos/xiang90/etcd/tags","blobs_url":"https://api.github.com/repos/xiang90/etcd/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/xiang90/etcd/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/xiang90/etcd/git/refs{/sha}","trees_url":"https://api.github.com/repos/xiang90/etcd/git/trees{/sha}","statuses_url":"https://api.github.com/repos/xiang90/etcd/statuses/{sha}","languages_url":"https://api.github.com/repos/xiang90/etcd/languages","stargazers_url":"https://api.github.com/repos/xiang90/etcd/stargazers","contributors_url":"https://api.github.com/repos/xiang90/etcd/contributors","subscribers_url":"https://api.github.com/repos/xiang90/etcd/subscribers","subscription_url":"https://api.github.com/repos/xiang90/etcd/subscription","commits_url":"https://api.github.com/repos/xiang90/etcd/commits{/sha}","git_commits_url":"https://api.github.com/repos/xiang90/etcd/git/commits{/sha}","comments_url":"https://api.github.com/repos/xiang90/etcd/comments{/number}","issue_comment_url":"https://api.github.com/repos/xiang90/etcd/issues/comments{/number}","contents_url":"https://api.github.com/repos/xiang90/etcd/contents/{+path}","compare_url":"https://api.github.com/repos/xiang90/etcd/compare/{base}...{head}","merges_url":"https://api.github.com/repos/xiang90/etcd/merges","archive_url":"https://api.github.com/repos/xiang90/etcd/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/xiang90/etcd/downloads","issues_url":"https://api.github.com/repos/xiang90/etcd/issues{/number}","pulls_url":"https://api.github.com/repos/xiang90/etcd/pulls{/number}","milestones_url":"https://api.github.com/repos/xiang90/etcd/milestones{/number}","notifications_url":"https://api.github.com/repos/xiang90/etcd/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/xiang90/etcd/labels{/name}","releases_url":"https://api.github.com/repos/xiang90/etcd/releases{/id}","created_at":"2013-07-08T04:17:14Z","updated_at":"2015-06-09T18:06:32Z","pushed_at":"2015-07-03T01:16:56Z","git_url":"git://github.com/xiang90/etcd.git","ssh_url":"git@github.com:xiang90/etcd.git","clone_url":"https://github.com/xiang90/etcd.git","svn_url":"https://github.com/xiang90/etcd","homepage":null,"size":20067,"stargazers_count":3,"watchers_count":3,"language":"Go","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":3,"default_branch":"master"}},"base":{"label":"coreos:dev-2.2","ref":"dev-2.2","sha":"e5b248fb115e06ef34ad9a9afddd2cff7d967e4e","user":{"login":"coreos","id":3730757,"avatar_url":"https://avatars.githubusercontent.com/u/3730757?v=3","gravatar_id":"","url":"https://api.github.com/users/coreos","html_url":"https://github.com/coreos","followers_url":"https://api.github.com/users/coreos/followers","following_url":"https://api.github.com/users/coreos/following{/other_user}","gists_url":"https://api.github.com/users/coreos/gists{/gist_id}","starred_url":"https://api.github.com/users/coreos/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/coreos/subscriptions","organizations_url":"https://api.github.com/users/coreos/orgs","repos_url":"https://api.github.com/users/coreos/repos","events_url":"https://api.github.com/users/coreos/events{/privacy}","received_events_url":"https://api.github.com/users/coreos/received_events","type":"Organization","site_admin":false},"repo":{"id":11225014,"name":"etcd","full_name":"coreos/etcd","owner":{"login":"coreos","id":3730757,"avatar_url":"https://avatars.githubusercontent.com/u/3730757?v=3","gravatar_id":"","url":"https://api.github.com/users/coreos","html_url":"https://github.com/coreos","followers_url":"https://api.github.com/users/coreos/followers","following_url":"https://api.github.com/users/coreos/following{/other_user}","gists_url":"https://api.github.com/users/coreos/gists{/gist_id}","starred_url":"https://api.github.com/users/coreos/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/coreos/subscriptions","organizations_url":"https://api.github.com/users/coreos/orgs","repos_url":"https://api.github.com/users/coreos/repos","events_url":"https://api.github.com/users/coreos/events{/privacy}","received_events_url":"https://api.github.com/users/coreos/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/coreos/etcd","description":"A highly-available key-value store for shared configuration and service discovery","fork":false,"url":"https://api.github.com/repos/coreos/etcd","forks_url":"https://api.github.com/repos/coreos/etcd/forks","keys_url":"https://api.github.com/repos/coreos/etcd/keys{/key_id}","collaborators_url":"https://api.github.com/repos/coreos/etcd/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/coreos/etcd/teams","hooks_url":"https://api.github.com/repos/coreos/etcd/hooks","issue_events_url":"https://api.github.com/repos/coreos/etcd/issues/events{/number}","events_url":"https://api.github.com/repos/coreos/etcd/events","assignees_url":"https://api.github.com/repos/coreos/etcd/assignees{/user}","branches_url":"https://api.github.com/repos/coreos/etcd/branches{/branch}","tags_url":"https://api.github.com/repos/coreos/etcd/tags","blobs_url":"https://api.github.com/repos/coreos/etcd/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/coreos/etcd/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/coreos/etcd/git/refs{/sha}","trees_url":"https://api.github.com/repos/coreos/etcd/git/trees{/sha}","statuses_url":"https://api.github.com/repos/coreos/etcd/statuses/{sha}","languages_url":"https://api.github.com/repos/coreos/etcd/languages","stargazers_url":"https://api.github.com/repos/coreos/etcd/stargazers","contributors_url":"https://api.github.com/repos/coreos/etcd/contributors","subscribers_url":"https://api.github.com/repos/coreos/etcd/subscribers","subscription_url":"https://api.github.com/repos/coreos/etcd/subscription","commits_url":"https://api.github.com/repos/coreos/etcd/commits{/sha}","git_commits_url":"https://api.github.com/repos/coreos/etcd/git/commits{/sha}","comments_url":"https://api.github.com/repos/coreos/etcd/comments{/number}","issue_comment_url":"https://api.github.com/repos/coreos/etcd/issues/comments{/number}","contents_url":"https://api.github.com/repos/coreos/etcd/contents/{+path}","compare_url":"https://api.github.com/repos/coreos/etcd/compare/{base}...{head}","merges_url":"https://api.github.com/repos/coreos/etcd/merges","archive_url":"https://api.github.com/repos/coreos/etcd/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/coreos/etcd/downloads","issues_url":"https://api.github.com/repos/coreos/etcd/issues{/number}","pulls_url":"https://api.github.com/repos/coreos/etcd/pulls{/number}","milestones_url":"https://api.github.com/repos/coreos/etcd/milestones{/number}","notifications_url":"https://api.github.com/repos/coreos/etcd/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/coreos/etcd/labels{/name}","releases_url":"https://api.github.com/repos/coreos/etcd/releases{/id}","created_at":"2013-07-06T21:57:21Z","updated_at":"2015-07-03T00:38:50Z","pushed_at":"2015-07-03T01:20:15Z","git_url":"git://github.com/coreos/etcd.git","ssh_url":"git@github.com:coreos/etcd.git","clone_url":"https://github.com/coreos/etcd.git","svn_url":"https://github.com/coreos/etcd","homepage":"","size":33114,"stargazers_count":6835,"watchers_count":6835,"language":"Go","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":918,"mirror_url":null,"open_issues_count":165,"forks":918,"open_issues":165,"watchers":6835,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/coreos/etcd/pulls/3094"},"html":{"href":"https://github.com/coreos/etcd/pull/3094"},"issue":{"href":"https://api.github.com/repos/coreos/etcd/issues/3094"},"comments":{"href":"https://api.github.com/repos/coreos/etcd/issues/3094/comments"},"review_comments":{"href":"https://api.github.com/repos/coreos/etcd/pulls/3094/comments"},"review_comment":{"href":"https://api.github.com/repos/coreos/etcd/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/coreos/etcd/pulls/3094/commits"},"statuses":{"href":"https://api.github.com/repos/coreos/etcd/statuses/c83f2dc597956e26d01d4244c771e8431b21b87f"}}}}