{"action":"opened","issue":{"url":"https://api.github.com/repos/mesosphere/marathon/issues/3653","repository_url":"https://api.github.com/repos/mesosphere/marathon","labels_url":"https://api.github.com/repos/mesosphere/marathon/issues/3653/labels{/name}","comments_url":"https://api.github.com/repos/mesosphere/marathon/issues/3653/comments","events_url":"https://api.github.com/repos/mesosphere/marathon/issues/3653/events","html_url":"https://github.com/mesosphere/marathon/issues/3653","id":145990412,"number":3653,"title":"Applications with persitent local volumes do not start","user":{"login":"Poltergeist","id":156010,"avatar_url":"https://avatars.githubusercontent.com/u/156010?v=3","gravatar_id":"","url":"https://api.github.com/users/Poltergeist","html_url":"https://github.com/Poltergeist","followers_url":"https://api.github.com/users/Poltergeist/followers","following_url":"https://api.github.com/users/Poltergeist/following{/other_user}","gists_url":"https://api.github.com/users/Poltergeist/gists{/gist_id}","starred_url":"https://api.github.com/users/Poltergeist/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Poltergeist/subscriptions","organizations_url":"https://api.github.com/users/Poltergeist/orgs","repos_url":"https://api.github.com/users/Poltergeist/repos","events_url":"https://api.github.com/users/Poltergeist/events{/privacy}","received_events_url":"https://api.github.com/users/Poltergeist/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/mesosphere/marathon/labels/bug","name":"bug","color":"fc2929"},{"url":"https://api.github.com/repos/mesosphere/marathon/labels/service","name":"service","color":"eb6420"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2016-04-05T13:32:45Z","updated_at":"2016-04-05T13:32:45Z","closed_at":null,"body":"Adding an application with persistent local volumes does not start on marathon. I have tried multiple different app definitions. Logs and definitions are included below.\r\n- `statefull-application-working` is a python tool.\r\n- `stateful-volumes-working` is a simple application with a local volume associated.\r\n- `volume` is a very simple application which was created with the ui.\r\n\r\nLogs\r\n```\r\n[2016-04-05 13:06:35,274] INFO Processing ForceExpunge(task [stateful-application.49cafa27-fb2c-11e5-9ba8-8a2561d6480a]) for task [stateful-application.49cafa27-fb2c-11e5-9ba8-8a2561d6480a] (mesosphere.marathon.core.launcher.impl.OfferProcessorImpl:ForkJoinPool-2-worker-1)\r\n[2016-04-05 13:06:35,274] INFO Ignoring ForceExpunge for [task [stateful-application.49cafa27-fb2c-11e5-9ba8-8a2561d6480a]], task does not exist (mesosphere.marathon.core.task.tracker.impl.TaskOpProcessorImpl$TaskStateOpResolver:marathon-akka.actor.default-dispatcher-8)\r\n[2016-04-05 13:06:35,274] INFO accepted unreserveAndDestroy for task [stateful-application.49cafa27-fb2c-11e5-9ba8-8a2561d6480a] in offer [9d8f8a58-ef25-4abc-adf0-78e046672dfa-O1421] (mesosphere.marathon.core.matcher.reconcile.impl.OfferMatcherReconciler:ForkJoinPool-2-worker-1)\r\n[2016-04-05 13:06:36,275] INFO Processing ForceExpunge(task [stateful-application.49cafa27-fb2c-11e5-9ba8-8a2561d6480a]) for task [stateful-application.49cafa27-fb2c-11e5-9ba8-8a2561d6480a] (mesosphere.marathon.core.launcher.impl.OfferProcessorImpl:ForkJoinPool-2-worker-7)\r\n[2016-04-05 13:06:36,275] INFO Ignoring ForceExpunge for [task [stateful-application.49cafa27-fb2c-11e5-9ba8-8a2561d6480a]], task does not exist (mesosphere.marathon.core.task.tracker.impl.TaskOpProcessorImpl$TaskStateOpResolver:marathon-akka.actor.default-dispatcher-12)\r\n[2016-04-05 13:06:36,275] INFO accepted unreserveAndDestroy for task [stateful-application.49cafa27-fb2c-11e5-9ba8-8a2561d6480a] in offer [9d8f8a58-ef25-4abc-adf0-78e046672dfa-O1422] (mesosphere.marathon.core.matcher.reconcile.impl.OfferMatcherReconciler:ForkJoinPool-2-worker-9)\r\n[2016-04-05 13:06:37,276] INFO Processing ForceExpunge(task [stateful-application.49cafa27-fb2c-11e5-9ba8-8a2561d6480a]) for task [stateful-application.49cafa27-fb2c-11e5-9ba8-8a2561d6480a] (mesosphere.marathon.core.launcher.impl.OfferProcessorImpl:ForkJoinPool-2-worker-1)\r\n[2016-04-05 13:06:37,276] INFO Ignoring ForceExpunge for [task [stateful-application.49cafa27-fb2c-11e5-9ba8-8a2561d6480a]], task does not exist (mesosphere.marathon.core.task.tracker.impl.TaskOpProcessorImpl$TaskStateOpResolver:marathon-akka.actor.default-dispatcher-12)\r\n[2016-04-05 13:06:37,276] INFO accepted unreserveAndDestroy for task [stateful-application.49cafa27-fb2c-11e5-9ba8-8a2561d6480a] in offer [9d8f8a58-ef25-4abc-adf0-78e046672dfa-O1423] (mesosphere.marathon.core.matcher.reconcile.impl.OfferMatcherReconciler:ForkJoinPool-2-worker-5)\r\n[2016-04-05 13:06:37,294] INFO initiate task reconciliation (mesosphere.marathon.MarathonSchedulerActor:marathon-akka.actor.default-dispatcher-7)\r\n[2016-04-05 13:06:37,294] INFO reconcile [/stateful-application-working] with latest version [2016-04-05T12:49:00.912Z] (mesosphere.marathon.health.MarathonHealthCheckManager$$EnhancerByGuice$$5c8ec9ec:ForkJoinPool-2-worker-11)\r\n[2016-04-05 13:06:37,294] INFO reconcile [/local-volumes-working] with latest version [2016-04-05T12:50:43.341Z] (mesosphere.marathon.health.MarathonHealthCheckManager$$EnhancerByGuice$$5c8ec9ec:ForkJoinPool-2-worker-1)\r\n[2016-04-05 13:06:37,294] INFO reconcile [/volumes] with latest version [2016-04-05T12:55:40.039Z] (mesosphere.marathon.health.MarathonHealthCheckManager$$EnhancerByGuice$$5c8ec9ec:ForkJoinPool-2-worker-7)\r\n[2016-04-05 13:06:37,294] INFO Requesting task reconciliation with the Mesos master (mesosphere.marathon.SchedulerActions:ForkJoinPool-2-worker-15)\r\n[2016-04-05 13:06:37,294] INFO addAllFor [/volumes] version [2016-04-05T12:55:40.039Z] (mesosphere.marathon.health.MarathonHealthCheckManager$$EnhancerByGuice$$5c8ec9ec:ForkJoinPool-2-worker-7)\r\n[2016-04-05 13:06:37,294] INFO addAllFor [/local-volumes-working] version [2016-04-05T12:50:43.341Z] (mesosphere.marathon.health.MarathonHealthCheckManager$$EnhancerByGuice$$5c8ec9ec:ForkJoinPool-2-worker-1)\r\n[2016-04-05 13:06:37,294] INFO task reconciliation has finished (mesosphere.marathon.MarathonSchedulerActor:marathon-akka.actor.default-dispatcher-12)\r\n[2016-04-05 13:06:37,294] INFO addAllFor [/stateful-application-working] version [2016-04-05T12:49:00.912Z] (mesosphere.marathon.health.MarathonHealthCheckManager$$EnhancerByGuice$$5c8ec9ec:ForkJoinPool-2-worker-11)\r\n[2016-04-05 13:06:38,277] INFO Processing ForceExpunge(task [stateful-application.49cafa27-fb2c-11e5-9ba8-8a2561d6480a]) for task [stateful-application.49cafa27-fb2c-11e5-9ba8-8a2561d6480a] (mesosphere.marathon.core.launcher.impl.OfferProcessorImpl:ForkJoinPool-2-worker-9)\r\n[2016-04-05 13:06:38,277] INFO Ignoring ForceExpunge for [task [stateful-application.49cafa27-fb2c-11e5-9ba8-8a2561d6480a]], task does not exist (mesosphere.marathon.core.task.tracker.impl.TaskOpProcessorImpl$TaskStateOpResolver:marathon-akka.actor.default-dispatcher-12)\r\n[2016-04-05 13:06:38,277] INFO accepted unreserveAndDestroy for task [stateful-application.49cafa27-fb2c-11e5-9ba8-8a2561d6480a] in offer [9d8f8a58-ef25-4abc-adf0-78e046672dfa-O1424] (mesosphere.marathon.core.matcher.reconcile.impl.OfferMatcherReconciler:ForkJoinPool-2-worker-9)\r\n```\r\n\r\nApp definitions:\r\n```JSON\r\n{\r\n  \"apps\": [\r\n    {\r\n      \"id\": \"/stateful-application-working\",\r\n      \"cmd\": \"pip install markdoc && markdoc init ./home || echo && echo \\\"# Started At `date`\\\" >> ./home/wiki/index.md && cd ./home && markdoc build && (markdoc serve -i 0.0.0.0 -p $PORT0 & while true; do sleep 5; echo `date` >> wiki/index.md; echo >> wiki/index.md; markdoc build; done)\",\r\n      \"instances\": 1,\r\n      \"cpus\": 0.1,\r\n      \"mem\": 32,\r\n      \"disk\": 0,\r\n      \"ports\": [\r\n        0\r\n      ],\r\n      \"maxLaunchDelaySeconds\": 3600,\r\n\r\n      \"container\": {\r\n        \"type\": \"MESOS\",\r\n        \"volumes\": [\r\n          {\r\n            \"containerPath\": \"home\",\r\n            \"mode\": \"RW\",\r\n            \"persistent\": {\r\n              \"size\": 100\r\n            }\r\n          }\r\n        ]\r\n      },\r\n      \"upgradeStrategy\": {\r\n        \"minimumHealthCapacity\": 0.5,\r\n        \"maximumOverCapacity\": 0\r\n      },\r\n      \"residency\": {\r\n        \"relaunchEscalationTimeoutSeconds\": 10,\r\n        \"taskLostBehavior\": \"WAIT_FOREVER\"\r\n      }\r\n    },\r\n    {\r\n      \"id\": \"/local-volumes-working\",\r\n      \"cmd\": \"sleep 1000\",\r\n      \"instances\": 1,\r\n      \"cpus\": 0.1,\r\n      \"mem\": 32,\r\n      \"disk\": 0,\r\n      \"ports\": [\r\n        0\r\n      ],\r\n      \"container\": {\r\n        \"type\": \"MESOS\",\r\n        \"volumes\": [\r\n          {\r\n            \"containerPath\": \"home\",\r\n            \"mode\": \"RW\",\r\n            \"persistent\": {\r\n              \"size\": 100\r\n            }\r\n          }\r\n        ]\r\n      },\r\n      \"upgradeStrategy\": {\r\n        \"minimumHealthCapacity\": 0.5,\r\n        \"maximumOverCapacity\": 0\r\n      },\r\n      \"residency\": {\r\n        \"relaunchEscalationTimeoutSeconds\": 10,\r\n        \"taskLostBehavior\": \"WAIT_FOREVER\"\r\n      },\r\n      \"versionInfo\": {\r\n        \"lastScalingAt\": \"2016-04-05T12:50:43.341Z\",\r\n        \"lastConfigChangeAt\": \"2016-04-05T12:50:43.341Z\"\r\n      }\r\n    },\r\n    {\r\n      \"id\": \"/volumes\",\r\n      \"cmd\": \"sleep 1000;\",\r\n      \"instances\": 1,\r\n      \"cpus\": 0.1,\r\n      \"mem\": 128,\r\n      \"disk\": 0,\r\n      \"container\": {\r\n        \"type\": \"MESOS\",\r\n        \"volumes\": [\r\n          {\r\n            \"containerPath\": \"home\",\r\n            \"mode\": \"RW\",\r\n            \"persistent\": {\r\n              \"size\": 1024\r\n            }\r\n          }\r\n        ]\r\n      },\r\n      \"upgradeStrategy\": {\r\n        \"minimumHealthCapacity\": 0.5,\r\n        \"maximumOverCapacity\": 0\r\n      },\r\n      \"residency\": {\r\n        \"relaunchEscalationTimeoutSeconds\": 10,\r\n        \"taskLostBehavior\": \"WAIT_FOREVER\"\r\n      }\r\n    }\r\n  ]\r\n}\r\n\r\n```"}}