marathon icon indicating copy to clipboard operation
marathon copied to clipboard

Cannot submit job with id containing internal slashes

Open mwasn opened this issue 11 years ago • 1 comments

Tried to submit:

{
  "id":"/tools/docker/registry",
  "container":{ "type":"DOCKER", "docker":{ "image":"registry" }},
  "env":{
    "SETTINGS_FLAVOR":"local",
    "STORAGE_PATH":"/docker_storage"
  },
  "cpus":0.5,
  "mem":1024,
  "instances":1
}

And got:

$ dcos marathon app add registry.json
Error: '/tools/docker/registry' does not match '^/?(([a-z0-9]|[a-z0-9][a-z0-9\\-]*[a-z0-9])\\.)*([a-z0-9]|[a-z0-9][a-z0-9\\-]*[a-z0-9])$'
Path: id
Value: "/tools/docker/registry"

mwasn avatar Sep 16 '15 17:09 mwasn

Thanks Marcus! We saw this with the dcos cli only - directly submitting with httpie works fine

nqn avatar Sep 16 '15 19:09 nqn