{"action":"created","issue":{"url":"https://api.github.com/repos/zstackorg/zstack/issues/89","labels_url":"https://api.github.com/repos/zstackorg/zstack/issues/89/labels{/name}","comments_url":"https://api.github.com/repos/zstackorg/zstack/issues/89/comments","events_url":"https://api.github.com/repos/zstackorg/zstack/issues/89/events","html_url":"https://github.com/zstackorg/zstack/issues/89","id":99894565,"number":89,"title":"AddCephPrimaryStorage fail","user":{"login":"youyk","id":2962014,"avatar_url":"https://avatars.githubusercontent.com/u/2962014?v=3","gravatar_id":"","url":"https://api.github.com/users/youyk","html_url":"https://github.com/youyk","followers_url":"https://api.github.com/users/youyk/followers","following_url":"https://api.github.com/users/youyk/following{/other_user}","gists_url":"https://api.github.com/users/youyk/gists{/gist_id}","starred_url":"https://api.github.com/users/youyk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/youyk/subscriptions","organizations_url":"https://api.github.com/users/youyk/orgs","repos_url":"https://api.github.com/users/youyk/repos","events_url":"https://api.github.com/users/youyk/events{/privacy}","received_events_url":"https://api.github.com/users/youyk/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/zstackorg/zstack/labels/bug","name":"bug","color":"fc2929"}],"state":"closed","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/zstackorg/zstack/milestones/3","html_url":"https://github.com/zstackorg/zstack/milestones/0.9","labels_url":"https://api.github.com/repos/zstackorg/zstack/milestones/3/labels","id":1125836,"number":3,"title":"0.9","description":null,"creator":{"login":"zxwing","id":1362214,"avatar_url":"https://avatars.githubusercontent.com/u/1362214?v=3","gravatar_id":"","url":"https://api.github.com/users/zxwing","html_url":"https://github.com/zxwing","followers_url":"https://api.github.com/users/zxwing/followers","following_url":"https://api.github.com/users/zxwing/following{/other_user}","gists_url":"https://api.github.com/users/zxwing/gists{/gist_id}","starred_url":"https://api.github.com/users/zxwing/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zxwing/subscriptions","organizations_url":"https://api.github.com/users/zxwing/orgs","repos_url":"https://api.github.com/users/zxwing/repos","events_url":"https://api.github.com/users/zxwing/events{/privacy}","received_events_url":"https://api.github.com/users/zxwing/received_events","type":"User","site_admin":false},"open_issues":8,"closed_issues":1,"state":"open","created_at":"2015-05-22T15:09:59Z","updated_at":"2015-08-10T05:44:16Z","due_on":null,"closed_at":null},"comments":2,"created_at":"2015-08-09T12:49:28Z","updated_at":"2015-08-10T05:44:16Z","closed_at":"2015-08-10T05:44:16Z","body":"DEBUG:zstacklib.utils.shell:ceph -f json auth get-or-create client.zstack mon 'allow r' osd 'allow *' 2>/dev/null\r\nDEBUG:zstacklib.utils.shell:ceph df -f json\r\nWARNING:cephprimarystorage.cephagent:long() argument must be a string or a number, not 'NoneType'\r\nTraceback (most recent call last):\r\n  File \"/var/lib/zstack/virtualenv/cephp/lib/python2.7/site-packages/cephprimarystorage/cephagent.py\", line 54, in wrap\r\n    return func(*args, **kwargs)\r\n  File \"/var/lib/zstack/virtualenv/cephp/lib/python2.7/site-packages/cephprimarystorage/cephagent.py\", line 229, in init\r\n    self._set_capacity_to_response(rsp)\r\n  File \"/var/lib/zstack/virtualenv/cephp/lib/python2.7/site-packages/cephprimarystorage/cephagent.py\", line 106, in _set_capacity_to_response\r\n    total = long(df.stats.total_bytes_)\r\nTypeError: long() argument must be a string or a number, not 'NoneType'\r\n\r\nIn my ceph:\r\n\r\n```\r\n[root@ceph-01 ~]# ceph df -f json|grep total\r\n{\"stats\":{\"total_space\":720338944,\"total_used\":1861428,\"total_avail\":718477516},\"pools\":[{\"name\":\"data\",\"id\":0,\"stats\":{\"kb_used\":0,\"bytes_used\":0,\"max_avail\":344441457598,\"objects\":0}},{\"name\":\"metadata\",\"id\":1,\"stats\":{\"kb_used\":0,\"bytes_used\":0,\"max_avail\":344441457598,\"objects\":0}},{\"name\":\"rbd\",\"id\":2,\"stats\":{\"kb_used\":0,\"bytes_used\":0,\"max_avail\":344441457598,\"objects\":0}},{\"name\":\"pri-v-r-86b1fc9c6c224c71ad0d3e1b6d60a0ca\",\"id\":4,\"stats\":{\"kb_used\":0,\"bytes_used\":0,\"max_avail\":344441457598,\"objects\":0}},{\"name\":\"pri-v-d-86b1fc9c6c224c71ad0d3e1b6d60a0ca\",\"id\":5,\"stats\":{\"kb_used\":0,\"bytes_used\":0,\"max_avail\":344441457598,\"objects\":0}},{\"name\":\"pri-c-86b1fc9c6c224c71ad0d3e1b6d60a0ca\",\"id\":6,\"stats\":{\"kb_used\":0,\"bytes_used\":0,\"max_avail\":344441457598,\"objects\":0}}]}\r\n```\r\nThere isn't **total_bytes**"},"comment":{"url":"https://api.github.com/repos/zstackorg/zstack/issues/comments/129312339","html_url":"https://github.com/zstackorg/zstack/issues/89#issuecomment-129312339","issue_url":"https://api.github.com/repos/zstackorg/zstack/issues/89","id":129312339,"user":{"login":"zxwing","id":1362214,"avatar_url":"https://avatars.githubusercontent.com/u/1362214?v=3","gravatar_id":"","url":"https://api.github.com/users/zxwing","html_url":"https://github.com/zxwing","followers_url":"https://api.github.com/users/zxwing/followers","following_url":"https://api.github.com/users/zxwing/following{/other_user}","gists_url":"https://api.github.com/users/zxwing/gists{/gist_id}","starred_url":"https://api.github.com/users/zxwing/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zxwing/subscriptions","organizations_url":"https://api.github.com/users/zxwing/orgs","repos_url":"https://api.github.com/users/zxwing/repos","events_url":"https://api.github.com/users/zxwing/events{/privacy}","received_events_url":"https://api.github.com/users/zxwing/received_events","type":"User","site_admin":false},"created_at":"2015-08-10T05:44:16Z","updated_at":"2015-08-10T05:44:16Z","body":"fixed in 9a29ec02efdd0091895158944165ab1c0464aa39(utility)"}}