{"action":"opened","issue":{"url":"https://api.github.com/repos/ganeti/ganeti/issues/344","repository_url":"https://api.github.com/repos/ganeti/ganeti","labels_url":"https://api.github.com/repos/ganeti/ganeti/issues/344/labels{/name}","comments_url":"https://api.github.com/repos/ganeti/ganeti/issues/344/comments","events_url":"https://api.github.com/repos/ganeti/ganeti/issues/344/events","html_url":"https://github.com/ganeti/ganeti/issues/344","id":237992492,"number":344,"title":"Implement job retry functionality","user":{"login":"Ganeti-Issues-Migrator","id":29254221,"avatar_url":"https://avatars3.githubusercontent.com/u/29254221?v=3","gravatar_id":"","url":"https://api.github.com/users/Ganeti-Issues-Migrator","html_url":"https://github.com/Ganeti-Issues-Migrator","followers_url":"https://api.github.com/users/Ganeti-Issues-Migrator/followers","following_url":"https://api.github.com/users/Ganeti-Issues-Migrator/following{/other_user}","gists_url":"https://api.github.com/users/Ganeti-Issues-Migrator/gists{/gist_id}","starred_url":"https://api.github.com/users/Ganeti-Issues-Migrator/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Ganeti-Issues-Migrator/subscriptions","organizations_url":"https://api.github.com/users/Ganeti-Issues-Migrator/orgs","repos_url":"https://api.github.com/users/Ganeti-Issues-Migrator/repos","events_url":"https://api.github.com/users/Ganeti-Issues-Migrator/events{/privacy}","received_events_url":"https://api.github.com/users/Ganeti-Issues-Migrator/received_events","type":"User","site_admin":false},"labels":[{"id":631648911,"url":"https://api.github.com/repos/ganeti/ganeti/labels/imported_from_google_code","name":"imported_from_google_code","color":"ededed","default":false},{"id":631678998,"url":"https://api.github.com/repos/ganeti/ganeti/labels/Status:Accepted","name":"Status:Accepted","color":"ededed","default":false},{"id":631648913,"url":"https://api.github.com/repos/ganeti/ganeti/labels/Type-Enhancement","name":"Type-Enhancement","color":"ededed","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2017-06-22T22:31:56Z","updated_at":"2017-06-22T22:31:56Z","closed_at":null,"body":"Originally reported of Google Code with ID 288.\n\n```\nSome failed or cancelled jobs, depending on failure mode, could proceed if they were simply retried. Sadly Ganeti doesn't have this functionality, and the only way do to it is:\r\n\r\n- stop masterd\r\n- edit job file, remove timestamps, update status, etc.\r\n- restart masterd\r\n\r\nIt would be much better if we could simply:\r\n\r\n  $ gnt-job retry xxx\r\n\r\nWhich would do all the requisite parts without needing to restart masterd or manually edit the job file.\r\n\r\nNote: masterd must read the job from disk, instead of resubmitting the in-memory job, to account for potential manual edits to it.\r\n\r\nNote2: a later improvement would be to allow arbitrary edits to the job before submission (e.g. gnt-job retry --mod 0:pnode=foo xxx, to edit the first opcode's pnode field; errors should be handled the same way as for a new job with wrong fields).\n```\nOriginally added on 2012-10-31 11:16:46 +0000 UTC."}}
{"actor":{"display_login":"Ganeti-Issues-Migrator"}}