{"action":"created","issue":{"url":"https://api.github.com/repos/mesosphere/marathon/issues/1610","labels_url":"https://api.github.com/repos/mesosphere/marathon/issues/1610/labels{/name}","comments_url":"https://api.github.com/repos/mesosphere/marathon/issues/1610/comments","events_url":"https://api.github.com/repos/mesosphere/marathon/issues/1610/events","html_url":"https://github.com/mesosphere/marathon/issues/1610","id":85414236,"number":1610,"title":"Marathon 0.80 upgrade deployment stuck with no tasks in the queue","user":{"login":"mingqi","id":1481145,"avatar_url":"https://avatars.githubusercontent.com/u/1481145?v=3","gravatar_id":"","url":"https://api.github.com/users/mingqi","html_url":"https://github.com/mingqi","followers_url":"https://api.github.com/users/mingqi/followers","following_url":"https://api.github.com/users/mingqi/following{/other_user}","gists_url":"https://api.github.com/users/mingqi/gists{/gist_id}","starred_url":"https://api.github.com/users/mingqi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mingqi/subscriptions","organizations_url":"https://api.github.com/users/mingqi/orgs","repos_url":"https://api.github.com/users/mingqi/repos","events_url":"https://api.github.com/users/mingqi/events{/privacy}","received_events_url":"https://api.github.com/users/mingqi/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/mesosphere/marathon/labels/bug","name":"bug","color":"fc2929"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":6,"created_at":"2015-06-05T04:15:07Z","updated_at":"2015-06-08T00:16:05Z","closed_at":null,"body":"I have similar issue with #731 .  My marathon is 0.80 and mesos is 0.21.0. This issue occasionally happen only for app upgrade.  I saw a deployment was create and stuck on 0 / 1 progress. The step is \"RestartApplication\". Detail deployments information from /v2/deployments in below.\r\n\r\n```json\r\n[  \r\n   {  \r\n      \"currentStep\":1,\r\n      \"currentActions\":[  \r\n         {  \r\n            \"action\":\"RestartApplication\",\r\n            \"app\":\"/ef3f50a8-beca-4548-ae3a-16b4ebfd600f\"\r\n         }\r\n      ],\r\n      \"affectedApps\":[  \r\n         \"/ef3f50a8-beca-4548-ae3a-16b4ebfd600f\"\r\n      ],\r\n      \"version\":\"2015-06-05T03:47:56.958Z\",\r\n      \"id\":\"2e5c04f4-a6e6-475f-ad68-f3a3a264fddc\",\r\n      \"totalSteps\":1,\r\n      \"steps\":[  \r\n         [  \r\n            {  \r\n               \"action\":\"RestartApplication\",\r\n               \"app\":\"/ef3f50a8-beca-4548-ae3a-16b4ebfd600f\"\r\n            }\r\n         ]\r\n      ]\r\n   }\r\n]\r\n```\r\n\r\nThere are only two line logs related to the deployments:\r\n```\r\nJun  5 04:28:37 ip-172-31-8-66 marathon[8933]: [INFO] [06/05/2015 04:28:37.532] [marathon-akka.actor.default-dispatcher-842] [akka://marathon/user/MarathonScheduler/$a/UpgradeManager/c36468c7-414d-4e2a-a8b0-6f804eb4ad7e/$a] For minimumHealthCapacity 1.0 of /fa8d8f9c-0989-405c-9473-2b70f3eafda8 leave 1 tasks running, maximum capacity 2, killing 0 tasks immediately\r\nJun  5 04:28:37 ip-172-31-8-66 marathon[8933]: [INFO] [06/05/2015 04:28:37.532] [marathon-akka.actor.default-dispatcher-842] [akka://marathon/user/MarathonScheduler/$a/UpgradeManager/c36468c7-414d-4e2a-a8b0-6f804eb4ad7e/$a] Reconciliating tasks during app /fa8d8f9c-0989-405c-9473-2b70f3eafda8 restart: queuing 1 new tasks\r\n``` \r\n\r\nI observed another confuse things:  Some task will left in task queue (GET /v2/queue ) even though application has been successfully deployed.  In my understanding the app will remove from queue after deployment done.  Back to my case, I found upgrade will success if last app deployment left task in queue, otherwise upgrade will failed. That's weird."},"comment":{"url":"https://api.github.com/repos/mesosphere/marathon/issues/comments/109816966","html_url":"https://github.com/mesosphere/marathon/issues/1610#issuecomment-109816966","issue_url":"https://api.github.com/repos/mesosphere/marathon/issues/1610","id":109816966,"user":{"login":"mingqi","id":1481145,"avatar_url":"https://avatars.githubusercontent.com/u/1481145?v=3","gravatar_id":"","url":"https://api.github.com/users/mingqi","html_url":"https://github.com/mingqi","followers_url":"https://api.github.com/users/mingqi/followers","following_url":"https://api.github.com/users/mingqi/following{/other_user}","gists_url":"https://api.github.com/users/mingqi/gists{/gist_id}","starred_url":"https://api.github.com/users/mingqi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mingqi/subscriptions","organizations_url":"https://api.github.com/users/mingqi/orgs","repos_url":"https://api.github.com/users/mingqi/repos","events_url":"https://api.github.com/users/mingqi/events{/privacy}","received_events_url":"https://api.github.com/users/mingqi/received_events","type":"User","site_admin":false},"created_at":"2015-06-08T00:16:05Z","updated_at":"2015-06-08T00:16:05Z","body":"Issue look like be fixed after upgrade to 0.8.1. Closing this issue."}}