{"action":"created","issue":{"url":"https://api.github.com/repos/mesosphere/marathon/issues/1238","labels_url":"https://api.github.com/repos/mesosphere/marathon/issues/1238/labels{/name}","comments_url":"https://api.github.com/repos/mesosphere/marathon/issues/1238/comments","events_url":"https://api.github.com/repos/mesosphere/marathon/issues/1238/events","html_url":"https://github.com/mesosphere/marathon/issues/1238","id":58753726,"number":1238,"title":"Removal of env variables does not trigger deployment","user":{"login":"bobrik","id":89186,"avatar_url":"https://avatars.githubusercontent.com/u/89186?v=3","gravatar_id":"","url":"https://api.github.com/users/bobrik","html_url":"https://github.com/bobrik","followers_url":"https://api.github.com/users/bobrik/followers","following_url":"https://api.github.com/users/bobrik/following{/other_user}","gists_url":"https://api.github.com/users/bobrik/gists{/gist_id}","starred_url":"https://api.github.com/users/bobrik/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bobrik/subscriptions","organizations_url":"https://api.github.com/users/bobrik/orgs","repos_url":"https://api.github.com/users/bobrik/repos","events_url":"https://api.github.com/users/bobrik/events{/privacy}","received_events_url":"https://api.github.com/users/bobrik/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-02-24T15:24:05Z","updated_at":"2015-02-26T06:59:51Z","closed_at":null,"body":"1. Deploy app with env variable set.\r\n2. Remove `env` section from app definition, deploy again.\r\n3. No deployment happens.\r\n\r\nChanging of env variables triggers deploy as it should."},"comment":{"url":"https://api.github.com/repos/mesosphere/marathon/issues/comments/76131403","html_url":"https://github.com/mesosphere/marathon/issues/1238#issuecomment-76131403","issue_url":"https://api.github.com/repos/mesosphere/marathon/issues/1238","id":76131403,"user":{"login":"ConnorDoyle","id":379372,"avatar_url":"https://avatars.githubusercontent.com/u/379372?v=3","gravatar_id":"","url":"https://api.github.com/users/ConnorDoyle","html_url":"https://github.com/ConnorDoyle","followers_url":"https://api.github.com/users/ConnorDoyle/followers","following_url":"https://api.github.com/users/ConnorDoyle/following{/other_user}","gists_url":"https://api.github.com/users/ConnorDoyle/gists{/gist_id}","starred_url":"https://api.github.com/users/ConnorDoyle/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ConnorDoyle/subscriptions","organizations_url":"https://api.github.com/users/ConnorDoyle/orgs","repos_url":"https://api.github.com/users/ConnorDoyle/repos","events_url":"https://api.github.com/users/ConnorDoyle/events{/privacy}","received_events_url":"https://api.github.com/users/ConnorDoyle/received_events","type":"User","site_admin":false},"created_at":"2015-02-26T06:59:51Z","updated_at":"2015-02-26T06:59:51Z","body":"Which version are you seeing this with?  Could you add some of your HTTP interactions with the API?  For example, in my local marathon-0.8.0:\r\n\r\nFirst, clearing the environment map for an app, yielding a deployment:\r\n\r\n```http\r\nPUT /v2/apps/http HTTP/1.1\r\nAccept: application/json\r\nAccept-Encoding: gzip, deflate\r\nContent-Length: 11\r\nContent-Type: application/json; charset=utf-8\r\nHost: localhost:8080\r\nUser-Agent: HTTPie/0.8.0\r\n\r\n{\r\n    \"env\": {}\r\n}\r\n```\r\n\r\n```http\r\nHTTP/1.1 200 OK\r\nContent-Type: application/json\r\nServer: Jetty(8.y.z-SNAPSHOT)\r\nTransfer-Encoding: chunked\r\n\r\n{\r\n    \"deploymentId\": \"bb194013-8992-4a11-a4fe-a7329a4129bd\", \r\n    \"version\": \"2015-02-26T06:54:02.187Z\"\r\n}\r\n```\r\n\r\nFetching the app to see the deployment and the soon-to-be-replaced task:\r\n\r\n```http\r\nHTTP/1.1 200 OK\r\nContent-Type: application/json\r\nServer: Jetty(8.y.z-SNAPSHOT)\r\nTransfer-Encoding: chunked\r\n\r\n{\r\n    \"app\": {\r\n        \"args\": null, \r\n        \"backoffFactor\": 1.15, \r\n        \"backoffSeconds\": 1, \r\n        \"cmd\": \"python -m SimpleHTTPServer $PORT\", \r\n        \"constraints\": [], \r\n        \"container\": null, \r\n        \"cpus\": 0.1, \r\n        \"dependencies\": [], \r\n        \"deployments\": [\r\n            {\r\n                \"id\": \"bb194013-8992-4a11-a4fe-a7329a4129bd\"\r\n            }\r\n        ], \r\n        \"disk\": 0.0, \r\n        \"env\": {}, \r\n        \"executor\": \"\", \r\n        \"healthChecks\": [], \r\n        \"id\": \"/http\", \r\n        \"instances\": 1, \r\n        \"labels\": {}, \r\n        \"lastTaskFailure\": null, \r\n        \"maxLaunchDelaySeconds\": 3600, \r\n        \"mem\": 50.0, \r\n        \"ports\": [\r\n            10000\r\n        ], \r\n        \"requirePorts\": false, \r\n        \"storeUrls\": [], \r\n        \"tasks\": [\r\n            {\r\n                \"appId\": \"/http\", \r\n                \"host\": \"localhost\", \r\n                \"id\": \"http.327db799-bd84-11e4-b0b5-c27fee8cb118\", \r\n                \"ports\": [\r\n                    31000\r\n                ], \r\n                \"stagedAt\": \"2015-02-26T06:53:40.840Z\", \r\n                \"startedAt\": \"2015-02-26T06:53:40.908Z\", \r\n                \"version\": \"2015-02-26T06:53:39.367Z\"\r\n            }\r\n        ], \r\n        \"tasksRunning\": 1, \r\n        \"tasksStaged\": 0, \r\n        \"upgradeStrategy\": {\r\n            \"maximumOverCapacity\": 1.0, \r\n            \"minimumHealthCapacity\": 1.0\r\n        }, \r\n        \"uris\": [], \r\n        \"user\": null, \r\n        \"version\": \"2015-02-26T06:54:02.187Z\"\r\n    }\r\n}\r\n```\r\n\r\nFetching the app once more to observe that the deployment has been completed and the task has been replaced with a new instance.\r\n\r\n```http\r\nHTTP/1.1 200 OK\r\nContent-Type: application/json\r\nServer: Jetty(8.y.z-SNAPSHOT)\r\nTransfer-Encoding: chunked\r\n\r\n{\r\n    \"app\": {\r\n        \"args\": null, \r\n        \"backoffFactor\": 1.15, \r\n        \"backoffSeconds\": 1, \r\n        \"cmd\": \"python -m SimpleHTTPServer $PORT\", \r\n        \"constraints\": [], \r\n        \"container\": null, \r\n        \"cpus\": 0.1, \r\n        \"dependencies\": [], \r\n        \"deployments\": [], \r\n        \"disk\": 0.0, \r\n        \"env\": {}, \r\n        \"executor\": \"\", \r\n        \"healthChecks\": [], \r\n        \"id\": \"/http\", \r\n        \"instances\": 1, \r\n        \"labels\": {}, \r\n        \"lastTaskFailure\": null, \r\n        \"maxLaunchDelaySeconds\": 3600, \r\n        \"mem\": 50.0, \r\n        \"ports\": [\r\n            10000\r\n        ], \r\n        \"requirePorts\": false, \r\n        \"storeUrls\": [], \r\n        \"tasks\": [\r\n            {\r\n                \"appId\": \"/http\", \r\n                \"host\": \"localhost\", \r\n                \"id\": \"http.41657b8a-bd84-11e4-b0b5-c27fee8cb118\", \r\n                \"ports\": [\r\n                    31938\r\n                ], \r\n                \"stagedAt\": \"2015-02-26T06:54:05.846Z\", \r\n                \"startedAt\": \"2015-02-26T06:54:05.926Z\", \r\n                \"version\": \"2015-02-26T06:54:02.187Z\"\r\n            }\r\n        ], \r\n        \"tasksRunning\": 1, \r\n        \"tasksStaged\": 0, \r\n        \"upgradeStrategy\": {\r\n            \"maximumOverCapacity\": 1.0, \r\n            \"minimumHealthCapacity\": 1.0\r\n        }, \r\n        \"uris\": [], \r\n        \"user\": null, \r\n        \"version\": \"2015-02-26T06:54:02.187Z\"\r\n    }\r\n}\r\n```\r\n"}}