Affects Version/s: Marathon 1.5.2
Vagrant DC/OS 1.10.2
When creating an application with a persistent volume using `POST /v2/apps`, the API will automatically create the required unreachableStrategy:
However, when creating the same application using `PUT /v2/apps/:appId`, an Object is not valid/422 error is returned with the following detail:
unreachableStrategy must be disabled for resident tasks
The REST API documentation states that POST and PUT are equivalent.
The workaround is either to forgo PUT for POST or to explicitly specify the required unreachableStrategy in the PUT payload.
Example payload is attached.
Given an empty instance of Marathon
When I PUT the attached payload to /v2/apps
Then the application should be created successfully
And the unreachableStrategy should be set to "disabled"