marathonctl icon indicating copy to clipboard operation
marathonctl copied to clipboard

marathon deploy list fails to unmarshal response json

Open gianluca-sabena opened this issue 9 years ago • 0 comments

Deploy a marathon app with a non existent acceptedResourceRoles

{
  "id": "alpine-test",
  "cmd":"echo '----- TEST -----' && sleep 360;",
  "acceptedResourceRoles": [
  "my-custom-role"
  ],
  "container": {
    "docker": {
      "image": "alpine:3.3",
      "network": "HOST"
    }
  },
  "cpus": 0.2,
  "mem": 32,
  "instances": 1
}

Marathon shows alpine-test app in 'waiting' status but marathonctl -h http://m1.dcos/service/marathon deploy list return an error failed to unmarshal response json: cannot unmarshal object into Go value of type []main.Step

This command marathonctl -h http://m1.dcos/service/marathon -f raw app show /alpine-test returns this json

{"app":{"id":"/alpine-test","cmd":"echo '----- TEST -----' && sleep 360;","args":null,"user":null,"env":{},"instances":1,"cpus":0.2,"mem":32,"disk":0,"executor":"","constraints":[],"uris":[],"fetch":[],"storeUrls":[],"ports":[10000],"portDefinitions":[{"port":10000,"protocol":"tcp","labels":{}}],"requirePorts":false,"backoffSeconds":1,"backoffFactor":1.15,"maxLaunchDelaySeconds":3600,"container":{"type":"DOCKER","volumes":[],"docker":{"image":"alpine:3.3","network":"HOST","privileged":false,"parameters":[],"forcePullImage":false}},"healthChecks":[],"readinessChecks":[],"dependencies":[],"upgradeStrategy":{"minimumHealthCapacity":1,"maximumOverCapacity":1},"labels":{},"acceptedResourceRoles":["elasticsearch"],"ipAddress":null,"version":"2016-05-27T13:30:02.441Z","residency":null,"versionInfo":{"lastScalingAt":"2016-05-27T13:30:02.441Z","lastConfigChangeAt":"2016-05-27T13:30:02.441Z"},"tasksStaged":0,"tasksRunning":0,"tasksHealthy":0,"tasksUnhealthy":0,"deployments":[{"id":"7f8e4a82-135b-40f6-93be-17b1c3b1d4a4"}],"tasks":[]}}

gianluca-sabena avatar May 27 '16 13:05 gianluca-sabena