{"action":"created","issue":{"url":"https://api.github.com/repos/lago-project/lago/issues/307","repository_url":"https://api.github.com/repos/lago-project/lago","labels_url":"https://api.github.com/repos/lago-project/lago/issues/307/labels{/name}","comments_url":"https://api.github.com/repos/lago-project/lago/issues/307/comments","events_url":"https://api.github.com/repos/lago-project/lago/issues/307/events","html_url":"https://github.com/lago-project/lago/issues/307","id":175264149,"number":307,"title":"lago destroy doesn't work when init failed","user":{"login":"kivio","id":1194156,"avatar_url":"https://avatars.githubusercontent.com/u/1194156?v=3","gravatar_id":"","url":"https://api.github.com/users/kivio","html_url":"https://github.com/kivio","followers_url":"https://api.github.com/users/kivio/followers","following_url":"https://api.github.com/users/kivio/following{/other_user}","gists_url":"https://api.github.com/users/kivio/gists{/gist_id}","starred_url":"https://api.github.com/users/kivio/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kivio/subscriptions","organizations_url":"https://api.github.com/users/kivio/orgs","repos_url":"https://api.github.com/users/kivio/repos","events_url":"https://api.github.com/users/kivio/events{/privacy}","received_events_url":"https://api.github.com/users/kivio/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2016-09-06T14:37:29Z","updated_at":"2016-11-01T22:26:13Z","closed_at":null,"body":"I have problem with finish lago init job.  (it hangs on downloading template without any timeout exception)\nIf i break this process and want to clear environment lago destroy raise exception. \n\n```\n[kivio@centos lago-test]$ lago destroy\ncurrent session does not belong to lago group.\nError occured, aborting\nTraceback (most recent call last):\n  File \"/usr/lib/python2.7/site-packages/lago/cmd.py\", line 691, in main\n    cli_plugins[args.verb].do_run(args)\n  File \"/usr/lib/python2.7/site-packages/lago/plugins/cli.py\", line 180, in do_run\n    self._do_run(**vars(args))\n  File \"/usr/lib/python2.7/site-packages/lago/utils.py\", line 471, in wrapper\n    workdir_path = workdir_class.resolve_workdir_path(workdir_path)\n  File \"/usr/lib/python2.7/site-packages/lago/workdir.py\", line 375, in resolve_workdir_path\n    os.path.abspath(start_path)\nRuntimeError: Unable to find workdir for /home/kivio/lago-test\n```\n\nOnly one way to retry it is manually removing .lago directory.\n"},"comment":{"url":"https://api.github.com/repos/lago-project/lago/issues/comments/257717776","html_url":"https://github.com/lago-project/lago/issues/307#issuecomment-257717776","issue_url":"https://api.github.com/repos/lago-project/lago/issues/307","id":257717776,"user":{"login":"nvgoldin","id":13018704,"avatar_url":"https://avatars.githubusercontent.com/u/13018704?v=3","gravatar_id":"","url":"https://api.github.com/users/nvgoldin","html_url":"https://github.com/nvgoldin","followers_url":"https://api.github.com/users/nvgoldin/followers","following_url":"https://api.github.com/users/nvgoldin/following{/other_user}","gists_url":"https://api.github.com/users/nvgoldin/gists{/gist_id}","starred_url":"https://api.github.com/users/nvgoldin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nvgoldin/subscriptions","organizations_url":"https://api.github.com/users/nvgoldin/orgs","repos_url":"https://api.github.com/users/nvgoldin/repos","events_url":"https://api.github.com/users/nvgoldin/events{/privacy}","received_events_url":"https://api.github.com/users/nvgoldin/received_events","type":"User","site_admin":false},"created_at":"2016-11-01T22:26:13Z","updated_at":"2016-11-01T22:26:13Z","body":"OK - re-read what you wrote and I understand what you mean. I'm changing the title, as this will happen with any verb, not only 'destory', the problem is that when ``lago init`` fails it pollutes the enviornment and currently the only solution is to delete manually the ``.lago`` directory. A solution would be to delete it when ``init`` fails. Fixing it require extra-attention to the corner-cases(for example running ``init`` twice in a row)"}}
{"actor":{"display_login":"nvgoldin"}}