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

Make dependencies work for all times a task is launched for an App

    Details

    • Type: Task
    • Status: Resolved
    • Priority: High
    • Resolution: Won't Do
    • Affects Version/s: Marathon 1.4.1
    • Fix Version/s: None
    • Component/s: Orchestration
    • Labels:

      Description

      If I define an app with a dependency, and the dependency isn't running, the app ist deployed successfully anyway, see below:

      ➜ ~ cat dependency.json
      {
      "id": "/test-nginx",
      "cpus": 0.1,
      "mem": 65,
      "instances": 1,
      "container": {
      "type": "DOCKER",
      "docker": {
      "image": "nginx:1.7.7",
      "network": "BRIDGE",
      "portMappings": [
      {"hostPort": 0, "containerPort": 80, "servicePort": 10000}
      ],
      "forcePullImage":true
      }
      },
      "dependencies": [
      "/kafka123"
      ],
      "healthChecks": [{
      "protocol": "HTTP",
      "path": "/",
      "portIndex": 0,
      "timeoutSeconds": 10,
      "gracePeriodSeconds": 10,
      "intervalSeconds": 2,
      "maxConsecutiveFailures": 10
      }]
      }
      ➜ ~ dcos marathon app list
      ➜ ~ dcos marathon app add dependency.json
      Created deployment 916abcba-d93d-4b5e-895e-802cfa448d91
      ➜ ~ dcos marathon app list
      ID MEM CPUS TASKS HEALTH DEPLOYMENT WAITING CONTAINER CMD
      /test-nginx 65 0.1 1/1 1/1 — False DOCKER None

       

      This was in the community Slack: https://dcos-community.slack.com/archives/general/p1489052423942611

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                tmueller Tobias Mueller
                Team:
                Orchestration Team
                Watchers:
                Ivan Chernetsky, Marco Monaco, Matthias Eichstedt
              • Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: