{"action":"created","issue":{"url":"https://api.github.com/repos/Crapworks/ceph-dash/issues/36","repository_url":"https://api.github.com/repos/Crapworks/ceph-dash","labels_url":"https://api.github.com/repos/Crapworks/ceph-dash/issues/36/labels{/name}","comments_url":"https://api.github.com/repos/Crapworks/ceph-dash/issues/36/comments","events_url":"https://api.github.com/repos/Crapworks/ceph-dash/issues/36/events","html_url":"https://github.com/Crapworks/ceph-dash/issues/36","id":174449636,"number":36,"title":"No Monitor status when ceph cluster only have one monitor.","user":{"login":"mkkie","id":6520185,"avatar_url":"https://avatars.githubusercontent.com/u/6520185?v=3","gravatar_id":"","url":"https://api.github.com/users/mkkie","html_url":"https://github.com/mkkie","followers_url":"https://api.github.com/users/mkkie/followers","following_url":"https://api.github.com/users/mkkie/following{/other_user}","gists_url":"https://api.github.com/users/mkkie/gists{/gist_id}","starred_url":"https://api.github.com/users/mkkie/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mkkie/subscriptions","organizations_url":"https://api.github.com/users/mkkie/orgs","repos_url":"https://api.github.com/users/mkkie/repos","events_url":"https://api.github.com/users/mkkie/events{/privacy}","received_events_url":"https://api.github.com/users/mkkie/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/Crapworks/ceph-dash/labels/bug","name":"bug","color":"fc2929"}],"state":"open","locked":false,"assignee":{"login":"Crapworks","id":1851528,"avatar_url":"https://avatars.githubusercontent.com/u/1851528?v=3","gravatar_id":"","url":"https://api.github.com/users/Crapworks","html_url":"https://github.com/Crapworks","followers_url":"https://api.github.com/users/Crapworks/followers","following_url":"https://api.github.com/users/Crapworks/following{/other_user}","gists_url":"https://api.github.com/users/Crapworks/gists{/gist_id}","starred_url":"https://api.github.com/users/Crapworks/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Crapworks/subscriptions","organizations_url":"https://api.github.com/users/Crapworks/orgs","repos_url":"https://api.github.com/users/Crapworks/repos","events_url":"https://api.github.com/users/Crapworks/events{/privacy}","received_events_url":"https://api.github.com/users/Crapworks/received_events","type":"User","site_admin":false},"assignees":[{"login":"Crapworks","id":1851528,"avatar_url":"https://avatars.githubusercontent.com/u/1851528?v=3","gravatar_id":"","url":"https://api.github.com/users/Crapworks","html_url":"https://github.com/Crapworks","followers_url":"https://api.github.com/users/Crapworks/followers","following_url":"https://api.github.com/users/Crapworks/following{/other_user}","gists_url":"https://api.github.com/users/Crapworks/gists{/gist_id}","starred_url":"https://api.github.com/users/Crapworks/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Crapworks/subscriptions","organizations_url":"https://api.github.com/users/Crapworks/orgs","repos_url":"https://api.github.com/users/Crapworks/repos","events_url":"https://api.github.com/users/Crapworks/events{/privacy}","received_events_url":"https://api.github.com/users/Crapworks/received_events","type":"User","site_admin":false}],"milestone":null,"comments":6,"created_at":"2016-09-01T06:54:00Z","updated_at":"2016-10-17T09:26:10Z","closed_at":null,"body":"Hello, this is my ceph cluster.\r\n```\r\n$ ceph -s\r\n    cluster 7530a176-e733-4b76-bc66-76c516157960\r\n     health HEALTH_OK\r\n     monmap e1: 1 mons at {B08-1-MS1=172.28.0.30:6789/0}\r\n            election epoch 2, quorum 0 B08-1-MS1\r\n     osdmap e26: 3 osds: 3 up, 3 in\r\n      pgmap v383: 64 pgs, 1 pools, 49108 MB data, 12277 objects\r\n            145 GB used, 10997 GB / 11142 GB avail\r\n                  64 active+clean\r\n\r\n$ ceph -v\r\nceph version 0.94.7 (d56bdf93ced6b80b07397d57e3fa68fe68304432)\r\n```\r\n\r\nWhen I run ./ceph-dash.py, I could not found any monitor status on Ceph Dashboard.\r\n\r\nHere is my screenshot.\r\n![2016-09-01 2 44 23](https://cloud.githubusercontent.com/assets/6520185/18158013/130f344e-7053-11e6-8d87-f99c90fbe8de.png)\r\n\r\nAnd I try to add another monitor, finally I can see monitor status.\r\n\r\n![2016-09-01 2 49 02](https://cloud.githubusercontent.com/assets/6520185/18158099/9d21d31c-7053-11e6-9c5a-46b41f319580.png)\r\n\r\nThanks!"},"comment":{"url":"https://api.github.com/repos/Crapworks/ceph-dash/issues/comments/254157417","html_url":"https://github.com/Crapworks/ceph-dash/issues/36#issuecomment-254157417","issue_url":"https://api.github.com/repos/Crapworks/ceph-dash/issues/36","id":254157417,"user":{"login":"mkkie","id":6520185,"avatar_url":"https://avatars.githubusercontent.com/u/6520185?v=3","gravatar_id":"","url":"https://api.github.com/users/mkkie","html_url":"https://github.com/mkkie","followers_url":"https://api.github.com/users/mkkie/followers","following_url":"https://api.github.com/users/mkkie/following{/other_user}","gists_url":"https://api.github.com/users/mkkie/gists{/gist_id}","starred_url":"https://api.github.com/users/mkkie/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mkkie/subscriptions","organizations_url":"https://api.github.com/users/mkkie/orgs","repos_url":"https://api.github.com/users/mkkie/repos","events_url":"https://api.github.com/users/mkkie/events{/privacy}","received_events_url":"https://api.github.com/users/mkkie/received_events","type":"User","site_admin":false},"created_at":"2016-10-17T09:26:10Z","updated_at":"2016-10-17T09:26:10Z","body":"Hi @Crapworks \r\n\r\nI have tried the branch \"one_monitor_fix\", and the problem still there.\r\n\r\nMy Chrome tell me that some error in [ceph.dash.js](https://github.com/Crapworks/ceph-dash/blob/one_monitor_fix/app/static/js/ceph.dash.js#L432).\r\n![2016-10-17 5 18 51](https://cloud.githubusercontent.com/assets/6520185/19432196/1540c3f4-948e-11e6-9c9e-13e66cad1e7c.png)\r\n\r\nI put the following code before line 432  in ceph.dash.js.\r\n`console.log(timechekMons);`\r\n\r\nIf I run two monitors, console shows timechekMons is an object,\r\nbut I when i remove another monitor, console shows timechekMons is undefined.\r\n\r\n\r\n\r\n"}}
{"actor":{"display_login":"mkkie"}}