{"action":"created","issue":{"url":"https://api.github.com/repos/krakendash/krakendash/issues/29","labels_url":"https://api.github.com/repos/krakendash/krakendash/issues/29/labels{/name}","comments_url":"https://api.github.com/repos/krakendash/krakendash/issues/29/comments","events_url":"https://api.github.com/repos/krakendash/krakendash/issues/29/events","html_url":"https://github.com/krakendash/krakendash/issues/29","id":29399981,"number":29,"title":"KeyError in cluster_status","user":{"login":"daniel-yavorovich","id":1315513,"avatar_url":"https://avatars.githubusercontent.com/u/1315513?v=3","gravatar_id":"","url":"https://api.github.com/users/daniel-yavorovich","html_url":"https://github.com/daniel-yavorovich","followers_url":"https://api.github.com/users/daniel-yavorovich/followers","following_url":"https://api.github.com/users/daniel-yavorovich/following{/other_user}","gists_url":"https://api.github.com/users/daniel-yavorovich/gists{/gist_id}","starred_url":"https://api.github.com/users/daniel-yavorovich/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/daniel-yavorovich/subscriptions","organizations_url":"https://api.github.com/users/daniel-yavorovich/orgs","repos_url":"https://api.github.com/users/daniel-yavorovich/repos","events_url":"https://api.github.com/users/daniel-yavorovich/events{/privacy}","received_events_url":"https://api.github.com/users/daniel-yavorovich/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2014-03-13T23:47:06Z","updated_at":"2015-06-15T20:53:09Z","closed_at":null,"body":"Hello!\r\n\r\nI faced the problem of getting active monitors.\r\n\r\nDjango traceback:\r\n```\r\nEnvironment:\r\n\r\nRequest Method: GET\r\nRequest URL: http://127.0.0.1:8000/\r\n\r\nDjango Version: 1.6.2\r\nPython Version: 2.7.3\r\nInstalled Applications:\r\n('django.contrib.admin',\r\n 'django.contrib.auth',\r\n 'django.contrib.contenttypes',\r\n 'django.contrib.sessions',\r\n 'django.contrib.messages',\r\n 'django.contrib.staticfiles',\r\n 'rest_framework')\r\nInstalled Middleware:\r\n('django.contrib.sessions.middleware.SessionMiddleware',\r\n 'django.middleware.common.CommonMiddleware',\r\n 'django.middleware.csrf.CsrfViewMiddleware',\r\n 'django.contrib.auth.middleware.AuthenticationMiddleware',\r\n 'django.contrib.messages.middleware.MessageMiddleware',\r\n 'django.middleware.clickjacking.XFrameOptionsMiddleware')\r\n\r\n\r\nTraceback:\r\nFile \"/usr/local/lib/python2.7/dist-packages/django/core/handlers/base.py\" in get_response\r\n  114.                     response = wrapped_callback(request, *callback_args, **callback_kwargs)\r\nFile \"/home/kraken/krakendash/status/views.py\" in home\r\n  66.     up_mons = cluster_status['output']['health']['timechecks']['mons']\r\n\r\nException Type: KeyError at /\r\nException Value: 'mons'\r\n```\r\n\r\ncluster_status value:\r\n```\r\n{u'output': {u'election_epoch': 21,\r\n  u'fsid': u'e895ae7e-73bb-4847-ae2d-b9bb22ab2aef',\r\n  u'health': {u'detail': [],\r\n   u'health': {u'health_services': [{u'mons': [{u'avail_percent': 91,\r\n        u'health': u'HEALTH_OK',\r\n        u'kb_avail': 60551588,\r\n        u'kb_total': 65891964,\r\n        u'kb_used': 1970196,\r\n        u'last_updated': u'2014-03-14 00:34:28.473436',\r\n        u'name': u'node1',\r\n        u'store_stats': {u'bytes_log': 983040,\r\n         u'bytes_misc': 65609,\r\n         u'bytes_sst': 16715933,\r\n         u'bytes_total': 17764582,\r\n         u'last_updated': u'0.000000'}}]}]},\r\n   u'overall_status': u'HEALTH_OK',\r\n   u'summary': [],\r\n   u'timechecks': {u'epoch': 21, u'round': 0, u'round_status': u'finished'}},\r\n  u'mdsmap': {u'by_rank': [], u'epoch': 1, u'in': 0, u'max': 1, u'up': 0},\r\n  u'monmap': {u'created': u'0.000000',\r\n   u'epoch': 2,\r\n   u'fsid': u'e895ae7e-73bb-4847-ae2d-b9bb22ab2aef',\r\n   u'modified': u'2014-03-13 22:40:41.025898',\r\n   u'mons': [{u'addr': u'10.251.8.238:6789/0',\r\n     u'name': u'node1',\r\n     u'rank': 0}]},\r\n  u'osdmap': {u'osdmap': {u'epoch': 63,\r\n    u'full': u'false',\r\n    u'nearfull': u'false',\r\n    u'num_in_osds': u'3',\r\n    u'num_osds': 3,\r\n    u'num_up_osds': 3}},\r\n  u'pgmap': {u'bytes_avail': 5773770256384,\r\n   u'bytes_total': 5790183444480,\r\n   u'bytes_used': 16413188096,\r\n   u'data_bytes': 93518157,\r\n   u'num_pgs': 264,\r\n   u'pgs_by_state': [{u'count': 264, u'state_name': u'active+clean'}],\r\n   u'version': 2459},\r\n  u'quorum': [0],\r\n  u'quorum_names': [u'node1']},\r\n u'status': u'OK'}\r\n```\r\n\r\nCeph version and mon status:\r\n```\r\n# ceph -v\r\nceph version 0.72.2 (a913ded2ff138aefb8cb84d347d72164099cfd60)\r\n\r\n # ceph mon stat\r\ne2: 1 mons at {node1=10.251.8.238:6789/0}, election epoch 21, quorum 0 node1\r\n```\r\n\r\nThis is my configuration problem or a problem in the code?\r\n\r\nThank you!"},"comment":{"url":"https://api.github.com/repos/krakendash/krakendash/issues/comments/112208046","html_url":"https://github.com/krakendash/krakendash/issues/29#issuecomment-112208046","issue_url":"https://api.github.com/repos/krakendash/krakendash/issues/29","id":112208046,"user":{"login":"tdeneau","id":154051,"avatar_url":"https://avatars.githubusercontent.com/u/154051?v=3","gravatar_id":"","url":"https://api.github.com/users/tdeneau","html_url":"https://github.com/tdeneau","followers_url":"https://api.github.com/users/tdeneau/followers","following_url":"https://api.github.com/users/tdeneau/following{/other_user}","gists_url":"https://api.github.com/users/tdeneau/gists{/gist_id}","starred_url":"https://api.github.com/users/tdeneau/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tdeneau/subscriptions","organizations_url":"https://api.github.com/users/tdeneau/orgs","repos_url":"https://api.github.com/users/tdeneau/repos","events_url":"https://api.github.com/users/tdeneau/events{/privacy}","received_events_url":"https://api.github.com/users/tdeneau/received_events","type":"User","site_admin":false},"created_at":"2015-06-15T20:53:09Z","updated_at":"2015-06-15T20:53:09Z","body":"Did this restriction of needing more than one monitor ever get removed?"}}