Uploaded image for project: 'Marathon'
  1. Marathon
  2. MARATHON-7948

Do NOT return a constraint value string with Unique host constraints

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Medium
    • Resolution: Done
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: API
    • Labels:

      Description

      using the attached pod.json file

      CLI command  dcos marathon pod add pod.json

      followed by dcos marathon pod show pod-test

       

      clearly shows Marathon returning the constraint value string

      {
        "id": "/pod-test",
        "instances": [
          {
            "agentHostname": "10.0.1.10",
            "agentId": "68b15867-671f-4e37-838c-85f2a7581085-S1",
            "conditions": [],
            "containers": [
              {
                "conditions": [],
                "containerId": "pod-test.instance-c599759e-dad4-11e7-a245-128af4cdf03e.container-1",
                "endpoints": [],
                "lastChanged": "2017-12-06T22:28:25.133Z",
                "lastUpdated": "2017-12-06T22:28:25.133Z",
                "name": "container-1",
                "resources": {
                  "cpus": 0.1,
                  "disk": 0,
                  "gpus": 0,
                  "mem": 32
                },
                "status": "TASK_RUNNING",
                "statusSince": "2017-12-06T22:28:25.133Z"
              }
            ],
            "id": "pod-test.instance-c599759e-dad4-11e7-a245-128af4cdf03e",
            "lastChanged": "2017-12-06T22:28:25.133Z",
            "lastUpdated": "2017-12-06T22:28:25.133Z",
            "networks": [
              {
                "addresses": [
                  "10.0.1.10"
                ]
              }
            ],
            "resources": {
              "cpus": 0.2,
              "disk": 10,
              "gpus": 0,
              "mem": 64
            },
            "specReference": "/v2/pods/pod-test::versions/2017-12-06T22:28:24.082Z",
            "status": "STABLE",
            "statusSince": "2017-12-06T22:28:25.133Z"
          }
        ],
        "lastChanged": "2017-12-06T22:28:25.133Z",
        "lastUpdated": "2017-12-06T22:29:52.426Z",
        "spec": {
          "containers": [
            {
              "image": {
                "id": "nginx",
                "kind": "DOCKER"
              },
              "name": "container-1",
              "resources": {
                "cpus": 0.1,
                "disk": 0,
                "gpus": 0,
                "mem": 32
              }
            }
          ],
          "executorResources": {
            "cpus": 0.1,
            "disk": 10,
            "mem": 32
          },
          "id": "/pod-test",
          "networks": [
            {
              "mode": "host"
            }
          ],
          "scaling": {
            "instances": 1,
            "kind": "fixed"
          },
          "scheduling": {
            "backoff": {
              "backoff": 1,
              "backoffFactor": 1.15,
              "maxLaunchDelay": 3600
            },
            "killSelection": "YOUNGEST_FIRST",
            "placement": {
              "constraints": [
                {
                  "fieldName": "hostname",
                  "operator": "UNIQUE",
                  "value": ""
                }
              ]
            },
            "unreachableStrategy": {
              "expungeAfterSeconds": 0,
              "inactiveAfterSeconds": 0
            },
            "upgrade": {
              "maximumOverCapacity": 1,
              "minimumHealthCapacity": 1
            }
          },
          "version": "2017-12-06T22:28:24.082Z"
        },
        "status": "STABLE",
        "statusSince": "2017-12-06T22:28:25.133Z",
        "terminationHistory": []
      }

      This is causing issues in the UI on edit

        Attachments

          Activity

            People

            • Assignee:
              nikitamelkozerov Nikita Melkozerov
              Reporter:
              ken Ken Sipe
              Team:
              Orchestration Team
              Watchers:
            • Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: