mesosphere / marathon

Deploy and manage containers (including Docker) on top of Apache Mesos at scale.
https://mesosphere.github.io/marathon/
Apache License 2.0
4.07k stars 845 forks source link

Additional properties are not allowed ('key', 'value' were unexpected) #1836

Closed bradleyreeves closed 9 years ago

bradleyreeves commented 9 years ago

Any insight into what might be causing this?

Error: Additional properties are not allowed ('key', 'value' were unexpected) Path: container.docker.parameters.0 Value: {"value": "9990:9990", "key": "publish"}

Error while using DCOS cli from terminal, "dcos marathon app add wildfly.json"

wildfly.json as follows:

{ "container": { "type": "DOCKER", "docker": { "image": "bradleyreeves/wildfly:latest", "parameters":[{"key":"publish","value":"9990:9990"}] } }, "id": "wildfly-docker", "acceptedResourceRoles": ["slave_public"], "cpus": 1, "instances": 1, "mem": 2048, "ports":[9990] }

philipnrmn commented 9 years ago

Hi @bradleyreeves, I tried posting your configuration directly to the Marathon app creation endpoint and it worked, so I think it's not specifically those parameters that are causing the issue. There may be a problem in the CLI.

marathon-1836
bradleyreeves commented 9 years ago

That's it @philipnrmn, I can confirm using the endpoint worked for me as well. Thanks for the help!

philipnrmn commented 9 years ago

OK, glad to hear it. I'll close this issue here, and raise it on the appropriate CLI project. Thanks for the report!