{"action":"created","comment":{"url":"https://api.github.com/repos/ceph/ceph/pulls/comments/69872515","id":69872515,"diff_hunk":"@@ -4817,7 +4817,11 @@ int main(int argc, char **argv)\n     string user_str = user_id.to_str();\n     int ret = store->cls_user_get_header(user_str, &header);\n     if (ret < 0) {\n-      cerr << \"ERROR: can't read user header: \" << cpp_strerror(-ret) << std::endl;\n+      if (ret == -2) { /* in case of ENOENT */\n+        cerr << \"Error: There is no bucket/object in the cluster. Please create buckets/object first.\" << std::endl;","path":"src/rgw/rgw_admin.cc","position":null,"original_position":6,"commit_id":"2fc2457430a3ce2c5b222ca21c18a9512887ac7b","original_commit_id":"3d7c5efd7d019f07f81f39687fdadd4dfedc1f1c","user":{"login":"gaurav36","id":6826559,"avatar_url":"https://avatars.githubusercontent.com/u/6826559?v=3","gravatar_id":"","url":"https://api.github.com/users/gaurav36","html_url":"https://github.com/gaurav36","followers_url":"https://api.github.com/users/gaurav36/followers","following_url":"https://api.github.com/users/gaurav36/following{/other_user}","gists_url":"https://api.github.com/users/gaurav36/gists{/gist_id}","starred_url":"https://api.github.com/users/gaurav36/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gaurav36/subscriptions","organizations_url":"https://api.github.com/users/gaurav36/orgs","repos_url":"https://api.github.com/users/gaurav36/repos","events_url":"https://api.github.com/users/gaurav36/events{/privacy}","received_events_url":"https://api.github.com/users/gaurav36/received_events","type":"User","site_admin":false},"body":"@yehudasa  done in next PR.","created_at":"2016-07-07T08:57:43Z","updated_at":"2016-07-07T08:57:43Z","html_url":"https://github.com/ceph/ceph/pull/10162#discussion_r69872515","pull_request_url":"https://api.github.com/repos/ceph/ceph/pulls/10162","_links":{"self":{"href":"https://api.github.com/repos/ceph/ceph/pulls/comments/69872515"},"html":{"href":"https://github.com/ceph/ceph/pull/10162#discussion_r69872515"},"pull_request":{"href":"https://api.github.com/repos/ceph/ceph/pulls/10162"}}},"pull_request":{"url":"https://api.github.com/repos/ceph/ceph/pulls/10162","id":76466874,"html_url":"https://github.com/ceph/ceph/pull/10162","diff_url":"https://github.com/ceph/ceph/pull/10162.diff","patch_url":"https://github.com/ceph/ceph/pull/10162.patch","issue_url":"https://api.github.com/repos/ceph/ceph/issues/10162","number":10162,"state":"open","locked":false,"title":"rgw: better error message when user has no bucket created yet","user":{"login":"gaurav36","id":6826559,"avatar_url":"https://avatars.githubusercontent.com/u/6826559?v=3","gravatar_id":"","url":"https://api.github.com/users/gaurav36","html_url":"https://github.com/gaurav36","followers_url":"https://api.github.com/users/gaurav36/followers","following_url":"https://api.github.com/users/gaurav36/following{/other_user}","gists_url":"https://api.github.com/users/gaurav36/gists{/gist_id}","starred_url":"https://api.github.com/users/gaurav36/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gaurav36/subscriptions","organizations_url":"https://api.github.com/users/gaurav36/orgs","repos_url":"https://api.github.com/users/gaurav36/repos","events_url":"https://api.github.com/users/gaurav36/events{/privacy}","received_events_url":"https://api.github.com/users/gaurav36/received_events","type":"User","site_admin":false},"body":"Currently when there is no bucket in the cluster and user execute\r\n \"$radosgw-admin user  stats --uid=testid\" command then rgw admin\r\nnot throwing meaningful error message.\r\n\r\nWith this fix it will show proper meaningful error message.\r\n\r\nFixes: http://tracker.ceph.com/issues/16444\r\n\r\nReported-by: Abhishek Lekshmanan <abhishek@suse.com>\r\nSigned-off-by: Gaurav Kumar Garg <ggarg@suse.com>","created_at":"2016-07-06T17:05:13Z","updated_at":"2016-07-07T08:57:43Z","closed_at":null,"merged_at":null,"merge_commit_sha":"bee6ca9ee08657b5b6d133dd274fc0e3430a15b8","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/ceph/ceph/pulls/10162/commits","review_comments_url":"https://api.github.com/repos/ceph/ceph/pulls/10162/comments","review_comment_url":"https://api.github.com/repos/ceph/ceph/pulls/comments{/number}","comments_url":"https://api.github.com/repos/ceph/ceph/issues/10162/comments","statuses_url":"https://api.github.com/repos/ceph/ceph/statuses/2fc2457430a3ce2c5b222ca21c18a9512887ac7b","head":{"label":"gaurav36:bug-16444-radosgw-error-message","ref":"bug-16444-radosgw-error-message","sha":"2fc2457430a3ce2c5b222ca21c18a9512887ac7b","user":{"login":"gaurav36","id":6826559,"avatar_url":"https://avatars.githubusercontent.com/u/6826559?v=3","gravatar_id":"","url":"https://api.github.com/users/gaurav36","html_url":"https://github.com/gaurav36","followers_url":"https://api.github.com/users/gaurav36/followers","following_url":"https://api.github.com/users/gaurav36/following{/other_user}","gists_url":"https://api.github.com/users/gaurav36/gists{/gist_id}","starred_url":"https://api.github.com/users/gaurav36/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gaurav36/subscriptions","organizations_url":"https://api.github.com/users/gaurav36/orgs","repos_url":"https://api.github.com/users/gaurav36/repos","events_url":"https://api.github.com/users/gaurav36/events{/privacy}","received_events_url":"https://api.github.com/users/gaurav36/received_events","type":"User","site_admin":false},"repo":{"id":31266548,"name":"ceph","full_name":"gaurav36/ceph","owner":{"login":"gaurav36","id":6826559,"avatar_url":"https://avatars.githubusercontent.com/u/6826559?v=3","gravatar_id":"","url":"https://api.github.com/users/gaurav36","html_url":"https://github.com/gaurav36","followers_url":"https://api.github.com/users/gaurav36/followers","following_url":"https://api.github.com/users/gaurav36/following{/other_user}","gists_url":"https://api.github.com/users/gaurav36/gists{/gist_id}","starred_url":"https://api.github.com/users/gaurav36/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gaurav36/subscriptions","organizations_url":"https://api.github.com/users/gaurav36/orgs","repos_url":"https://api.github.com/users/gaurav36/repos","events_url":"https://api.github.com/users/gaurav36/events{/privacy}","received_events_url":"https://api.github.com/users/gaurav36/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/gaurav36/ceph","description":"Ceph is a distributed object, block, and file storage platform ","fork":true,"url":"https://api.github.com/repos/gaurav36/ceph","forks_url":"https://api.github.com/repos/gaurav36/ceph/forks","keys_url":"https://api.github.com/repos/gaurav36/ceph/keys{/key_id}","collaborators_url":"https://api.github.com/repos/gaurav36/ceph/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/gaurav36/ceph/teams","hooks_url":"https://api.github.com/repos/gaurav36/ceph/hooks","issue_events_url":"https://api.github.com/repos/gaurav36/ceph/issues/events{/number}","events_url":"https://api.github.com/repos/gaurav36/ceph/events","assignees_url":"https://api.github.com/repos/gaurav36/ceph/assignees{/user}","branches_url":"https://api.github.com/repos/gaurav36/ceph/branches{/branch}","tags_url":"https://api.github.com/repos/gaurav36/ceph/tags","blobs_url":"https://api.github.com/repos/gaurav36/ceph/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/gaurav36/ceph/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/gaurav36/ceph/git/refs{/sha}","trees_url":"https://api.github.com/repos/gaurav36/ceph/git/trees{/sha}","statuses_url":"https://api.github.com/repos/gaurav36/ceph/statuses/{sha}","languages_url":"https://api.github.com/repos/gaurav36/ceph/languages","stargazers_url":"https://api.github.com/repos/gaurav36/ceph/stargazers","contributors_url":"https://api.github.com/repos/gaurav36/ceph/contributors","subscribers_url":"https://api.github.com/repos/gaurav36/ceph/subscribers","subscription_url":"https://api.github.com/repos/gaurav36/ceph/subscription","commits_url":"https://api.github.com/repos/gaurav36/ceph/commits{/sha}","git_commits_url":"https://api.github.com/repos/gaurav36/ceph/git/commits{/sha}","comments_url":"https://api.github.com/repos/gaurav36/ceph/comments{/number}","issue_comment_url":"https://api.github.com/repos/gaurav36/ceph/issues/comments{/number}","contents_url":"https://api.github.com/repos/gaurav36/ceph/contents/{+path}","compare_url":"https://api.github.com/repos/gaurav36/ceph/compare/{base}...{head}","merges_url":"https://api.github.com/repos/gaurav36/ceph/merges","archive_url":"https://api.github.com/repos/gaurav36/ceph/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/gaurav36/ceph/downloads","issues_url":"https://api.github.com/repos/gaurav36/ceph/issues{/number}","pulls_url":"https://api.github.com/repos/gaurav36/ceph/pulls{/number}","milestones_url":"https://api.github.com/repos/gaurav36/ceph/milestones{/number}","notifications_url":"https://api.github.com/repos/gaurav36/ceph/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/gaurav36/ceph/labels{/name}","releases_url":"https://api.github.com/repos/gaurav36/ceph/releases{/id}","deployments_url":"https://api.github.com/repos/gaurav36/ceph/deployments","created_at":"2015-02-24T15:30:37Z","updated_at":"2016-03-09T17:30:58Z","pushed_at":"2016-07-07T08:56:19Z","git_url":"git://github.com/gaurav36/ceph.git","ssh_url":"git@github.com:gaurav36/ceph.git","clone_url":"https://github.com/gaurav36/ceph.git","svn_url":"https://github.com/gaurav36/ceph","homepage":"http://ceph.com","size":160171,"stargazers_count":0,"watchers_count":0,"language":"C++","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"ceph:master","ref":"master","sha":"c49d95db1018fe764657ef3248424db6733282f5","user":{"login":"ceph","id":1015767,"avatar_url":"https://avatars.githubusercontent.com/u/1015767?v=3","gravatar_id":"","url":"https://api.github.com/users/ceph","html_url":"https://github.com/ceph","followers_url":"https://api.github.com/users/ceph/followers","following_url":"https://api.github.com/users/ceph/following{/other_user}","gists_url":"https://api.github.com/users/ceph/gists{/gist_id}","starred_url":"https://api.github.com/users/ceph/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ceph/subscriptions","organizations_url":"https://api.github.com/users/ceph/orgs","repos_url":"https://api.github.com/users/ceph/repos","events_url":"https://api.github.com/users/ceph/events{/privacy}","received_events_url":"https://api.github.com/users/ceph/received_events","type":"Organization","site_admin":false},"repo":{"id":2310495,"name":"ceph","full_name":"ceph/ceph","owner":{"login":"ceph","id":1015767,"avatar_url":"https://avatars.githubusercontent.com/u/1015767?v=3","gravatar_id":"","url":"https://api.github.com/users/ceph","html_url":"https://github.com/ceph","followers_url":"https://api.github.com/users/ceph/followers","following_url":"https://api.github.com/users/ceph/following{/other_user}","gists_url":"https://api.github.com/users/ceph/gists{/gist_id}","starred_url":"https://api.github.com/users/ceph/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ceph/subscriptions","organizations_url":"https://api.github.com/users/ceph/orgs","repos_url":"https://api.github.com/users/ceph/repos","events_url":"https://api.github.com/users/ceph/events{/privacy}","received_events_url":"https://api.github.com/users/ceph/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/ceph/ceph","description":"Ceph is a distributed object, block, and file storage platform ","fork":false,"url":"https://api.github.com/repos/ceph/ceph","forks_url":"https://api.github.com/repos/ceph/ceph/forks","keys_url":"https://api.github.com/repos/ceph/ceph/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ceph/ceph/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ceph/ceph/teams","hooks_url":"https://api.github.com/repos/ceph/ceph/hooks","issue_events_url":"https://api.github.com/repos/ceph/ceph/issues/events{/number}","events_url":"https://api.github.com/repos/ceph/ceph/events","assignees_url":"https://api.github.com/repos/ceph/ceph/assignees{/user}","branches_url":"https://api.github.com/repos/ceph/ceph/branches{/branch}","tags_url":"https://api.github.com/repos/ceph/ceph/tags","blobs_url":"https://api.github.com/repos/ceph/ceph/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ceph/ceph/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ceph/ceph/git/refs{/sha}","trees_url":"https://api.github.com/repos/ceph/ceph/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ceph/ceph/statuses/{sha}","languages_url":"https://api.github.com/repos/ceph/ceph/languages","stargazers_url":"https://api.github.com/repos/ceph/ceph/stargazers","contributors_url":"https://api.github.com/repos/ceph/ceph/contributors","subscribers_url":"https://api.github.com/repos/ceph/ceph/subscribers","subscription_url":"https://api.github.com/repos/ceph/ceph/subscription","commits_url":"https://api.github.com/repos/ceph/ceph/commits{/sha}","git_commits_url":"https://api.github.com/repos/ceph/ceph/git/commits{/sha}","comments_url":"https://api.github.com/repos/ceph/ceph/comments{/number}","issue_comment_url":"https://api.github.com/repos/ceph/ceph/issues/comments{/number}","contents_url":"https://api.github.com/repos/ceph/ceph/contents/{+path}","compare_url":"https://api.github.com/repos/ceph/ceph/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ceph/ceph/merges","archive_url":"https://api.github.com/repos/ceph/ceph/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ceph/ceph/downloads","issues_url":"https://api.github.com/repos/ceph/ceph/issues{/number}","pulls_url":"https://api.github.com/repos/ceph/ceph/pulls{/number}","milestones_url":"https://api.github.com/repos/ceph/ceph/milestones{/number}","notifications_url":"https://api.github.com/repos/ceph/ceph/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ceph/ceph/labels{/name}","releases_url":"https://api.github.com/repos/ceph/ceph/releases{/id}","deployments_url":"https://api.github.com/repos/ceph/ceph/deployments","created_at":"2011-09-01T21:41:26Z","updated_at":"2016-07-07T05:38:06Z","pushed_at":"2016-07-07T08:56:21Z","git_url":"git://github.com/ceph/ceph.git","ssh_url":"git@github.com:ceph/ceph.git","clone_url":"https://github.com/ceph/ceph.git","svn_url":"https://github.com/ceph/ceph","homepage":"http://ceph.com","size":225986,"stargazers_count":2288,"watchers_count":2288,"language":"C++","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":1358,"mirror_url":null,"open_issues_count":453,"forks":1358,"open_issues":453,"watchers":2288,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/ceph/ceph/pulls/10162"},"html":{"href":"https://github.com/ceph/ceph/pull/10162"},"issue":{"href":"https://api.github.com/repos/ceph/ceph/issues/10162"},"comments":{"href":"https://api.github.com/repos/ceph/ceph/issues/10162/comments"},"review_comments":{"href":"https://api.github.com/repos/ceph/ceph/pulls/10162/comments"},"review_comment":{"href":"https://api.github.com/repos/ceph/ceph/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/ceph/ceph/pulls/10162/commits"},"statuses":{"href":"https://api.github.com/repos/ceph/ceph/statuses/2fc2457430a3ce2c5b222ca21c18a9512887ac7b"}}}}
{"actor":{"display_login":"gaurav36"}}