Uploaded image for project: 'DC/OS'
  1. DC/OS
  2. DCOS_OSS-1272

The Services JSON editor makes up values

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: High
    • Resolution: Done
    • Affects Version/s: DC/OS 1.10.0
    • Fix Version/s: None
    • Component/s: dcos-ui
    • Labels:

      Description

      Steps to reproduce:

       
      1. Submit the following app definition:

      {
          "id": "/chronos",
          "backoffFactor": 1.15,
          "backoffSeconds": 1,
          "cmd": "chronos run_jar --master zk://master.mesos:2181/mesos --zk_hosts master.mesos:2181 --http_port $PORT0 --mesos_framework_name chronos --hostname $HOST      --cassandra_port 9042    --cassandra_ttl 31536000    --decline_offer_duration 5000   --disable_after_failures 0   --failover_timeout 604800   --failure_retry 60000     --graphite_reporting_interval 60             --mesos_task_cpu 0.1   --mesos_task_disk 256   --mesos_task_mem 128   --min_revive_offers_interval 5000    --reconciliation_interval 600    --schedule_horizon 60      --task_epsilon 60      --zk_timeout 10000 ",
          "container": {
            "type": "DOCKER",
            "docker": {
              "forcePullImage": false,
              "image": "docker.io/mesosphere/chronos:chronos-2.5.0-0.1.20170614202221.ubuntu1404-mesos-1.2.0"
            }
          },
          "cpus": 1,
          "disk": 0,
          "healthChecks": [
            {
              "gracePeriodSeconds": 300,
              "ignoreHttp1xx": false,
              "intervalSeconds": 60,
              "maxConsecutiveFailures": 2,
              "path": "/",
              "portIndex": 0,
              "protocol": "HTTP",
              "timeoutSeconds": 20,
              "delaySeconds": 15
            }
          ],
          "instances": 1,
          "maxLaunchDelaySeconds": 3600,
          "mem": 1024,
          "gpus": 0,
          "networks": [
            {
              "mode": "host"
            }
          ],
          "portDefinitions": [
            {
              "port": 10001,
              "protocol": "tcp"
            }
          ],
          "requirePorts": false
      }
      

      2. Do GET /service/marathon/v2/apps/chronos and verify that in the response requirePorts is set to false.

      3. Edit the service using the DC/OS UI, go to the JSON editor, and notice that requirePorts is set to true.

      I haven't checked all the other fields...

        Attachments

          Activity

            People

            • Assignee:
              billstavroulakis Bill Stavroulakis (Inactive)
              Reporter:
              gaston Gastón Kleiman
              Team:
              Frontend Team
              Watchers:
              Dima Rozhkov, Gastón Kleiman, Mathew Appelman (Inactive), Orlando Hohmeier, Tim Harper
            • Watchers:
              5 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: