{"action":"created","issue":{"url":"https://api.github.com/repos/oar-team/oar-kao/issues/1","repository_url":"https://api.github.com/repos/oar-team/oar-kao","labels_url":"https://api.github.com/repos/oar-team/oar-kao/issues/1/labels{/name}","comments_url":"https://api.github.com/repos/oar-team/oar-kao/issues/1/comments","events_url":"https://api.github.com/repos/oar-team/oar-kao/issues/1/events","html_url":"https://github.com/oar-team/oar-kao/issues/1","id":126049041,"number":1,"title":"Kamelot crashed when requesting cores resources","user":{"login":"SalemHarrache","id":463226,"avatar_url":"https://avatars.githubusercontent.com/u/463226?v=3","gravatar_id":"","url":"https://api.github.com/users/SalemHarrache","html_url":"https://github.com/SalemHarrache","followers_url":"https://api.github.com/users/SalemHarrache/followers","following_url":"https://api.github.com/users/SalemHarrache/following{/other_user}","gists_url":"https://api.github.com/users/SalemHarrache/gists{/gist_id}","starred_url":"https://api.github.com/users/SalemHarrache/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SalemHarrache/subscriptions","organizations_url":"https://api.github.com/users/SalemHarrache/orgs","repos_url":"https://api.github.com/users/SalemHarrache/repos","events_url":"https://api.github.com/users/SalemHarrache/events{/privacy}","received_events_url":"https://api.github.com/users/SalemHarrache/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/oar-team/oar-kao/labels/bug","name":"bug","color":"fc2929"}],"state":"open","locked":false,"assignee":{"login":"augu5te","id":2647100,"avatar_url":"https://avatars.githubusercontent.com/u/2647100?v=3","gravatar_id":"","url":"https://api.github.com/users/augu5te","html_url":"https://github.com/augu5te","followers_url":"https://api.github.com/users/augu5te/followers","following_url":"https://api.github.com/users/augu5te/following{/other_user}","gists_url":"https://api.github.com/users/augu5te/gists{/gist_id}","starred_url":"https://api.github.com/users/augu5te/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/augu5te/subscriptions","organizations_url":"https://api.github.com/users/augu5te/orgs","repos_url":"https://api.github.com/users/augu5te/repos","events_url":"https://api.github.com/users/augu5te/events{/privacy}","received_events_url":"https://api.github.com/users/augu5te/received_events","type":"User","site_admin":false},"milestone":null,"comments":2,"created_at":"2016-01-11T22:11:40Z","updated_at":"2016-02-15T22:40:23Z","closed_at":null,"body":"I tried to do a simple job submission with one core as a resource but Kamelot crashed with the following traceback\r\n```\r\nfrontend>$ oarsub -l core=1 -I\r\n```\r\n\r\n```\r\n[debug] [2016-01-11 22:44:12.487] [MetaSched] Queue default: Launching scheduler kamelot at time 2016-01-11 22:44:13\r\n[   DEBUG] [2016-01-11 22:44:12,782] [oar.kamelot]: argv...['/usr/local/lib/oar//schedulers/kamelot', 'default', '1452548653', '2016-01-11 22:44:13']\r\n[    INFO] [2016-01-11 22:44:12,782] [oar.kamelot]: Begin scheduling....now: 1452548653, queue: default\r\n[    INFO] [2016-01-11 22:44:12,867] [oar.kamelot]: nb_waiting_jobs:1\r\n[   DEBUG] [2016-01-11 22:44:12,867] [oar.kamelot]: waiting_jid: 1\r\n[   DEBUG] [2016-01-11 22:44:12,946] [oar.kamelot]: Schedule job:1\r\nTraceback (most recent call last):\r\n  File \"/usr/local/lib/oar//schedulers/kamelot\", line 9, in <module>\r\n    load_entry_point('oar-kao', 'console_scripts', 'kamelot')()\r\n  File \"/oar-python/kao/oar/kao/kamelot.py\", line 195, in main\r\n    schedule_cycle(plt, int(float(sys.argv[2])), sys.argv[1])\r\n  File \"/oar-python/kao/oar/kao/kamelot.py\", line 170, in schedule_cycle\r\n    job_security_time)\r\n  File \"/oar-python/kao/oar/kao/scheduling.py\", line 316, in schedule_id_jobs_ct\r\n    assign_resources_mld_job_split_slots(slots_set, job, hy, min_start_time)\r\n  File \"/oar-python/kao/oar/kao/scheduling.py\", line 226, in assign_resources_mld_job_split_slots\r\n    slots_set, job, res_rqt, hy, min_start_time)\r\n  File \"/oar-python/kao/oar/kao/scheduling.py\", line 185, in find_first_suitable_contiguous_slots\r\n    itvs = find_resource_hierarchies_job(itvs_avail, hy_res_rqts, hy)\r\n  File \"/oar-python/kao/oar/kao/scheduling.py\", line 85, in find_resource_hierarchies_job\r\n    hy_levels.append(hy[l_name])\r\nKeyError: u'core'\r\n```\r\n\r\n```\r\n> /oar-python/kao/oar/kao/scheduling.py(86)find_resource_hierarchies_job()\r\n-> hy_levels.append(hy[l_name])\r\n(Pdb) hy_levels\r\n[]\r\n(Pdb) hy\r\n{'network_address': [[(0, 7)], [(8, 15)], [(16, 23)]], 'resource_id': [[(0, 0)], [(1, 1)], [(2, 2)], [(3, 3)], [(4, 4)], [(5, 5)], [(6, 6)], [(7, 7)], [(8, 8)], [(9, 9)], [(10, 10)], [(11, 11)], [(12, 12)], [(13, 13)], [(14, 14)], [(15, 15)], [(16, 16)], [(17, 17)], [(18, 18)], [(19, 19)], [(20, 20)], [(21, 21)], [(22, 22)], [(23, 23)]]}\r\n```\r\n\r\n```\r\n-> res_set, sid_left, sid_right = find_first_suitable_contiguous_slots(\r\n(Pdb) job.mld_res_rqts\r\n[(1L, 7260, [([(u'core', 1)], [(0, 23)])])]\r\n```"},"comment":{"url":"https://api.github.com/repos/oar-team/oar-kao/issues/comments/184426829","html_url":"https://github.com/oar-team/oar-kao/issues/1#issuecomment-184426829","issue_url":"https://api.github.com/repos/oar-team/oar-kao/issues/1","id":184426829,"user":{"login":"SalemHarrache","id":463226,"avatar_url":"https://avatars.githubusercontent.com/u/463226?v=3","gravatar_id":"","url":"https://api.github.com/users/SalemHarrache","html_url":"https://github.com/SalemHarrache","followers_url":"https://api.github.com/users/SalemHarrache/followers","following_url":"https://api.github.com/users/SalemHarrache/following{/other_user}","gists_url":"https://api.github.com/users/SalemHarrache/gists{/gist_id}","starred_url":"https://api.github.com/users/SalemHarrache/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SalemHarrache/subscriptions","organizations_url":"https://api.github.com/users/SalemHarrache/orgs","repos_url":"https://api.github.com/users/SalemHarrache/repos","events_url":"https://api.github.com/users/SalemHarrache/events{/privacy}","received_events_url":"https://api.github.com/users/SalemHarrache/received_events","type":"User","site_admin":false},"created_at":"2016-02-15T22:40:23Z","updated_at":"2016-02-15T22:40:23Z","body":"OK, it seems this is what's causing the issue.\r\n\r\nHowever, in the conf file oar.conf, the (commented) variable is called:\r\n```\r\n#HIERARCHY_LABELS=\"resource_id,network_address,cpu,core\"\r\n```\r\nWhereas it's called HIERARCHY_LABEL in the code.\r\n\r\nSo, should we correct the conf file?"}}