{"action":"created","issue":{"url":"https://api.github.com/repos/deis/controller/issues/1002","repository_url":"https://api.github.com/repos/deis/controller","labels_url":"https://api.github.com/repos/deis/controller/issues/1002/labels{/name}","comments_url":"https://api.github.com/repos/deis/controller/issues/1002/comments","events_url":"https://api.github.com/repos/deis/controller/issues/1002/events","html_url":"https://github.com/deis/controller/issues/1002","id":172474606,"number":1002,"title":"Failed to delete pod during rollback","user":{"login":"gabrtv","id":231123,"avatar_url":"https://avatars.githubusercontent.com/u/231123?v=3","gravatar_id":"","url":"https://api.github.com/users/gabrtv","html_url":"https://github.com/gabrtv","followers_url":"https://api.github.com/users/gabrtv/followers","following_url":"https://api.github.com/users/gabrtv/following{/other_user}","gists_url":"https://api.github.com/users/gabrtv/gists{/gist_id}","starred_url":"https://api.github.com/users/gabrtv/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gabrtv/subscriptions","organizations_url":"https://api.github.com/users/gabrtv/orgs","repos_url":"https://api.github.com/users/gabrtv/repos","events_url":"https://api.github.com/users/gabrtv/events{/privacy}","received_events_url":"https://api.github.com/users/gabrtv/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/deis/controller/labels/bug","name":"bug","color":"fc2929"}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":{"url":"https://api.github.com/repos/deis/controller/milestones/16","html_url":"https://github.com/deis/controller/milestones/v2.5","labels_url":"https://api.github.com/repos/deis/controller/milestones/16/labels","id":1921992,"number":16,"title":"v2.5","description":null,"creator":{"login":"deis-admin","id":12703824,"avatar_url":"https://avatars.githubusercontent.com/u/12703824?v=3","gravatar_id":"","url":"https://api.github.com/users/deis-admin","html_url":"https://github.com/deis-admin","followers_url":"https://api.github.com/users/deis-admin/followers","following_url":"https://api.github.com/users/deis-admin/following{/other_user}","gists_url":"https://api.github.com/users/deis-admin/gists{/gist_id}","starred_url":"https://api.github.com/users/deis-admin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/deis-admin/subscriptions","organizations_url":"https://api.github.com/users/deis-admin/orgs","repos_url":"https://api.github.com/users/deis-admin/repos","events_url":"https://api.github.com/users/deis-admin/events{/privacy}","received_events_url":"https://api.github.com/users/deis-admin/received_events","type":"User","site_admin":false},"open_issues":12,"closed_issues":11,"state":"open","created_at":"2016-08-03T21:37:32Z","updated_at":"2016-08-22T21:42:21Z","due_on":"2016-08-30T00:00:00Z","closed_at":null},"comments":3,"created_at":"2016-08-22T14:57:43Z","updated_at":"2016-08-23T15:09:13Z","closed_at":null,"body":"While working through a simple buildpack workflow, I ran into an error on rollback:\r\n\r\n```console\r\n$ deis releases\r\n=== go Releases\r\nv3\t2016-08-22T14:47:47Z\tgabrtv added POWERED_BY\r\nv2\t2016-08-22T14:46:30Z\tgabrtv deployed 3ab4abf\r\nv1\t2016-08-22T14:46:09Z\tgabrtv created initial release\r\n$ deis rollback v2\r\nRolling back to v2... Error: Unknown Error (400): {\"detail\":\"('failed to delete Pod \\\"go-web-1441118122-jnrsq\\\" in Namespace \\\"go\\\": 404 Not Found', 'go-web-1441118122-jnrsq', 'go')\"}\r\n```\r\n\r\nDespite the error, the rollback seems to have worked server-side.  Environment notes:\r\n- GKE cluster v1.3.5\r\n- Deis Workflow v2.4.1"},"comment":{"url":"https://api.github.com/repos/deis/controller/issues/comments/241763339","html_url":"https://github.com/deis/controller/issues/1002#issuecomment-241763339","issue_url":"https://api.github.com/repos/deis/controller/issues/1002","id":241763339,"user":{"login":"lachie83","id":6912984,"avatar_url":"https://avatars.githubusercontent.com/u/6912984?v=3","gravatar_id":"","url":"https://api.github.com/users/lachie83","html_url":"https://github.com/lachie83","followers_url":"https://api.github.com/users/lachie83/followers","following_url":"https://api.github.com/users/lachie83/following{/other_user}","gists_url":"https://api.github.com/users/lachie83/gists{/gist_id}","starred_url":"https://api.github.com/users/lachie83/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lachie83/subscriptions","organizations_url":"https://api.github.com/users/lachie83/orgs","repos_url":"https://api.github.com/users/lachie83/repos","events_url":"https://api.github.com/users/lachie83/events{/privacy}","received_events_url":"https://api.github.com/users/lachie83/received_events","type":"User","site_admin":false},"created_at":"2016-08-23T15:09:13Z","updated_at":"2016-08-23T15:09:13Z","body":"Here's the stack\r\n```\r\nERROR:root:('failed to delete Pod \"go-web-3068475914-nwshd\" in Namespace \"go\": 404 Not Found', 'go-web-3068475914-nwshd', 'go')\r\nTraceback (most recent call last):\r\n  File \"/app/api/views.py\", line 273, in post_save\r\n    config.app.deploy(self.release)\r\n  File \"/app/api/models/app.py\", line 575, in deploy\r\n    release.cleanup_old()\r\n  File \"/app/api/models/release.py\", line 308, in cleanup_old\r\n    self._scheduler.delete_pod(self.app.id, pod['metadata']['name'])\r\n  File \"/app/scheduler/__init__.py\", line 1267, in delete_pod\r\n    raise KubeHTTPException(resp, 'delete Pod \"{}\" in Namespace \"{}\"', name, namespace)\r\nscheduler.KubeHTTPException: ('failed to delete Pod \"go-web-3068475914-nwshd\" in Namespace \"go\": 404 Not Found', 'go-web-3068475914-nwshd', 'go')\r\n\r\nThe above exception was the direct cause of the following exception:\r\n\r\nTraceback (most recent call last):\r\n  File \"/usr/local/lib/python3.5/dist-packages/rest_framework/views.py\", line 471, in dispatch\r\n    response = handler(request, *args, **kwargs)\r\n  File \"/app/api/views.py\", line 181, in create\r\n    return super(AppResourceViewSet, self).create(request, **kwargs)\r\n  File \"/usr/local/lib/python3.5/dist-packages/rest_framework/mixins.py\", line 21, in create\r\n    self.perform_create(serializer)\r\n  File \"/app/api/viewsets.py\", line 21, in perform_create\r\n    self.post_save(obj)\r\n  File \"/app/api/views.py\", line 276, in post_save\r\n    raise DeisException(str(e)) from e\r\napi.exceptions.DeisException: ('failed to delete Pod \"go-web-3068475914-nwshd\" in Namespace \"go\": 404 Not Found', 'go-web-3068475914-nwshd', 'go')\r\n10.244.2.9 \"POST /v2/apps/go/config/ HTTP/1.1\" 400 133 \"Deis Client vv2.4.0\"\r\n```"}}
{"actor":{"display_login":"lachie83"}}