{"action":"created","issue":{"url":"https://api.github.com/repos/ceph/ceph/issues/10308","repository_url":"https://api.github.com/repos/ceph/ceph","labels_url":"https://api.github.com/repos/ceph/ceph/issues/10308/labels{/name}","comments_url":"https://api.github.com/repos/ceph/ceph/issues/10308/comments","events_url":"https://api.github.com/repos/ceph/ceph/issues/10308/events","html_url":"https://github.com/ceph/ceph/pull/10308","id":165741413,"number":10308,"title":"mon/osdmonitor: fix incorrect output of \"osd df\" due to osd out","user":{"login":"xiexingguo","id":14193361,"avatar_url":"https://avatars.githubusercontent.com/u/14193361?v=3","gravatar_id":"","url":"https://api.github.com/users/xiexingguo","html_url":"https://github.com/xiexingguo","followers_url":"https://api.github.com/users/xiexingguo/followers","following_url":"https://api.github.com/users/xiexingguo/following{/other_user}","gists_url":"https://api.github.com/users/xiexingguo/gists{/gist_id}","starred_url":"https://api.github.com/users/xiexingguo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/xiexingguo/subscriptions","organizations_url":"https://api.github.com/users/xiexingguo/orgs","repos_url":"https://api.github.com/users/xiexingguo/repos","events_url":"https://api.github.com/users/xiexingguo/events{/privacy}","received_events_url":"https://api.github.com/users/xiexingguo/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/ceph/ceph/labels/bug%20fix","name":"bug fix","color":"e11d21"},{"url":"https://api.github.com/repos/ceph/ceph/labels/core","name":"core","color":"0052cc"}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2016-07-15T09:00:56Z","updated_at":"2016-07-18T06:24:41Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/ceph/ceph/pulls/10308","html_url":"https://github.com/ceph/ceph/pull/10308","diff_url":"https://github.com/ceph/ceph/pull/10308.diff","patch_url":"https://github.com/ceph/ceph/pull/10308.patch"},"body":" If an osd is automatically marked as out, the output of \"osd df\"\r\n    is not right, as follow:\r\n    \r\n    -5 10.00999        -  5586G  2989G  2596G     0    0     host ceph192-9-9-8\r\n    11  0.90999  1.00000   931G   542G   388G 58.25 0.99         osd.11\r\n    14  0.90999  1.00000   931G   530G   400G 56.97 0.97         osd.14\r\n    20  0.90999  1.00000   931G   716G   214G 76.99 1.31         osd.20\r\n    22  0.90999  1.00000   931G   477G   453G 51.29 0.87         osd.22\r\n    26  0.90999        0      0      0      0     0    0         osd.26\r\n    28  0.90999  1.00000   931G   587G   343G 63.09 1.07         osd.28\r\n    30  0.90999  1.00000   931G   602G   328G 64.75 1.10         osd.30\r\n    16  0.90999  1.00000   931G   589G   341G 63.34 1.08         osd.16\r\n    18  0.90999  1.00000   931G   530G   400G 56.93 0.97         osd.18\r\n    24  0.90999  1.00000   931G   202G   728G 21.77 0.37         osd.24\r\n    32  0.90999  1.00000   931G   477G   454G 51.23 0.87         osd.32\r\n\r\nTwo problems are identified from the above output:\r\n\r\n1. the total capacity(total, total used, total avial) \r\nonly includes osd.32, osd.24, osd.18, osd.16, osd.30, osd.28, and other\r\nhealthy osds such as osd.11, osd.14 etc. are excluded.\r\n\r\n2. the average utilization/deviation are forced resetted."},"comment":{"url":"https://api.github.com/repos/ceph/ceph/issues/comments/233242047","html_url":"https://github.com/ceph/ceph/pull/10308#issuecomment-233242047","issue_url":"https://api.github.com/repos/ceph/ceph/issues/10308","id":233242047,"user":{"login":"xiexingguo","id":14193361,"avatar_url":"https://avatars.githubusercontent.com/u/14193361?v=3","gravatar_id":"","url":"https://api.github.com/users/xiexingguo","html_url":"https://github.com/xiexingguo","followers_url":"https://api.github.com/users/xiexingguo/followers","following_url":"https://api.github.com/users/xiexingguo/following{/other_user}","gists_url":"https://api.github.com/users/xiexingguo/gists{/gist_id}","starred_url":"https://api.github.com/users/xiexingguo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/xiexingguo/subscriptions","organizations_url":"https://api.github.com/users/xiexingguo/orgs","repos_url":"https://api.github.com/users/xiexingguo/repos","events_url":"https://api.github.com/users/xiexingguo/events{/privacy}","received_events_url":"https://api.github.com/users/xiexingguo/received_events","type":"User","site_admin":false},"created_at":"2016-07-18T06:24:41Z","updated_at":"2016-07-18T06:24:41Z","body":"Upgraded. @tchaikov  Can you look again? Thanks!"}}
{"actor":{"display_login":"xiexingguo"}}